Skip to content

Commit 894883c

Browse files
committed
Add negative scenario
1 parent 6a2255d commit 894883c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

rb/spec/integration/selenium/webdriver/bidi/network_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ class BiDi
171171
end
172172

173173
driver.navigate.to url_for('formPage.html')
174-
expect(driver.page_source).to include('Hello World!')
174+
source = driver.page_source
175+
expect(source).not_to include('There should be a form here:')
176+
expect(source).to include('Hello World!')
175177
end
176178
end
177179
end

rb/spec/integration/selenium/webdriver/network_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ module WebDriver
272272
response.provide_response
273273
end
274274
driver.navigate.to url_for('formPage.html')
275-
expect(driver.page_source).to include('Hello World!')
275+
source = driver.page_source
276+
expect(source).not_to include('There should be a form here:')
277+
expect(source).to include('Hello World!')
276278
end
277279
end
278280

0 commit comments

Comments
 (0)