chore: db file compatibility (#228)
This commit is contained in:
12
e2e/not-demo-mode.spec.ts
Normal file
12
e2e/not-demo-mode.spec.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('If not demo mode, the landing page will not be displayed and will be redirected to the projects page.', async ({
|
||||
page,
|
||||
}) => {
|
||||
const screenshotDir = 'playwright-screenshots/not-demo-redirect';
|
||||
|
||||
await page.goto('http://localhost:8000/');
|
||||
await expect(page).toHaveURL(/\/projects/);
|
||||
|
||||
await page.screenshot({ path: `${screenshotDir}/landing-page-redirect.png`, fullPage: true });
|
||||
});
|
||||
Reference in New Issue
Block a user