Skip to content

Conversation

sv-hyacoub
Copy link
Collaborator

@sv-hyacoub sv-hyacoub commented Oct 15, 2025

Relevant Links

Bugzilla: 1990605
TestRail: S2103

Description of Code / Doc Changes

Process Changes Required

Mark the relevant boxes:

  • Adds a dependency (rerun pipenv install)
  • Changes the BasePage
  • Changes or creates a BOM/POM (name the object model): _
  • Changes CI flow
  • Changes scheduled Beta or DevEdition
  • Changes Git hooks or Github settings
  • Changes L10n harness

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

  • Please request reviewers
  • If this is an unblocker, please post in Slack.
  • If asked to address comments, please resolve conversations.
  • If asked to change code, please re-request review from the person who wanted changes.

Thank you!

@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
Copy link
Collaborator

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?

WebElement: The refreshed search field.
"""

wait = WebDriverWait(self.driver, wait_time)
Copy link
Collaborator

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

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)

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