-
Notifications
You must be signed in to change notification settings - Fork 394
Feature #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feature #35
Conversation
@then('Verify there are cells shown') | ||
def verify_cells_shown(context): | ||
cells = context.driver.find_elements(*VERIFY_CELLS_SHOWN) | ||
assert len(cells) > 0, "No cells are shown on the page" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work with find_elements
👍
features/environment.py
Outdated
@@ -15,6 +15,7 @@ def browser_init(context): | |||
|
|||
context.driver.maximize_window() | |||
context.driver.implicitly_wait(4) | |||
context.wait = Application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context.wait = WebDriverWait(context.driver, timeout=15)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@svetlannnka
Noted. Thank you
@@ -15,7 +15,7 @@ | |||
|
|||
@given('Open Target main page') | |||
def open_target(context): | |||
context.driver.get('https://www.target.com/') | |||
context.driver.get('https://www.target.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.target.com/
, ".com" is missing
features/steps/main_page_steps.py
Outdated
def verify_header_links(context, expected_amount): | ||
expected_amount = int(expected_amount) | ||
header_links = context.driver.find_elements(*HEADER_LINKS) | ||
assert len(header_links) == expected_amount, f'Expected {expected_amount} links, but got {len(header_links)}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
actual_colors.append(selected_color) | ||
print(actual_colors) | ||
|
||
assert expected_colors == actual_colors, f'Expected {expected_colors} did not match actual {actual_colors}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.