1
0
Fork 0
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:
Timshel 2024-09-25 15:42:05 +02:00
commit 927968d251
31 changed files with 4269 additions and 3 deletions

View 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`);
}
});