[PLTFRM-1831] Add E2E Tests #6
e2e.yml
on: pull_request
Run E2E Tests
13m 22s
Run ESLint on E2E tests
32s
Annotations
10 errors, 7 warnings, and 1 notice
|
specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting:
tests/e2e/lib/pages/users-list-page.ts#L169
4) specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting ────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test timeout of 120000ms exceeded.
Call log:
- waiting for locator('table.wp-list-table').locator('thead th').filter({ hasText: 'Role' })
at lib/pages/users-list-page.ts:169
167 | */
168 | public async clickRoleColumnHeader(): Promise<void> {
> 169 | await this.getRoleColumnHeader().click();
| ^
170 | }
171 |
172 | /**
at UsersListPage.clickRoleColumnHeader (/home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/lib/pages/users-list-page.ts:169:36)
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:79:23
|
|
specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting:
tests/e2e/specs/highlight-mfa-users.spec.ts#L0
4) specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting ────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 120000ms exceeded.
|
|
specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting:
tests/e2e/lib/pages/users-list-page.ts#L169
4) specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting ────────────
Error: locator.click: Test timeout of 120000ms exceeded.
Call log:
- waiting for locator('table.wp-list-table').locator('thead th').filter({ hasText: 'Role' })
at lib/pages/users-list-page.ts:169
167 | */
168 | public async clickRoleColumnHeader(): Promise<void> {
> 169 | await this.getRoleColumnHeader().click();
| ^
170 | }
171 |
172 | /**
at UsersListPage.clickRoleColumnHeader (/home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/lib/pages/users-list-page.ts:169:36)
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:79:23
|
|
specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting:
tests/e2e/specs/highlight-mfa-users.spec.ts#L0
4) specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting ────────────
Test timeout of 120000ms exceeded.
|
|
specs/highlight-mfa-users.spec.ts:52:6 › Highlight MFA Users › Filtering by MFA status:
tests/e2e/specs/highlight-mfa-users.spec.ts#L58
3) specs/highlight-mfa-users.spec.ts:52:6 › Highlight MFA Users › Filtering by MFA status ────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: locator('.notice.notice-error a').filter({ hasText: 'Filter list to show these users.' })
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('.notice.notice-error a').filter({ hasText: 'Filter list to show these users.' })
56 | // Verify "MFA Disabled" filter link exists
57 | const mfaDisabledFilter = usersListPage.getFilterLink();
> 58 | await expect( mfaDisabledFilter ).toBeVisible();
| ^
59 |
60 | // Click the MFA Disabled filter
61 | await usersListPage.clickFilterLink();
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:58:37
|
|
specs/highlight-mfa-users.spec.ts:52:6 › Highlight MFA Users › Filtering by MFA status:
tests/e2e/specs/highlight-mfa-users.spec.ts#L58
3) specs/highlight-mfa-users.spec.ts:52:6 › Highlight MFA Users › Filtering by MFA status ────────
Error: expect(locator).toBeVisible() failed
Locator: locator('.notice.notice-error a').filter({ hasText: 'Filter list to show these users.' })
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('.notice.notice-error a').filter({ hasText: 'Filter list to show these users.' })
56 | // Verify "MFA Disabled" filter link exists
57 | const mfaDisabledFilter = usersListPage.getFilterLink();
> 58 | await expect( mfaDisabledFilter ).toBeVisible();
| ^
59 |
60 | // Click the MFA Disabled filter
61 | await usersListPage.clickFilterLink();
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:58:37
|
|
specs/highlight-mfa-users.spec.ts:40:6 › Highlight MFA Users › MFA disabled notice appears for users without MFA:
tests/e2e/specs/highlight-mfa-users.spec.ts#L46
2) specs/highlight-mfa-users.spec.ts:40:6 › Highlight MFA Users › MFA disabled notice appears for users without MFA
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: locator('.notice.notice-error')
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('.notice.notice-error')
44 | // Verify MFA disabled warning notice is visible
45 | const mfaNotice = usersListPage.getErrorNotice();
> 46 | await expect( mfaNotice ).toBeVisible();
| ^
47 |
48 | // Verify notice contains expected text
49 | await expect( mfaNotice ).toContainText( 'with Two-Factor Authentication disabled' );
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:46:29
|
|
specs/highlight-mfa-users.spec.ts:40:6 › Highlight MFA Users › MFA disabled notice appears for users without MFA:
tests/e2e/specs/highlight-mfa-users.spec.ts#L46
2) specs/highlight-mfa-users.spec.ts:40:6 › Highlight MFA Users › MFA disabled notice appears for users without MFA
Error: expect(locator).toBeVisible() failed
Locator: locator('.notice.notice-error')
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('.notice.notice-error')
44 | // Verify MFA disabled warning notice is visible
45 | const mfaNotice = usersListPage.getErrorNotice();
> 46 | await expect( mfaNotice ).toBeVisible();
| ^
47 |
48 | // Verify notice contains expected text
49 | await expect( mfaNotice ).toContainText( 'with Two-Factor Authentication disabled' );
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:46:29
|
|
specs/highlight-mfa-users.spec.ts:29:7 › Highlight MFA Users › With module disable › Role column is not sortable when module is disabled:
tests/e2e/specs/highlight-mfa-users.spec.ts#L35
1) specs/highlight-mfa-users.spec.ts:29:7 › Highlight MFA Users › With module disable › Role column is not sortable when module is disabled
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible() failed
Locator: locator('table.wp-list-table').locator('thead th').filter({ hasText: 'Role' })
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('table.wp-list-table').locator('thead th').filter({ hasText: 'Role' })
33 | // Verify Role column header is present
34 | const roleColumnHeader = usersListPage.getRoleColumnHeader();
> 35 | await expect( roleColumnHeader ).toBeVisible();
| ^
36 | // Verify Role column header is not clickable (not sortable)
37 | await expect( roleColumnHeader ).not.toHaveAttribute( 'aria-sort', /ascending|descending/ );
38 | } );
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:35:37
|
|
specs/highlight-mfa-users.spec.ts:29:7 › Highlight MFA Users › With module disable › Role column is not sortable when module is disabled:
tests/e2e/specs/highlight-mfa-users.spec.ts#L35
1) specs/highlight-mfa-users.spec.ts:29:7 › Highlight MFA Users › With module disable › Role column is not sortable when module is disabled
Error: expect(locator).toBeVisible() failed
Locator: locator('table.wp-list-table').locator('thead th').filter({ hasText: 'Role' })
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('table.wp-list-table').locator('thead th').filter({ hasText: 'Role' })
33 | // Verify Role column header is present
34 | const roleColumnHeader = usersListPage.getRoleColumnHeader();
> 35 | await expect( roleColumnHeader ).toBeVisible();
| ^
36 | // Verify Role column header is not clickable (not sortable)
37 | await expect( roleColumnHeader ).not.toHaveAttribute( 'aria-sort', /ascending|descending/ );
38 | } );
at /home/runner/work/vip-security-boost/vip-security-boost/tests/e2e/specs/highlight-mfa-users.spec.ts:35:37
|
|
Run ESLint on E2E tests:
tests/e2e/specs/session-control.spec.ts#L79
Test has no assertions
|
|
Run ESLint on E2E tests:
tests/e2e/specs/session-control.spec.ts#L46
Test has no assertions
|
|
Run ESLint on E2E tests:
tests/e2e/specs/session-control.spec.ts#L13
Test has no assertions
|
|
Run ESLint on E2E tests:
tests/e2e/specs/inactive-users.spec.ts#L88
Test has no assertions
|
|
Run ESLint on E2E tests:
tests/e2e/specs/inactive-users.spec.ts#L29
Test has no assertions
|
|
Run ESLint on E2E tests:
tests/e2e/lib/pages/wp-editor-page.ts#L93
Unexpected use of page.waitForSelector()
|
|
Run ESLint on E2E tests:
tests/e2e/lib/pages/users-list-page.ts#L46
Found non-literal argument to RegExp Constructor
|
|
🎭 Playwright Run Summary
13 failed
specs/highlight-mfa-users.spec.ts:29:7 › Highlight MFA Users › With module disable › Role column is not sortable when module is disabled
specs/highlight-mfa-users.spec.ts:40:6 › Highlight MFA Users › MFA disabled notice appears for users without MFA
specs/highlight-mfa-users.spec.ts:52:6 › Highlight MFA Users › Filtering by MFA status ─────────
specs/highlight-mfa-users.spec.ts:74:6 › Highlight MFA Users › Role column sorting ─────────────
specs/highlight-mfa-users.spec.ts:89:6 › Highlight MFA Users › Show all users link works ───────
specs/inactive-users.spec.ts:15:7 › Inactive Users › Blocked Users › Display inactive user badge for inactive blocked user
specs/inactive-users.spec.ts:29:7 › Inactive Users › Blocked Users › Ensure users do not have the blocked badge
specs/inactive-users.spec.ts:38:7 › Inactive Users › Blocked Users › Unblock link appears for blocked users
specs/inactive-users.spec.ts:69:7 › Inactive Users › Inactive Users › Display inactive user badge for inactive user
specs/inactive-users.spec.ts:88:7 › Inactive Users › Inactive Users › Ensure users do not have the inactive badge
specs/media__add.spec.ts:13:5 › Add Media ──────────────────────────────────────────────────────
specs/page__edit.spec.ts:53:5 › edit a Page ────────────────────────────────────────────────────
specs/post__edit.spec.ts:53:5 › edit a Post ────────────────────────────────────────────────────
18 passed (11.0m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
test-results
Expired
|
9.36 MB |
sha256:369f02de446da1c17893c118971d3896b5652d0275990bed515eb97ff8f48eda
|
|