v1.10.0: top-bar Log out (ISS-157) + Admin button gated to admins (ISS-158)
CI / build + unit + e2e (pull_request) Successful in 6m18s
CI / build + unit + e2e (pull_request) Successful in 6m18s
This commit is contained in:
@@ -78,6 +78,17 @@ test('header shows the app version sourced from package.json', async ({ page })
|
||||
);
|
||||
});
|
||||
|
||||
// v1.10.0 (ISS-157): top-bar Log out — same drop-to-sign-in as the admin panel's button
|
||||
// (mirrors e2e/admin.spec.ts' logout assertion).
|
||||
test('top bar Log out drops back to the sign-in screen', async ({ page }) => {
|
||||
await page.goto(APP_URL);
|
||||
const header = page.getByTestId('app-header');
|
||||
await expect(header).toBeVisible({ timeout: 30_000 });
|
||||
await page.getByTestId('logout-btn').click();
|
||||
await expect(page.getByTestId('sign-in-form')).toBeVisible({ timeout: 10_000 });
|
||||
await expect(header).toHaveCount(0);
|
||||
});
|
||||
|
||||
test('clicking an airport marker opens a popup with name and ICAO', async ({ page }) => {
|
||||
await page.goto(APP_URL);
|
||||
await waitForAirportCount(page);
|
||||
|
||||
Reference in New Issue
Block a user