Skip to content

Commit 84a2d2e

Browse files
fix: update e2e visual snapshots (mattermost#33944)
1 parent 3770016 commit 84a2d2e

File tree

56 files changed

+2
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2
-2
lines changed

e2e-tests/playwright/lib/src/test_action.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export async function waitForAnimationEnd(locator: Locator) {
2323
}
2424

2525
export async function toBeFocusedWithFocusVisible(locator: Locator) {
26+
await expect(locator).toBeVisible();
2627
await expect(locator).toBeFocused();
2728
return locator.evaluate((element) => element.matches(':focus-visible'));
2829
}

e2e-tests/playwright/lib/src/visual/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function matchSnapshot(testInfo: TestInfo, testArgs: TestArgs, opti
2626
if (testConfig.snapshotEnabled || testConfig.percyEnabled) {
2727
await testArgs.page.waitForLoadState('networkidle');
2828
await testArgs.page.waitForLoadState('domcontentloaded');
29-
await wait(duration.half_sec);
29+
await wait(duration.one_sec);
3030
}
3131

3232
if (testConfig.snapshotEnabled) {

0 commit comments

Comments
 (0)