mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 14:39:06 +00:00
refactor: collocate view navigation
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
export const navigatorConstants = [
|
export const navigatorConstants = [
|
||||||
{ url: 'timer', label: 'Timer' },
|
{ url: 'timer', label: 'Timer' },
|
||||||
{ url: 'clock', label: 'Clock' },
|
|
||||||
{ url: 'minimal', label: 'Minimal Timer' },
|
{ url: 'minimal', label: 'Minimal Timer' },
|
||||||
|
{ url: 'clock', label: 'Wall Clock' },
|
||||||
{ url: 'backstage', label: 'Backstage' },
|
{ url: 'backstage', label: 'Backstage' },
|
||||||
{ url: 'timeline', label: 'Timeline (beta)' },
|
{ url: 'timeline', label: 'Timeline (beta)' },
|
||||||
{ url: 'public', label: 'Public' },
|
{ url: 'public', label: 'Public' },
|
||||||
|
|||||||
@@ -6,18 +6,18 @@ test.describe('test view navigation feature', () => {
|
|||||||
await page.goto('http://localhost:4001/');
|
await page.goto('http://localhost:4001/');
|
||||||
await page.locator('data-test-id=timer-view');
|
await page.locator('data-test-id=timer-view');
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'toggle menu' }).click();
|
|
||||||
await page.locator('data-test-id=navigation__menu');
|
|
||||||
await page.getByRole('link', { name: 'Clock', exact: true }).click();
|
|
||||||
await page.locator('data-test-id=clock-view');
|
|
||||||
await expect(page).toHaveURL('http://localhost:4001/clock');
|
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'toggle menu' }).click();
|
await page.getByRole('button', { name: 'toggle menu' }).click();
|
||||||
await page.locator('data-test-id=navigation__menu');
|
await page.locator('data-test-id=navigation__menu');
|
||||||
await page.getByRole('link', { name: 'Minimal Timer' }).click();
|
await page.getByRole('link', { name: 'Minimal Timer' }).click();
|
||||||
await page.locator('data-test-id=minimal-timer');
|
await page.locator('data-test-id=minimal-timer');
|
||||||
await expect(page).toHaveURL('http://localhost:4001/minimal');
|
await expect(page).toHaveURL('http://localhost:4001/minimal');
|
||||||
|
|
||||||
|
await page.getByRole('button', { name: 'toggle menu' }).click();
|
||||||
|
await page.locator('data-test-id=navigation__menu');
|
||||||
|
await page.getByRole('link', { name: 'Wall Clock', exact: true }).click();
|
||||||
|
await page.locator('data-test-id=clock-view');
|
||||||
|
await expect(page).toHaveURL('http://localhost:4001/clock');
|
||||||
|
|
||||||
await page.getByRole('button', { name: 'toggle menu' }).click();
|
await page.getByRole('button', { name: 'toggle menu' }).click();
|
||||||
await page.locator('data-test-id=navigation__menu');
|
await page.locator('data-test-id=navigation__menu');
|
||||||
await page.getByRole('link', { name: 'Backstage' }).click();
|
await page.getByRole('link', { name: 'Backstage' }).click();
|
||||||
|
|||||||
Reference in New Issue
Block a user