mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
test(infra): add E2E Playwright verification spec for Vaultwarden routing
- Verify vault.researchstack.info routes successfully to standalone Vaultwarden container on cupfox Build: 0 jobs, 0 errors (lake build)
This commit is contained in:
parent
82b1d3f280
commit
8c09c239c8
1 changed files with 20 additions and 0 deletions
20
4-Infrastructure/k3s-flake/tests/vaultwarden-verify.spec.ts
Normal file
20
4-Infrastructure/k3s-flake/tests/vaultwarden-verify.spec.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('Verify Vaultwarden accessible via subdomain', async ({ page }) => {
|
||||
page.on('console', msg => console.log(`Browser Console [${msg.type()}]:`, msg.text()));
|
||||
page.on('requestfailed', req => console.log('Request Failed:', req.url(), req.failure()?.errorText));
|
||||
page.on('pageerror', err => console.log('Page Error:', err.message));
|
||||
|
||||
console.log('Navigating to Vaultwarden via domain...');
|
||||
await page.goto('https://vault.researchstack.info');
|
||||
await page.waitForTimeout(5000);
|
||||
|
||||
console.log('Current URL:', page.url());
|
||||
console.log('Page Title:', await page.title());
|
||||
|
||||
await page.screenshot({ path: '/tmp/vaultwarden-verify-final.png' });
|
||||
|
||||
// Assert that we have landed on the Vaultwarden (Bitwarden Web Vault) main page
|
||||
const title = await page.title();
|
||||
expect(title.toLowerCase()).toContain('vaultwarden');
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue