[TEST][E2E] Add tests for customer CRUD #1586
pr-automation.yml
on: pull_request
Annotations
7 errors, 5 warnings, and 8 notices
[chromium] › customers.spec.ts:139:5 › TC: SALEOR_206 As an admin I want to update customer's address book @e2e @customer:
playwright/tests/customers.spec.ts#L150
1) [chromium] › customers.spec.ts:139:5 › TC: SALEOR_206 As an admin I want to update customer's address book @e2e @customer
Error: expect.toBeVisible: Error: strict mode violation: getByTestId('address-card').filter({ hasText: 'Bartoletti' }) resolved to 2 elements:
1) <div data-test-id="address-card" class="MuiPaper-root…>…</div> aka locator('#macaw-ui-root main div').filter({ hasText: 'Edmond Bartoletti+' }).nth(2)
2) <address data-test-id="address-card">…</address> aka getByText('Edmond Bartoletti+')
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByTestId('address-card').filter({ hasText: 'Bartoletti' })
148 | addAddressDialog.clickConfirmButton());
149 | const addedAddress = addressesListPage.addressCard.filter({hasText:ADDRESS.addressUK.lastName});
> 150 | await expect(addedAddress).toBeVisible();
| ^
151 | await addressesListPage.clickShowMoreMenu(ADDRESS.addressUK.lastName);
152 | await addressesListPage.setAsDeafultBillingAddress();
153 | await expect(addedAddress.locator(addressesListPage.addressTypeTitle)).toHaveText("Default Billing Address");
at /home/runner/work/saleor-dashboard/saleor-dashboard/playwright/tests/customers.spec.ts:150:30
|
[chromium] › customers.spec.ts:139:5 › TC: SALEOR_206 As an admin I want to update customer's address book @e2e @customer:
playwright/tests/customers.spec.ts#L150
1) [chromium] › customers.spec.ts:139:5 › TC: SALEOR_206 As an admin I want to update customer's address book @e2e @customer
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: getByTestId('address-card').filter({ hasText: 'Friesen' }) resolved to 2 elements:
1) <div data-test-id="address-card" class="MuiPaper-root…>…</div> aka locator('#macaw-ui-root main div').filter({ hasText: 'Nettie Friesen+' }).nth(2)
2) <address data-test-id="address-card">…</address> aka getByText('Nettie Friesen+')
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByTestId('address-card').filter({ hasText: 'Friesen' })
148 | addAddressDialog.clickConfirmButton());
149 | const addedAddress = addressesListPage.addressCard.filter({hasText:ADDRESS.addressUK.lastName});
> 150 | await expect(addedAddress).toBeVisible();
| ^
151 | await addressesListPage.clickShowMoreMenu(ADDRESS.addressUK.lastName);
152 | await addressesListPage.setAsDeafultBillingAddress();
153 | await expect(addedAddress.locator(addressesListPage.addressTypeTitle)).toHaveText("Default Billing Address");
at /home/runner/work/saleor-dashboard/saleor-dashboard/playwright/tests/customers.spec.ts:150:30
|
[chromium] › customers.spec.ts:139:5 › TC: SALEOR_206 As an admin I want to update customer's address book @e2e @customer:
playwright/tests/customers.spec.ts#L150
1) [chromium] › customers.spec.ts:139:5 › TC: SALEOR_206 As an admin I want to update customer's address book @e2e @customer
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: getByTestId('address-card').filter({ hasText: 'Senger' }) resolved to 2 elements:
1) <div data-test-id="address-card" class="MuiPaper-root…>…</div> aka locator('#macaw-ui-root').getByRole('main').locator('div').filter({ hasText: 'Evie Senger+' }).nth(2)
2) <address data-test-id="address-card">…</address> aka getByText('Evie Senger+')
Call log:
- expect.toBeVisible with timeout 10000ms
- waiting for getByTestId('address-card').filter({ hasText: 'Senger' })
148 | addAddressDialog.clickConfirmButton());
149 | const addedAddress = addressesListPage.addressCard.filter({hasText:ADDRESS.addressUK.lastName});
> 150 | await expect(addedAddress).toBeVisible();
| ^
151 | await addressesListPage.clickShowMoreMenu(ADDRESS.addressUK.lastName);
152 | await addressesListPage.setAsDeafultBillingAddress();
153 | await expect(addedAddress.locator(addressesListPage.addressTypeTitle)).toHaveText("Default Billing Address");
at /home/runner/work/saleor-dashboard/saleor-dashboard/playwright/tests/customers.spec.ts:150:30
|
[chromium] › attributes.spec.ts:221:5 › TC: SALEOR_130 Bulk delete attributes @e2e @attributes:
eval at evaluate (:226:30)#L12
2) [chromium] › attributes.spec.ts:221:5 › TC: SALEOR_130 Bulk delete attributes @e2e @attributes
Error: locator.evaluate: TypeError: Cannot read properties of null (reading 'getBounds')
at eval (eval at evaluate (:226:30), <anonymous>:12:78)
at UtilityScript.evaluate (<anonymous>:228:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/saleor-dashboard/saleor-dashboard/eval at evaluate (:226:30), <anonymous>:12:78)
at UtilityScript.evaluate (/home/runner/work/saleor-dashboard/saleor-dashboard/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/saleor-dashboard/saleor-dashboard/<anonymous>:1:44)
at AttributesPage.findGridCellBounds (/home/runner/work/saleor-dashboard/saleor-dashboard/playwright/pages/basePage.ts:156:28)
at AttributesPage.clickGridCell (/home/runner/work/saleor-dashboard/saleor-dashboard/playwright/pages/basePage.ts:214:31)
at /home/runner/work/saleor-dashboard/saleor-dashboard/playwright/tests/attributes.spec.ts:228:24
|
run-tests (1/2)
Process completed with exit code 1.
|
|
[chromium] › vouchers.spec.ts:220:5 › TC:SALEOR_95 Edit voucher - assign voucher to specific collection @vouchers @e2e:
playwright/pages/dialogs/assignSpecificProductsDialog.ts#L23
1) [chromium] › vouchers.spec.ts:220:5 › TC:SALEOR_95 Edit voucher - assign voucher to specific collection @vouchers @e2e
Error: locator.click: Test timeout of 45000ms exceeded.
Call log:
- waiting for getByRole('row', { name: 'Featured Products' }).getByRole('checkbox')
at ../pages/dialogs/assignSpecificProductsDialog.ts:23
21 | .getByRole("row", { name: nameAkaText })
22 | .getByRole("checkbox");
> 23 | await specificProductCheckbox.click();
| ^
24 | await this.clickAssignAndSaveButton();
25 | await this.assignAndSaveButton.waitFor({ state: "hidden" });
26 | }
at AssignSpecificProductsDialog.assignSpecificProductsByNameAndSave (/home/runner/work/saleor-dashboard/saleor-dashboard/playwright/pages/dialogs/assignSpecificProductsDialog.ts:23:35)
at VouchersPage.waitForNetworkIdle (/home/runner/work/saleor-dashboard/saleor-dashboard/playwright/pages/basePage.ts:132:5)
at /home/runner/work/saleor-dashboard/saleor-dashboard/playwright/tests/vouchers.spec.ts:228:3
|
deploy-dashboard
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, bobheadxi/deployments@88ce5600046c82542f8246ac287d0a53c461bca3, actions/cache@v3, aws-actions/configure-aws-credentials@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run-tests (1/2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
run-tests (2/2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
merge-reports
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/download-artifact@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Deprecation notice: v1, v2, and v3 of the artifact actions
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/
|
BASE_URL
https://pr-4657.dashboard.saleor.rocks
|
API_URL
https://pr-4657.staging.saleor.cloud/graphql/
|
POOL_NAME
pr-4657
|
POOL_INSTANCE
https://pr-4657.staging.saleor.cloud
|
BACKUP_NAMESPACE
snapshot-automation-tests
|
SNAPSHOT
backup_id=ZrniYESk, version=3.20.0, name=snapshot-automation-tests
|
|
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
all-blob-reports
Expired
|
14.9 MB |
|
html-report--attempt-1
Expired
|
16.8 MB |
|