mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-17 17:32:27 -05:00
[PR #4369] [CLOSED] Add playwright create/login test for all db #7060
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4369
Author: @Timshel
Created: 2/20/2024
Status: ❌ Closed
Base:
main← Head:feature/playwright📝 Commits (2)
2618730Add playwright tests for all dbcb811d9Add 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-composeto run Keycloak.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.