mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-08-21 02:05:24 +00:00
Add playwright tests
This commit is contained in:
parent
524d65e772
commit
927968d251
31 changed files with 4269 additions and 3 deletions
15
playwright/tests/setups/sso-teardown.ts
Normal file
15
playwright/tests/setups/sso-teardown.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { test, type FullConfig } from '@playwright/test';
|
||||
|
||||
const { execSync } = require('node:child_process');
|
||||
const utils = require('../../global-utils');
|
||||
|
||||
utils.loadEnv();
|
||||
|
||||
test('Keycloak teardown', async () => {
|
||||
if( process.env.PW_KEEP_SERVICE_RUNNNING === "true" ) {
|
||||
console.log("Keep Keycloak running");
|
||||
} else {
|
||||
console.log("Keycloak stopping");
|
||||
execSync(`docker compose --profile keycloak --env-file test.env stop Keycloak`);
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue