Browse Source

Update web vault to v2026.11.0, Playwright tests and dependencies (#8002)

pull/7695/merge
Daniel García 4 days ago
committed by GitHub
parent
commit
b91cab3c24
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      .github/workflows/build.yml
  2. 2
      .github/workflows/sdk-live-tests.yml
  3. 4
      docker/DockerSettings.yaml
  4. 12
      docker/Dockerfile.alpine
  5. 12
      docker/Dockerfile.debian
  6. 2
      playwright/README.md
  7. 6
      playwright/compose/playwright/Dockerfile
  8. 12
      playwright/docker-compose.yml
  9. 8
      playwright/global-utils.ts
  10. 1398
      playwright/package-lock.json
  11. 10
      playwright/package.json
  12. 5
      playwright/playwright.config.ts
  13. 2
      playwright/tests/collection.spec.ts
  14. 21
      playwright/tests/cyphers.spec.ts
  15. 4
      playwright/tests/organization.smtp.spec.ts
  16. 4
      playwright/tests/secrets.spec.ts
  17. 4
      playwright/tests/send.spec.ts
  18. 19
      playwright/tests/setups/orgs.ts
  19. 4
      playwright/tests/sso_organization.spec.ts

3
.github/workflows/build.yml

@ -120,6 +120,9 @@ jobs:
# Set as the default toolchain # Set as the default toolchain
rustup default "${RUST_TOOLCHAIN}" rustup default "${RUST_TOOLCHAIN}"
# rust-cache keys on every installed toolchain, so the runner image's stable would change the key on each image update
rustup toolchain uninstall stable
# Show environment # Show environment
- name: "Show environment" - name: "Show environment"
run: | run: |

2
.github/workflows/sdk-live-tests.yml

@ -107,6 +107,8 @@ jobs:
rustup target add wasm32-unknown-unknown rustup target add wasm32-unknown-unknown
rustup component add rust-src rustup component add rust-src
fi fi
# rust-cache keys on every installed toolchain, so the runner image's stable would change the key on each image update
rustup toolchain uninstall stable
# One cache per SDK source, so that neither restores the other's. # One cache per SDK source, so that neither restores the other's.
# Only save caches on main to save cache space. # Only save caches on main to save cache space.

4
docker/DockerSettings.yaml

@ -1,6 +1,6 @@
--- ---
vault_version: "v2026.10.1" vault_version: "v2026.11.0"
vault_image_digest: "sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52" vault_image_digest: "sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9"
# Cross Compile Docker Helper Scripts v1.10.0 # Cross Compile Docker Helper Scripts v1.10.0
# We use the linux/amd64 platform shell scripts since there is no difference between the different platform scripts # We use the linux/amd64 platform shell scripts since there is no difference between the different platform scripts
# https://github.com/tonistiigi/xx | https://hub.docker.com/r/tonistiigi/xx/tags # https://github.com/tonistiigi/xx | https://hub.docker.com/r/tonistiigi/xx/tags

12
docker/Dockerfile.alpine

@ -19,15 +19,15 @@
# - From https://hub.docker.com/r/vaultwarden/web-vault/tags, # - From https://hub.docker.com/r/vaultwarden/web-vault/tags,
# click the tag name to view the digest of the image it currently points to. # click the tag name to view the digest of the image it currently points to.
# - From the command line: # - From the command line:
# $ docker pull docker.io/vaultwarden/web-vault:v2026.10.1 # $ docker pull docker.io/vaultwarden/web-vault:v2026.11.0
# $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.10.1 # $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.11.0
# [docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52] # [docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9]
# #
# - Conversely, to get the tag name from the digest: # - Conversely, to get the tag name from the digest:
# $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 # $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9
# [docker.io/vaultwarden/web-vault:v2026.10.1] # [docker.io/vaultwarden/web-vault:v2026.11.0]
# #
FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 AS vault FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9 AS vault
########################## ALPINE BUILD IMAGES ########################## ########################## ALPINE BUILD IMAGES ##########################
## NOTE: The Alpine Base Images do not support other platforms then linux/amd64 and linux/arm64 ## NOTE: The Alpine Base Images do not support other platforms then linux/amd64 and linux/arm64

12
docker/Dockerfile.debian

@ -19,15 +19,15 @@
# - From https://hub.docker.com/r/vaultwarden/web-vault/tags, # - From https://hub.docker.com/r/vaultwarden/web-vault/tags,
# click the tag name to view the digest of the image it currently points to. # click the tag name to view the digest of the image it currently points to.
# - From the command line: # - From the command line:
# $ docker pull docker.io/vaultwarden/web-vault:v2026.10.1 # $ docker pull docker.io/vaultwarden/web-vault:v2026.11.0
# $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.10.1 # $ docker image inspect --format "{{.RepoDigests}}" docker.io/vaultwarden/web-vault:v2026.11.0
# [docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52] # [docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9]
# #
# - Conversely, to get the tag name from the digest: # - Conversely, to get the tag name from the digest:
# $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 # $ docker image inspect --format "{{.RepoTags}}" docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9
# [docker.io/vaultwarden/web-vault:v2026.10.1] # [docker.io/vaultwarden/web-vault:v2026.11.0]
# #
FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:7baaa7d5349742548b6c44e557c1512157b22010cdf314ccc399ffdcacb5eb52 AS vault FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@sha256:b3e7e1607a6a3c4521cd801d5e3e79ab201d27cb59bfd6e6bd204308b42dc7a9 AS vault
########################## Cross Compile Docker Helper Scripts ########################## ########################## Cross Compile Docker Helper Scripts ##########################
## We use the linux/amd64 no matter which Build Platform, since these are all bash scripts ## We use the linux/amd64 no matter which Build Platform, since these are all bash scripts

2
playwright/README.md

@ -12,7 +12,7 @@ Databases (`Mariadb`, `Mysql` and `Postgres`) and `Playwright` will run in conta
### Running Playwright outside docker ### Running Playwright outside docker
It's possible to run `Playwright` outside of the container, this remove the need to rebuild the image for each change. It's possible to run `Playwright` outside of the container, this remove the need to rebuild the image for each change.
You'll additionally need `nodejs` then run: You'll additionally need `nodejs` 24 or newer, then run:
```bash ```bash
npm ci --ignore-scripts --allow-git=none --allow-remote=none npm ci --ignore-scripts --allow-git=none --allow-remote=none

6
playwright/compose/playwright/Dockerfile

@ -1,4 +1,4 @@
FROM docker.io/library/debian:trixie-slim FROM docker.io/library/node:26-trixie-slim
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@ -19,8 +19,6 @@ RUN apt-get update \
git \ git \
libmariadb-dev-compat \ libmariadb-dev-compat \
libpq5 \ libpq5 \
nodejs \
npm \
openssl \ openssl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
@ -36,5 +34,5 @@ COPY compose ./compose
COPY *.ts test.env ./ COPY *.ts test.env ./
COPY tests ./tests COPY tests ./tests
ENTRYPOINT ["/usr/bin/npx", "playwright"] ENTRYPOINT ["/usr/local/bin/npx", "playwright"]
CMD ["test"] CMD ["test"]

12
playwright/docker-compose.yml

@ -65,7 +65,7 @@ services:
Mariadb: Mariadb:
profiles: ["playwright"] profiles: ["playwright"]
container_name: playwright_mariadb container_name: playwright_mariadb
image: mariadb:12.2.2 image: mariadb:12.3.3
env_file: test.env env_file: test.env
healthcheck: healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
@ -77,7 +77,7 @@ services:
Mysql: Mysql:
profiles: ["playwright"] profiles: ["playwright"]
container_name: playwright_mysql container_name: playwright_mysql
image: mysql:9.7.0 image: mysql:9.7.4
env_file: test.env env_file: test.env
healthcheck: healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
@ -89,7 +89,7 @@ services:
Postgres: Postgres:
profiles: ["playwright"] profiles: ["playwright"]
container_name: playwright_postgres container_name: playwright_postgres
image: postgres:18.4 image: postgres:18.7
env_file: test.env env_file: test.env
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
@ -101,7 +101,7 @@ services:
Maildev: Maildev:
profiles: ["vaultwarden", "maildev"] profiles: ["vaultwarden", "maildev"]
container_name: maildev container_name: maildev
image: timshel/maildev:3.2.19 image: timshel/maildev:3.3.8
ports: ports:
- ${SMTP_PORT}:1025 - ${SMTP_PORT}:1025
- 1080:1080 - 1080:1080
@ -109,7 +109,7 @@ services:
Keycloak: Keycloak:
profiles: ["keycloak", "vaultwarden"] profiles: ["keycloak", "vaultwarden"]
container_name: keycloak-${ENV:-dev} container_name: keycloak-${ENV:-dev}
image: quay.io/keycloak/keycloak:26.6.2 image: quay.io/keycloak/keycloak:26.8.2
network_mode: "host" network_mode: "host"
command: command:
- start-dev - start-dev
@ -124,7 +124,7 @@ services:
context: compose/keycloak context: compose/keycloak
dockerfile: Dockerfile dockerfile: Dockerfile
args: args:
KEYCLOAK_VERSION: 26.6.2 KEYCLOAK_VERSION: 26.8.2
depends_on: depends_on:
- Keycloak - Keycloak
restart: "no" restart: "no"

8
playwright/global-utils.ts

@ -221,13 +221,15 @@ export async function restartVault(page: Page, testInfo: TestInfo, env, resetDB:
} }
export async function checkNotification(page: Page, hasText: string) { export async function checkNotification(page: Page, hasText: string) {
await expect(page.locator('bit-toast', { hasText })).toBeVisible(); const toast = page.locator('bit-toast', { hasText });
await expect(toast).toBeVisible();
// An open dialog marks the toasts aria-hidden and covers them: find the button by CSS and dispatch the click.
try { try {
await page.locator('bit-toast', { hasText }).getByRole('button', { name: 'Close' }).click({force: true, timeout: 10_000}); await toast.locator('button[aria-label="Close"]').dispatchEvent('click', undefined, { timeout: 5_000 });
} catch (error) { } catch (error) {
console.log(`Closing notification failed but it should now be invisible (${error})`); console.log(`Closing notification failed but it should now be invisible (${error})`);
} }
await expect(page.locator('bit-toast', { hasText })).toHaveCount(0); await expect(toast).toHaveCount(0);
} }
export async function cleanLanding(page: Page) { export async function cleanLanding(page: Page) {

1398
playwright/package-lock.json

File diff suppressed because it is too large

10
playwright/package.json

@ -8,14 +8,14 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@playwright/test": "1.60.0", "@playwright/test": "1.65.1",
"dotenv": "17.4.2", "dotenv": "17.4.2",
"dotenv-expand": "13.0.0", "dotenv-expand": "13.0.0",
"maildev": "npm:@timshel_npm/maildev@3.2.19" "maildev": "npm:@timshel_npm/maildev@3.3.8"
}, },
"dependencies": { "dependencies": {
"mysql2": "3.22.3", "mysql2": "3.24.6",
"otpauth": "9.5.1", "otpauth": "9.6.0",
"pg": "8.21.0" "pg": "8.23.1"
} }
} }

5
playwright/playwright.config.ts

@ -26,14 +26,15 @@ export default defineConfig({
* But short action/nav/expect timeouts to fail on specific step (raise locally if not enough). * But short action/nav/expect timeouts to fail on specific step (raise locally if not enough).
*/ */
timeout: 240 * 1000, timeout: 240 * 1000,
actionTimeout: 40 * 1000,
navigationTimeout: 40 * 1000,
expect: { timeout: 40 * 1000 }, expect: { timeout: 40 * 1000 },
"permissions": ["clipboard-read"], "permissions": ["clipboard-read"],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: { use: {
actionTimeout: 40 * 1000,
navigationTimeout: 40 * 1000,
/* Base URL to use in actions like `await page.goto('/')`. */ /* Base URL to use in actions like `await page.goto('/')`. */
baseURL: process.env.DOMAIN, baseURL: process.env.DOMAIN,
browserName: 'firefox', browserName: 'firefox',

2
playwright/tests/collection.spec.ts

@ -21,7 +21,7 @@ test('Create', async ({ page }) => {
await orgs.create(test, page, 'New organisation'); await orgs.create(test, page, 'New organisation');
await test.step('Create Collection', async () => { await test.step('Create Collection', async () => {
await page.getByRole('button', { name: 'New', exact: true }).click(); await page.getByRole('button', { name: /^(New|Add)$/ }).click();
await page.getByRole('menuitem', { name: 'Collection' }).click(); await page.getByRole('menuitem', { name: 'Collection' }).click();
await page.getByRole('textbox', { name: 'Name * (required)', exact: true }).fill('RandomCollec'); await page.getByRole('textbox', { name: 'Name * (required)', exact: true }).fill('RandomCollec');
await page.getByRole('button', { name: 'Save' }).click(); await page.getByRole('button', { name: 'Save' }).click();

21
playwright/tests/cyphers.spec.ts

@ -24,12 +24,16 @@ test('Change Key settings', async ({ page }) => {
await page.getByRole('link', { name: 'Security' }).click(); await page.getByRole('link', { name: 'Security' }).click();
await page.getByRole('link', { name: 'Keys' }).click(); await page.getByRole('link', { name: 'Keys' }).click();
// V2 accounts (pm-27278-v2-password-registration) register with Argon2id, V1 ones with PBKDF2
await page.locator('.ng-arrow-wrapper').click();
await page.getByRole('option', { name: 'PBKDF2 SHA-256' }).click();
await page.getByRole('spinbutton', { name: 'KDF iterations * (required)'}).fill('700000'); await page.getByRole('spinbutton', { name: 'KDF iterations * (required)'}).fill('700000');
await page.getByRole('button', { name: 'Update encryption settings' }).click(); await page.getByRole('button', { name: 'Update encryption settings' }).click();
await page.getByRole('textbox', { name: 'Master password * (required)' }).fill(users.user1.password); await page.getByRole('textbox', { name: 'Master password * (required)' }).fill(users.user1.password);
await page.getByRole('button', { name: 'Update settings' }).click(); await page.getByRole('button', { name: 'Update settings' }).click();
await page.getByRole('heading', { name: 'Log in' }).click(); await kdfChanged(test, page);
}); });
await logUser(test, page, users.user1); await logUser(test, page, users.user1);
@ -49,8 +53,21 @@ test('Change Key settings', async ({ page }) => {
await page.getByRole('button', { name: 'Update encryption settings' }).click(); await page.getByRole('button', { name: 'Update encryption settings' }).click();
await page.getByRole('textbox', { name: 'Master password * (required)' }).fill(users.user1.password); await page.getByRole('textbox', { name: 'Master password * (required)' }).fill(users.user1.password);
await page.getByRole('button', { name: 'Update settings' }).click(); await page.getByRole('button', { name: 'Update settings' }).click();
await page.getByRole('heading', { name: 'Log in' }).click(); await kdfChanged(test, page);
}); });
await logUser(test, page, users.user1); await logUser(test, page, users.user1);
}); });
// Before web vault 2026.10 a KDF change logged the user out, with "Please log back in." in the toast.
async function kdfChanged(test, page: Page) {
const toast = page.locator('bit-toast', { hasText: 'Encryption key settings changed' });
await expect(toast).toBeVisible();
const loggedOut = await toast.filter({ hasText: 'Please log back in' }).count() > 0;
await utils.checkNotification(page, 'Encryption key settings changed');
if (loggedOut) {
await expect(page.getByRole('heading', { name: 'Log in' })).toBeVisible();
} else {
await utils.logout(test, page, users.user1);
}
}

4
playwright/tests/organization.smtp.spec.ts

@ -47,14 +47,14 @@ test('Invite users', async ({ page }) => {
// Account recovery requires the Single organisation policy (ENFORCE_SINGLE_ORG_WITH_RESET_PW_POLICY) // Account recovery requires the Single organisation policy (ENFORCE_SINGLE_ORG_WITH_RESET_PW_POLICY)
await test.step(`Set single organisation`, async () => { await test.step(`Set single organisation`, async () => {
await page.getByRole('button', { name: 'Single organisation' }).click(); await page.getByRole('button', { name: 'Single organisation' }).click();
await page.getByRole('checkbox', { name: 'Turn on' }).or(page.getByRole('switch', { name: 'Enable policy' })).check({ force: true }); await orgs.enablePolicy(page);
await page.getByRole('button', { name: 'Save' }).click(); await page.getByRole('button', { name: 'Save' }).click();
await utils.checkNotification(page, 'Edited policy Single organisation'); await utils.checkNotification(page, 'Edited policy Single organisation');
}); });
await test.step(`Set account recovery`, async () => { await test.step(`Set account recovery`, async () => {
await page.getByRole('button', { name: 'Account recovery' }).click(); await page.getByRole('button', { name: 'Account recovery' }).click();
await page.getByRole('checkbox', { name: 'Turn on' }).check(); await orgs.enablePolicy(page);
await page.getByRole('checkbox', { name: 'Automatically enroll new' }).check(); await page.getByRole('checkbox', { name: 'Automatically enroll new' }).check();
await page.getByRole('button', { name: 'Save' }).click(); await page.getByRole('button', { name: 'Save' }).click();
await utils.checkNotification(page, 'Edited policy Account recovery'); await utils.checkNotification(page, 'Edited policy Account recovery');

4
playwright/tests/secrets.spec.ts

@ -26,7 +26,7 @@ test('Password', async ({ context, page }, testInfo: TestInfo) => {
await logUser(test, page, users.user1); await logUser(test, page, users.user1);
await test.step('Create password entry', async () => { await test.step('Create password entry', async () => {
await page.getByRole('button', { name: 'New item' }).click(); await page.getByRole('button', { name: /^(New|Add) item$/ }).click();
await page.getByRole('textbox', { name: 'Item name * (required)' }).fill(label); await page.getByRole('textbox', { name: 'Item name * (required)' }).fill(label);
await page.getByRole('textbox', { name: 'Username' }).fill(users.user1.name); await page.getByRole('textbox', { name: 'Username' }).fill(users.user1.name);
await page.getByRole('textbox', { name: 'Password' }).fill(users.user1.password); await page.getByRole('textbox', { name: 'Password' }).fill(users.user1.password);
@ -71,7 +71,7 @@ test('SSH Key', async ({ context, page }, testInfo: TestInfo) => {
await logUser(test, page, users.user1); await logUser(test, page, users.user1);
const privateKey = await test.step('Create key entry', async () => { const privateKey = await test.step('Create key entry', async () => {
await page.getByRole('button', { name: 'New', exact: true }).click(); await page.getByRole('button', { name: /^(New|Add)$/ }).click();
await page.getByRole('menuitem', { name: 'SSH key' }).click(); await page.getByRole('menuitem', { name: 'SSH key' }).click();
await page.getByRole('textbox', { name: 'Item name * (required)' }).fill('Test SSH key'); await page.getByRole('textbox', { name: 'Item name * (required)' }).fill('Test SSH key');
await page.getByRole('button', { name: 'Save' }).click(); await page.getByRole('button', { name: 'Save' }).click();

4
playwright/tests/send.spec.ts

@ -21,7 +21,7 @@ test('Send', async ({ browser, page }) => {
await page.getByRole('link', { name: 'Send' }).click(); await page.getByRole('link', { name: 'Send' }).click();
await expect(page.locator('#main-content').getByText('Send', { exact: true })).toBeVisible(); await expect(page.locator('#main-content').getByText('Send', { exact: true })).toBeVisible();
await page.getByRole('button', { name: 'New Send', exact: true }).click(); await page.getByRole('button', { name: /^(New|Create) Send$/ }).click();
await page.getByRole('menuitem', { name: 'Text' }).click(); await page.getByRole('menuitem', { name: 'Text' }).click();
await page.getByRole('textbox', { name: 'Send name * (required)' }).fill('Test'); await page.getByRole('textbox', { name: 'Send name * (required)' }).fill('Test');
@ -46,7 +46,7 @@ test('Send', async ({ browser, page }) => {
await page.getByRole('link', { name: 'Send' }).click(); await page.getByRole('link', { name: 'Send' }).click();
await expect(page.locator('#main-content').getByText('Send', { exact: true })).toBeVisible(); await expect(page.locator('#main-content').getByText('Send', { exact: true })).toBeVisible();
await page.getByRole('button', { name: 'New' }).click(); await page.getByRole('button', { name: /\b(New|Create)$/ }).click();
await page.getByRole('menuitem', { name: 'Text' }).click(); await page.getByRole('menuitem', { name: 'Text' }).click();
await page.getByRole('textbox', { name: 'Send name * (required)' }).fill('Password'); await page.getByRole('textbox', { name: 'Send name * (required)' }).fill('Password');

19
playwright/tests/setups/orgs.ts

@ -29,6 +29,11 @@ export async function policies(test, page: Page, name: string) {
}); });
} }
// Web vault 2026.10 replaced the "Turn on" checkbox with an "Enable policy" switch, whose thumb covers the input.
export async function enablePolicy(page: Page) {
await page.getByRole('checkbox', { name: 'Turn on' }).or(page.getByRole('switch', { name: 'Enable policy' })).check({ force: true });
}
export async function members(test, page: Page, name: string) { export async function members(test, page: Page, name: string) {
await test.step(`Navigate to ${name} members`, async () => { await test.step(`Navigate to ${name} members`, async () => {
await page.locator('a').filter({ hasText: 'Admin Console' }).first().click(); await page.locator('a').filter({ hasText: 'Admin Console' }).first().click();
@ -46,13 +51,19 @@ export async function invite(test, page: Page, name: string, email: string) {
await expect(page.getByRole('heading', { name: 'Members' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Members' })).toBeVisible();
await page.getByRole('button', { name: 'Invite member' }).click(); await page.getByRole('button', { name: 'Invite member' }).click();
await page.getByRole('textbox', { name: 'Email * (required)', exact: true }).fill(email); await page.getByRole('textbox', { name: 'Email * (required)', exact: true }).fill(email);
await page.getByRole('tab', { name: 'Collections' }).click(); // Web vault 2026.10 moved collections from a tab into "More settings" and renamed Save to Invite.
await page.getByRole('combobox', { name: 'Permission' }).click(); const moreSettings = page.getByRole('button', { name: 'More settings' });
if (await moreSettings.count() > 0) {
await moreSettings.click();
} else {
await page.getByRole('tab', { name: 'Collections' }).click();
}
await page.getByTestId('permission').getByRole('combobox').click();
await page.getByText('Edit items', { exact: true }).click(); await page.getByText('Edit items', { exact: true }).click();
await page.getByRole('combobox', { name: 'Select collections' }).click(); await page.getByRole('combobox', { name: /^(Select collections|Collections)/ }).click();
await page.getByLabel('Options List').getByText('Default collection').click(); await page.getByLabel('Options List').getByText('Default collection').click();
await page.getByRole('columnheader', { name: 'Collection', exact: true }).click(); await page.getByRole('columnheader', { name: 'Collection', exact: true }).click();
await page.getByRole('button', { name: 'Save' }).click(); await page.getByRole('button', { name: /^(Save|Invite)$/ }).click();
await utils.checkNotification(page, 'User(s) invited'); await utils.checkNotification(page, 'User(s) invited');
}); });
} }

4
playwright/tests/sso_organization.spec.ts

@ -55,9 +55,9 @@ test('Activate password policy', async ({ page }) => {
await test.step(`Set master password policy`, async () => { await test.step(`Set master password policy`, async () => {
await page.getByRole('button', { name: 'Master password requirements' }).click(); await page.getByRole('button', { name: 'Master password requirements' }).click();
await page.getByRole('checkbox', { name: 'Turn on' }).check(); await orgs.enablePolicy(page);
await page.getByRole('checkbox', { name: 'Require existing members to' }).check(); await page.getByRole('checkbox', { name: 'Require existing members to' }).check();
await page.getByRole('spinbutton', { name: 'Minimum length' }).fill('42'); await page.getByRole('spinbutton', { name: /^Minimum (character )?length/ }).fill('42');
await page.getByRole('button', { name: 'Save' }).click(); await page.getByRole('button', { name: 'Save' }).click();
await utils.checkNotification(page, 'Edited policy Master password requirements.'); await utils.checkNotification(page, 'Edited policy Master password requirements.');
}); });

Loading…
Cancel
Save