[PR #4369] [CLOSED] Add playwright create/login test for all db #7060

Closed
opened 2026-03-07 21:10:21 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/4369
Author: @Timshel
Created: 2/20/2024
Status: Closed

Base: mainHead: feature/playwright


📝 Commits (2)

  • 2618730 Add playwright tests for all db
  • cb811d9 Add 2fa authenticator test

📊 Changes

22 files changed (+3563 additions, -4 deletions)

View changed files

playwright/.gitignore (+6 -0)
playwright/README.md (+88 -0)
playwright/compose/playwright/Dockerfile (+40 -0)
playwright/compose/vaultwarden/Dockerfile (+39 -0)
playwright/compose/vaultwarden/build.sh (+24 -0)
playwright/docker-compose.yml (+76 -0)
playwright/global-setup.ts (+22 -0)
playwright/global-utils.ts (+207 -0)
playwright/package-lock.json (+2370 -0)
playwright/package.json (+21 -0)
playwright/playwright.config.ts (+98 -0)
playwright/test.env (+71 -0)
playwright/tests/login.smtp.spec.ts (+159 -0)
playwright/tests/login.spec.ts (+97 -0)
playwright/tests/organization.spec.ts (+167 -0)
playwright/tests/setups/db-setup.ts (+7 -0)
playwright/tests/setups/db-teardown.ts (+11 -0)
playwright/tests/setups/db-test.ts (+9 -0)
playwright/tests/setups/user.ts (+47 -0)
📝 src/static/templates/email/send_org_invite.html.hbs (+1 -1)

...and 2 more files

📄 Description

Hey

So I extracted the Playwright tests I wrote for the SSO PR since it could be reviewed independently.

This allow to test account creation and login on all three databases.

The setup phase might be a bit verbose but I didn´t want to introduce another dependency to handle the building.
Structure could be a bit more flat but in the SSO PR it include an additional docker-compose to run Keycloak.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/4369 **Author:** [@Timshel](https://github.com/Timshel) **Created:** 2/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/playwright` --- ### 📝 Commits (2) - [`2618730`](https://github.com/dani-garcia/vaultwarden/commit/2618730806ca8966735d743d1c054ca29451e035) Add playwright tests for all db - [`cb811d9`](https://github.com/dani-garcia/vaultwarden/commit/cb811d958599831632fac3b098a08412d840036c) Add 2fa authenticator test ### 📊 Changes **22 files changed** (+3563 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `playwright/.gitignore` (+6 -0) ➕ `playwright/README.md` (+88 -0) ➕ `playwright/compose/playwright/Dockerfile` (+40 -0) ➕ `playwright/compose/vaultwarden/Dockerfile` (+39 -0) ➕ `playwright/compose/vaultwarden/build.sh` (+24 -0) ➕ `playwright/docker-compose.yml` (+76 -0) ➕ `playwright/global-setup.ts` (+22 -0) ➕ `playwright/global-utils.ts` (+207 -0) ➕ `playwright/package-lock.json` (+2370 -0) ➕ `playwright/package.json` (+21 -0) ➕ `playwright/playwright.config.ts` (+98 -0) ➕ `playwright/test.env` (+71 -0) ➕ `playwright/tests/login.smtp.spec.ts` (+159 -0) ➕ `playwright/tests/login.spec.ts` (+97 -0) ➕ `playwright/tests/organization.spec.ts` (+167 -0) ➕ `playwright/tests/setups/db-setup.ts` (+7 -0) ➕ `playwright/tests/setups/db-teardown.ts` (+11 -0) ➕ `playwright/tests/setups/db-test.ts` (+9 -0) ➕ `playwright/tests/setups/user.ts` (+47 -0) 📝 `src/static/templates/email/send_org_invite.html.hbs` (+1 -1) _...and 2 more files_ </details> ### 📄 Description Hey So I extracted the Playwright tests I wrote for the SSO PR since it could be reviewed independently. This allow to test account creation and login on all three databases. The setup phase might be a bit verbose but I didn´t want to introduce another dependency to handle the building. Structure could be a bit more flat but in the SSO [PR](https://github.com/Timshel/vaultwarden/tree/sso-support/test) it include an additional `docker-compose` to run Keycloak. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:10:21 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#7060