🎀 Refactor test to use waitForLoaderToDisappear 🎀 #3599
Annotations
3 errors, 2 warnings, and 1 notice
Run playwright tests:
playwright/tests/orders.spec.ts#L383
1) [e2e] › orders.spec.ts:345:5 › TC: SALEOR_215 Inline discount is applied in a draft order @draft @Discounts @e2e
Error: expect(received).toContain(expected) // indexOf
Expected substring: "80"
Received string: "20.00"
381 | const discountedTotal = productAlreadyInBasket.price + discountedProduct.variant.discountedPrice;
382 |
> 383 | expect(finalTotal.slice(3)).toContain(discountedTotal.toString());
| ^
384 | });
385 | test(`TC: SALEOR_216 Order type discount is applied to a draft order @draft @Discounts @e2e`, async () => {
386 | test.slow();
at /home/runner/work/saleor-dashboard/saleor-dashboard/playwright/tests/orders.spec.ts:383:31
|
Run playwright tests:
playwright/pages/basePage.ts#L113
2) [e2e] › staffMembers.spec.ts:24:5 › TC: SALEOR_211 Create a staff member @e2e @staff-members ──
Error: locator.waitFor: Timeout 15000ms exceeded.
Call log:
- waiting for locator('[data-test-type="success"]').first() to be visible
at ../pages/basePage.ts:113
111 |
112 | async expectSuccessBanner() {
> 113 | await this.successBanner.first().waitFor({ state: "visible", timeout: 15000 });
| ^
114 | await expect(this.errorBanner, "No error banner should be visible").not.toBeVisible();
115 | }
116 |
at StaffMembersPage.expectSuccessBanner (/home/runner/work/saleor-dashboard/saleor-dashboard/playwright/pages/basePage.ts:113:38)
at /home/runner/work/saleor-dashboard/saleor-dashboard/playwright/tests/staffMembers.spec.ts:34:26
|
Run playwright tests
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "all-blob-reports", "html-report--attempt-1".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Run playwright tests
2 failed
[e2e] › orders.spec.ts:345:5 › TC: SALEOR_215 Inline discount is applied in a draft order @draft @Discounts @e2e
[e2e] › staffMembers.spec.ts:24:5 › TC: SALEOR_211 Create a staff member @e2e @staff-members ───
115 passed (5.3m)
|
Loading