-
Notifications
You must be signed in to change notification settings - Fork 15
Anca/ Refactoring History (I) #795
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c7c33d6
Refactor clear history tests
soncuteanca dc858db
Add condition for timing issue
soncuteanca 5f0b662
New attempt
soncuteanca 53efb6d
Revert partially to the initial approach
soncuteanca 6bfca23
Use the correct method
soncuteanca 1122251
Add open website from history test
soncuteanca 1ca81a5
Replace pytest.skip due to ci headed failures
soncuteanca 85522c9
Add 172045 test
soncuteanca 48e1f12
Merge main
soncuteanca b896e7d
Add 118805, 118800 tests
soncuteanca 287371a
Some retouch, improve comments, and visibility
soncuteanca 3111030
Add test 118806
soncuteanca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...bookmarks_and_history/test_opened_website_in_new_tab_present_in_hamburger_history_menu.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import pytest | ||
| from selenium.webdriver import Firefox | ||
|
|
||
| from modules.browser_object import PanelUi, TabBar | ||
| from modules.page_object import GenericPage | ||
|
|
||
|
|
||
| @pytest.fixture() | ||
| def test_case(): | ||
| return "118802" | ||
|
|
||
|
|
||
| @pytest.fixture() | ||
| def use_profile(): | ||
| return "theme_change" | ||
|
|
||
|
|
||
| WIKIPEDIA_URL = "https://www.wikipedia.org/" | ||
|
|
||
|
|
||
| def test_the_website_opened_in_new_tab_is_present_in_history_menu(driver: Firefox): | ||
| """ | ||
| C118802 - Verify that the website opened in new tab is displayed in Hamburger Menu, History section, on top of the | ||
| list | ||
| """ | ||
| # Instantiate objects | ||
| tabs = TabBar(driver) | ||
| page = GenericPage(driver, url=WIKIPEDIA_URL) | ||
| panel = PanelUi(driver) | ||
|
|
||
| # Open a desired webpage in a new tab | ||
| tabs.open_web_page_in_new_tab(page, 2) | ||
| page.url_contains("wikipedia") | ||
|
|
||
| # Verify the opened webpage from last step is present in the Hamburger Menu, History section and is on top of the | ||
| # list as the most recent website visited | ||
| panel.open_history_menu() | ||
| panel.verify_most_recent_history_item("Wikipedia") |
46 changes: 0 additions & 46 deletions
46
tests/bookmarks_and_history/test_opened_website_in_new_tab_present_in_toolbar_history.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.