Skip to content

Commit 675679f

Browse files
committed
Changed default driver to firefox
1 parent f19d26f commit 675679f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

features/environment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
from os import getenv
55
from selenium import webdriver
66

7-
WAIT_SECONDS = int(getenv('WAIT_SECONDS', '60'))
7+
WAIT_SECONDS = int(getenv('WAIT_SECONDS', '30'))
88
BASE_URL = getenv('BASE_URL', 'http://localhost:8080')
9-
DRIVER = getenv('DRIVER', 'chrome').lower()
9+
DRIVER = getenv('DRIVER', 'firefox').lower()
1010

1111

1212
def before_all(context):
@@ -19,6 +19,7 @@ def before_all(context):
1919
else:
2020
context.driver = get_chrome()
2121
context.driver.implicitly_wait(context.wait_seconds)
22+
context.driver.set_window_size(1280, 1300)
2223
context.config.setup_logging()
2324

2425

features/pets.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Scenario: Create a Pet
2222
And I set the "Category" to "Hippo"
2323
And I select "False" in the "Available" dropdown
2424
And I select "Male" in the "Gender" dropdown
25-
And I set the "Birthday" to "06-16-2022"
25+
And I set the "Birthday" to "2022-06-16"
2626
And I press the "Create" button
2727
Then I should see the message "Success"
2828
When I copy the "Id" field

0 commit comments

Comments
 (0)