Skip to content

Commit

Permalink
Merge pull request PrestaShop#37203 from Progi1984/uiTestsStabilization
Browse files Browse the repository at this point in the history
Functional Tests : Stabilization
  • Loading branch information
jolelievre authored Oct 23, 2024
2 parents 56742d1 + 0dc7d04 commit ad7da12
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ jobs:

- name: Run Tests
uses: ./.github/actions/ui-test
env:
## Improve Webkit stability
## Link : https://github.com/microsoft/playwright/issues/23899
GDK_BACKEND: x11
with:
TEST_CAMPAIGN: ${{ env.TEST_CAMPAIGN }}
BROWSER: ${{ matrix.browser }}
Expand Down
30 changes: 4 additions & 26 deletions tests/UI/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion tests/UI/pages/BO/customerService/orderMessages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ class OrderMessages extends BOBasePage {
async resetFilter(page: Page): Promise<void> {
if (await this.elementVisible(page, this.filterResetButton, 2000)) {
await this.clickAndWaitForLoadState(page, this.filterResetButton);
await this.elementNotVisible(page, this.filterResetButton, 2000);
// Move the mouse to avoid the tooltip on first row
await page.mouse.move(0, 0);
await this.waitForHiddenSelector(page, this.filterResetButton, 2000);
}
}

Expand Down

0 comments on commit ad7da12

Please sign in to comment.