Adding more tests for the implemented methods.

This commit is contained in:
2022-01-05 14:11:36 -03:00
parent 6ffddd5dbc
commit cd2fec2502
2 changed files with 44 additions and 7 deletions
+16 -3
View File
@@ -3,15 +3,28 @@ Feature: The Chrome API client
Scenario: Using the Chrome.start method
Given the Chrome client
When the start method is called
Then Google Chrome should open
Then Google Chrome must open
Scenario: Using the Chrome.start_headless method
Given the Chrome client
When the start_headless method is called
Then Google Chrome should open headless
Then Google Chrome must open headless
Scenario: Using the Chrome.stop method
Given the Chrome client
And a Chrome instance
When the stop method is called upon it
Then this Google Chrome instance should close
Then this Google Chrome instance must close
Scenario: Using the Chrome.new method
Given the Chrome client
And a Chrome instance
When the new method is called
Then a new Google Chrome tab with the url given must open in the instance
Scenario: Using the Chrome.close method
Given the Chrome client
And a Chrome instance
And the id of a new Google Chrome tab opened
When the close method is called upon the tab id
Then the tab must close