kitsune/playwright_tests
Emil Ghitta 5dda7567da - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py.
- Fix locators issues due to the transition from selectize to tom-select.
- Extended the checkbox_interaction() function in basepage.py to handle ElementHandles and implemented a retry mechanism if the element check() or uncheck() has failed due to some reason.
- Modified the click() function in basepage.py to:
1. Accept and interact with ElementHandles.
2. Implement a retry mechanism based on a given expected_locator or expected_url after the click action. If the expected_locator or expected_url condition is not fulfilled after the click action we are forcing a re-click on the target element.
3. Wait for networkidle before attempting to click on the element.
- Updated the page objects, tests and flows for which flakiness occurred in the past to use the newly implemented click() and function re-call mechanism.
- Added a helper function in basepage.py which moves the mouse to a given location.
2024-11-06 19:00:43 +02:00
..
core - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py. 2024-11-06 19:00:43 +02:00
flows - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py. 2024-11-06 19:00:43 +02:00
messages - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py. 2024-11-06 19:00:43 +02:00
pages - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py. 2024-11-06 19:00:43 +02:00
reports
test_data - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py. 2024-11-06 19:00:43 +02:00
tests - Creating a new helper function in utilities.py that gives the possibility of re-calling a function which failed due to a 502 error. This function relies on catching a warning emitted by the handle_502_error function inside conftest.py. 2024-11-06 19:00:43 +02:00
pytest.ini