mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
908 B
26 lines
908 B
import { test, expect } from '@playwright/test';
|
|
import { loginAsAdmin } from './helpers/auth';
|
|
|
|
// Phase 0.4 — Version Display
|
|
// Assumes the app is running with APP_VERSION=v0.4.0 (kustomize configmap in UAT).
|
|
|
|
test.describe('Version display', () => {
|
|
test('navbar shows APP_VERSION below Settings link', async ({ page }) => {
|
|
await loginAsAdmin(page);
|
|
await page.goto('/');
|
|
|
|
const version = page.locator('#app_version');
|
|
await expect(version).toBeVisible();
|
|
await expect(version).toHaveText(/^v\d+\.\d+\.\d+/);
|
|
});
|
|
|
|
test('settings nav bottom version badge links to upstream releases', async ({ page }) => {
|
|
await loginAsAdmin(page);
|
|
await page.goto('/settings/profile');
|
|
|
|
const badge = page.locator('a[href="https://github.com/docusealco/docuseal/releases"]');
|
|
await expect(badge).toBeVisible();
|
|
await expect(badge).toHaveText(/^v\d+\.\d+\.\d+/);
|
|
});
|
|
});
|