Skip to content

App Passwords: Don't prevent non-unique App Password names. #35858

App Passwords: Don't prevent non-unique App Password names.

App Passwords: Don't prevent non-unique App Password names. #35858

Triggered via pull request September 17, 2024 23:54
Status Failure
Total duration 5m 0s
Artifacts 2

end-to-end-tests.yml

on: pull_request
Matrix: e2e-tests
Slack Notifications  /  Prepare notifications
Slack Notifications / Prepare notifications
Slack Notifications  /  Cancelled notifications
Slack Notifications / Cancelled notifications
Slack Notifications  /  Failure notifications
Slack Notifications / Failure notifications
Slack Notifications  /  Fixed notifications
Slack Notifications / Fixed notifications
Slack Notifications  /  Success notifications
Slack Notifications / Success notifications
Failed workflow tasks
0s
Failed workflow tasks
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 2 notices
[chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name: tests/e2e/specs/profile/applications-passwords.test.js#L47
1) [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: getByRole('alert') Expected pattern: /notice-error/ Received string: "notice notice-success is-dismissible new-application-password-notice" Call log: - expect.toHaveClass with timeout 5000ms - waiting for getByRole('alert') - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" 45 | const errorMessage = page.getByRole( 'alert' ); 46 | > 47 | await expect( errorMessage ).toHaveClass( /notice-error/ ); | ^ 48 | await expect( 49 | errorMessage 50 | ).toContainText( at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:47:32
[chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name: tests/e2e/specs/profile/applications-passwords.test.js#L47
1) [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: getByRole('alert') Expected pattern: /notice-error/ Received string: "notice notice-success is-dismissible new-application-password-notice" Call log: - expect.toHaveClass with timeout 5000ms - waiting for getByRole('alert') - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" 45 | const errorMessage = page.getByRole( 'alert' ); 46 | > 47 | await expect( errorMessage ).toHaveClass( /notice-error/ ); | ^ 48 | await expect( 49 | errorMessage 50 | ).toContainText( at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:47:32
[chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name: tests/e2e/specs/profile/applications-passwords.test.js#L47
1) [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: getByRole('alert') Expected pattern: /notice-error/ Received string: "notice notice-success is-dismissible new-application-password-notice" Call log: - expect.toHaveClass with timeout 5000ms - waiting for getByRole('alert') - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" 45 | const errorMessage = page.getByRole( 'alert' ); 46 | > 47 | await expect( errorMessage ).toHaveClass( /notice-error/ ); | ^ 48 | await expect( 49 | errorMessage 50 | ).toContainText( at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:47:32
Test with SCRIPT_DEBUG enabled / Run E2E tests
Process completed with exit code 1.
[chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name: tests/e2e/specs/profile/applications-passwords.test.js#L47
1) [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: getByRole('alert') Expected pattern: /notice-error/ Received string: "notice notice-success is-dismissible new-application-password-notice" Call log: - expect.toHaveClass with timeout 5000ms - waiting for getByRole('alert') - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" 45 | const errorMessage = page.getByRole( 'alert' ); 46 | > 47 | await expect( errorMessage ).toHaveClass( /notice-error/ ); | ^ 48 | await expect( 49 | errorMessage 50 | ).toContainText( at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:47:32
[chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name: tests/e2e/specs/profile/applications-passwords.test.js#L47
1) [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: getByRole('alert') Expected pattern: /notice-error/ Received string: "notice notice-success is-dismissible new-application-password-notice" Call log: - expect.toHaveClass with timeout 5000ms - waiting for getByRole('alert') - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" 45 | const errorMessage = page.getByRole( 'alert' ); 46 | > 47 | await expect( errorMessage ).toHaveClass( /notice-error/ ); | ^ 48 | await expect( 49 | errorMessage 50 | ).toContainText( at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:47:32
[chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name: tests/e2e/specs/profile/applications-passwords.test.js#L47
1) [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected) Locator: getByRole('alert') Expected pattern: /notice-error/ Received string: "notice notice-success is-dismissible new-application-password-notice" Call log: - expect.toHaveClass with timeout 5000ms - waiting for getByRole('alert') - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" - locator resolved to <div role="alert" tabindex="-1" class="notice notice-success is-dismissible new-application-password-notice">…</div> - unexpected value "notice notice-success is-dismissible new-application-password-notice" 45 | const errorMessage = page.getByRole( 'alert' ); 46 | > 47 | await expect( errorMessage ).toHaveClass( /notice-error/ ); | ^ 48 | await expect( 49 | errorMessage 50 | ).toContainText( at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:47:32
[chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials: tests/e2e/specs/install.test.js#L40
2) [chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials Error: should redirect to the installation page Timed out 5000ms waiting for expect(locator).toHaveURL(expected) Locator: locator(':root') Expected pattern: /wp-admin\/install\.php$/ Received string: "http://localhost:8889/" Call log: - should redirect to the installation page with timeout 5000ms - waiting for locator(':root') - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" - locator resolved to <html lang="en-US">…</html> - unexpected value "http://localhost:8889/" 38 | page, 39 | 'should redirect to the installation page' > 40 | ).toHaveURL( /wp-admin\/install\.php$/ ); | ^ 41 | 42 | await expect( 43 | page.getByText( /WordPress database error/ ), at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/install.test.js:40:5
[chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password: tests/e2e/specs/profile/applications-passwords.test.js#L110
3) [chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password Error: Not logged in 108 | 109 | async create(applicationName = TEST_APPLICATION_NAME) { > 110 | await this.admin.visitAdminPage( '/profile.php' ); | ^ 111 | 112 | const newPasswordField = this.page.getByRole( 'textbox', { name: 'New Application Password Name' } ); 113 | await expect( newPasswordField ).toBeVisible(); at Admin.visitAdminPage (/home/runner/work/wordpress-develop/wordpress-develop/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/visit-admin-page.ts:36:9) at ApplicationPasswords.create (/home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:110:3) at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:23:3
[chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password: tests/e2e/specs/profile/applications-passwords.test.js#L26
3) [chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'name') 24 | 25 | const [ app ] = await applicationPasswords.get(); > 26 | expect( app['name']).toBe( TEST_APPLICATION_NAME ); | ^ 27 | 28 | const successMessage = page.getByRole( 'alert' ); 29 | at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/profile/applications-passwords.test.js:26:14
Test with SCRIPT_DEBUG disabled / Run E2E tests
Process completed with exit code 1.
🎭 Playwright Run Summary
1 failed [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name 23 passed (1.0m)
🎭 Playwright Run Summary
1 failed [chromium] › profile/applications-passwords.test.js:38:6 › Manage applications passwords › should not allow to create two applications passwords with the same name 2 flaky [chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials [chromium] › profile/applications-passwords.test.js:19:6 › Manage applications passwords › should correctly create a new application password 21 passed (1.1m)

Artifacts

Produced during runtime
Name Size
failures-artifacts-10912929314
4.24 MB
failures-artifacts-SCRIPT_DEBUG-10912929314
3.02 MB