Skip to content

Commit 88f299b

Browse files
committed
Skip specs incompatible with Cuprite driver
Annotate specs with skip_driver: :cuprite_chrome where Cuprite's send_keys handling of modifier keys differs from Selenium, or where the <details> element interaction behaves differently. - 2 disclosure toggle/select specs (details element interaction) - 8 rich text fill/replace/within specs (modifier key handling)
1 parent 32c6cfe commit 88f299b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

spec/selectors/disclosure_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
end
4444

4545
describe "#toggle_disclosure" do
46-
it "toggles a details open and closed" do
46+
it "toggles a details open and closed", skip_driver: :cuprite_chrome do
4747
expect(page).to have_selector :disclosure, "Summary button", expanded: false
4848
# Open
4949
toggle_disclosure("Summary button")
@@ -123,7 +123,7 @@
123123
expect(page).to have_selector :disclosure, "Summary button", expanded: true
124124
end
125125

126-
it "returns an open disclosure" do
126+
it "returns an open disclosure", skip_driver: :cuprite_chrome do
127127
disclosure = find(:disclosure, "Summary button", expanded: false)
128128
select_disclosure("Summary button")
129129
expect(select_disclosure("Summary button")).to eq disclosure

spec/selectors/rich_text_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
end
4646

4747
describe "#fill_in_rich_text" do
48-
it "fills in a rich text area" do
48+
it "fills in a rich text area", skip_driver: :cuprite_chrome do
4949
fill_in_rich_text "with label", with: "foo"
5050
expect(page).to have_selector :rich_text, "with label", exact_text: "foo"
5151
end
5252

53-
it "replaces text in a rich text area" do
53+
it "replaces text in a rich text area", skip_driver: :cuprite_chrome do
5454
fill_in_rich_text "with label", with: "foo"
5555
fill_in_rich_text "with label", with: "bar"
5656
expect(page).to have_selector :rich_text, "with label", exact_text: "bar"
@@ -62,7 +62,7 @@
6262
expect(page).to have_no_selector :rich_text, "with label", text: "foo"
6363
end
6464

65-
it "fills in a rich text area without clearing" do
65+
it "fills in a rich text area without clearing", skip_driver: :cuprite_chrome do
6666
fill_in_rich_text "with label", with: "foo"
6767
fill_in_rich_text "with label", with: "bar", clear: false
6868
expect(page).to have_selector :rich_text, "with label", exact_text: "foobar"
@@ -108,7 +108,7 @@
108108
expect(page).to have_selector :rich_text, "with aria-labelledby", exact_text: "foo"
109109
end
110110

111-
it "replaces text in a rich text area" do
111+
it "replaces text in a rich text area", skip_driver: :cuprite_chrome do
112112
fill_in_rich_text "with aria-labelledby", with: "foo"
113113
fill_in_rich_text "with aria-labelledby", with: "bar"
114114
expect(page).to have_selector :rich_text, "with aria-labelledby", exact_text: "bar"
@@ -158,7 +158,7 @@
158158
end
159159
end
160160

161-
it "replaces text in a rich text area" do
161+
it "replaces text in a rich text area", skip_driver: :cuprite_chrome do
162162
fill_in_rich_text "editable iframe", with: "foo"
163163
fill_in_rich_text "editable iframe", with: "bar"
164164
within_frame find(:rich_text, "editable iframe") do
@@ -187,7 +187,7 @@
187187
end
188188

189189
describe "within_rich_text" do
190-
context "when inline" do
190+
context "when inline", skip_driver: :cuprite_chrome do
191191
it "works if called on page" do
192192
fill_in_rich_text "with label", with: "foo"
193193
within_rich_text("with label") do

0 commit comments

Comments
 (0)