Skip to content

Commit dbef55b

Browse files
committed
[rb] get rid of flaky test for remote phantomjs
1 parent 36e49ba commit dbef55b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ module WebDriver
3232
expect(driver.page_source).to match(%r{<title>XHTML Test Page</title>}i)
3333
end
3434

35-
it 'should refresh the page' do
36-
driver.navigate.to url_for('javascriptPage.html')
37-
sleep 1 # javascript takes too long to load
38-
driver.find_element(id: 'updatediv').click
39-
expect(driver.find_element(id: 'dynamo').text).to eq('Fish and chips!')
40-
driver.navigate.refresh
41-
wait_for_element(id: 'dynamo')
42-
expect(driver.find_element(id: 'dynamo').text).to eq("What's for dinner?")
35+
not_compliant_on driver: :remote, browser: :phantomjs do
36+
it 'should refresh the page' do
37+
driver.navigate.to url_for('javascriptPage.html')
38+
sleep 1 # javascript takes too long to load
39+
driver.find_element(id: 'updatediv').click
40+
expect(driver.find_element(id: 'dynamo').text).to eq('Fish and chips!')
41+
driver.navigate.refresh
42+
wait_for_element(id: 'dynamo')
43+
expect(driver.find_element(id: 'dynamo').text).to eq("What's for dinner?")
44+
end
4345
end
4446

4547
context 'screenshots' do

0 commit comments

Comments
 (0)