Skip to content

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Feature #35

wants to merge 12 commits into from

Conversation

tuychim
Copy link

@tuychim tuychim commented Apr 18, 2024

No description provided.

@tuychim tuychim marked this pull request as ready for review April 25, 2024 00:27
@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"
Copy link
Collaborator

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 👍

@@ -15,6 +15,7 @@ def browser_init(context):

context.driver.maximize_window()
context.driver.implicitly_wait(4)
context.wait = Application
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tuychim

context.wait = WebDriverWait(context.driver, timeout=15)

Copy link
Author

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.')
Copy link
Collaborator

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

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)}'
Copy link
Collaborator

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}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants