-
Notifications
You must be signed in to change notification settings - Fork 13
Hani/ Refactor tabs batch 3 #840
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?
Conversation
modules/browser_object_tabbar.py
Outdated
@BasePage.context_chrome | ||
def reopen_tabs_with_shortcut(self, sys_platform: str, count: int) -> None: | ||
"""Reopen closed tabs using keyboard shortcut Ctrl/Cmd + Shift + T.""" | ||
actions = self.actions |
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.
Why is actions
set here? Wouldn't just referencing action through self work like you do for the release modifier conditions?
modules/page_object_generics.py
Outdated
WebElement: The refreshed search field. | ||
""" | ||
|
||
wait = WebDriverWait(self.driver, wait_time) |
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.
Do we need to instantiate a new wait
instance, or can we instead use the inherited wait
instance from the BasePage
class?
# Instantiate objects | ||
page = GenericPage(driver, url=TEST_URL) | ||
ba = BrowserActions(driver) | ||
wait = WebDriverWait(driver, 10) |
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.
Wherever possible, I believe we should move wait
actions to the object models (Create a method there to handle the wait condition instead of instantiating it in the test)
Relevant Links
Bugzilla: 1990605
TestRail: S2103
Description of Code / Doc Changes
Process Changes Required
Mark the relevant boxes:
pipenv install
)Screenshots or Explanations
If you need to explain your code, do it here.
Comments or Future Work
Do we need to start another PR soon to address something you saw while working on this?
Workflow Checklist
Thank you!