Skip to content

Commit

Permalink
chore: slow operations on deep tests
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Dec 12, 2024
1 parent 9ec1e7b commit 105d729
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ jobs:
needs: [build-demo]
strategy:
fail-fast: false
max-parallel: 9
matrix:
shard: [
# Safari
Expand Down
4 changes: 0 additions & 4 deletions projects/demo-playwright/tests/deep/deep-select.pw.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ test.describe('Deep / Select', () => {
await expect(select).toBeVisible();

await select.click();
await api.waitTuiIcons();

const options = await api.getOptions();

Expand All @@ -47,14 +46,12 @@ test.describe('Deep / Select', () => {
await api.focusOnBody();
await api.hideNotifications();
await api.waitStableState();
await api.waitTuiIcons();

await expect(api.apiPageExample).toHaveScreenshot(

Check failure on line 50 in projects/demo-playwright/tests/deep/deep-select.pw.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright / macos-latest / 3 of 9

[webkit] › tests/deep/deep-select.pw.spec.ts:13:13 › Deep / Select › /components/thumbnail-card

1) [webkit] › tests/deep/deep-select.pw.spec.ts:13:13 › Deep / Select › /components/thumbnail-card Error: Timed out 5000ms waiting for expect(locator).toHaveScreenshot(expected) Locator: locator('#demo-content') Timeout 5000ms exceeded. Call log: - expect.toHaveScreenshot(deep-/components/thumbnail-card-[paymentSystem]-row—3-select-option-8.png) with timeout 5000ms - generating new stable screenshot expectation - waiting for locator('#demo-content') - locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</div> - taking element screenshot - disabled all CSS animations - waiting for fonts to load... - fonts loaded - attempting scroll into view action - waiting for element to be stable - waiting 100ms before taking screenshot - waiting for locator('#demo-content') - locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</div> - taking element screenshot - disabled all CSS animations - waiting for fonts to load... - Timeout 5000ms exceeded. 48 | await api.waitStableState(); 49 | > 50 | await expect(api.apiPageExample).toHaveScreenshot( | ^ 51 | `deep-${path}-${name}-row—${rowIndex}-select-option-${index}.png`, 52 | ); 53 | at /Users/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/deep/deep-select.pw.spec.ts:50:54

Check failure on line 50 in projects/demo-playwright/tests/deep/deep-select.pw.spec.ts

View workflow job for this annotation

GitHub Actions / Playwright / macos-latest / 3 of 9

[webkit] › tests/deep/deep-select.pw.spec.ts:13:13 › Deep / Select › /components/icon

1) [webkit] › tests/deep/deep-select.pw.spec.ts:13:13 › Deep / Select › /components/icon ───────── Error: expect(locator).toHaveScreenshot(expected) 7814 pixels (ratio 0.07 of all image pixels) are different. Expected: /Users/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/deep/deep-select.pw.spec.ts-snapshots/deep--components-icon--style-background--row—3-select-option-3-webkit-darwin.png Received: /Users/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-select.pw-Deep-Select-components-icon-webkit/deep--components-icon--sty-f7323---row—3-select-option-3-actual.png Diff: /Users/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-select.pw-Deep-Select-components-icon-webkit/deep--components-icon--sty-f7323---row—3-select-option-3-diff.png Call log: - expect.toHaveScreenshot(deep-/components/icon-[style.background]-row—3-select-option-3.png) with timeout 5000ms - verifying given screenshot expectation - waiting for locator('#demo-content') - locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</div> - taking element screenshot - disabled all CSS animations - waiting for fonts to load... - fonts loaded - attempting scroll into view action - waiting for element to be stable - 7814 pixels (ratio 0.07 of all image pixels) are different. - waiting 100ms before taking screenshot - waiting for locator('#demo-content') - locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</div> - taking element screenshot - disabled all CSS animations - waiting for fonts to load... - fonts loaded - attempting scroll into view action - waiting for element to be stable - captured a stable screenshot - 7814 pixels (ratio 0.07 of all image pixels) are different. 48 | await api.waitStableState(); 49 | > 50 | await expect(api.apiPageExample).toHaveScreenshot( | ^ 51 | `deep-${path}-${name}-row—${rowIndex}-select-option-${index}.png`, 52 | ); 53 | at /Users/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/deep/deep-select.pw.spec.ts:50:54
`deep-${path}-${name}-row—${rowIndex}-select-option-${index}.png`,
);

await select.click();
await api.waitTuiIcons();
}

const cleaner = await api.getCleaner(select);
Expand All @@ -69,7 +66,6 @@ test.describe('Deep / Select', () => {

await api.waitStableState();
await api.focusOnBody();
await api.waitTuiIcons();
}
}),
);
Expand Down
2 changes: 0 additions & 2 deletions projects/demo-playwright/tests/deep/deep-toggle.pw.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ test.describe('Deep / Toggle', () => {
await expect(toggle).toBeVisible();

await toggle.click();
await api.waitTuiIcons();
await api.hideNotifications();
await api.waitStableState();
await page.waitForTimeout(100);
Expand All @@ -41,7 +40,6 @@ test.describe('Deep / Toggle', () => {
);

await toggle.click();
await api.waitTuiIcons();
}
}),
);
Expand Down

0 comments on commit 105d729

Please sign in to comment.