mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
add dashboard frontend
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
export const PLAYWRIGHT_BASE_URL =
|
||||
process.env.PLAYWRIGHT_BASE_URL ?? 'http://laravel.test';
|
||||
process.env.PLAYWRIGHT_BASE_URL ?? 'http://solidtime.test';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { expect, test as baseTest } from '@playwright/test';
|
||||
import { test as baseTest } from '@playwright/test';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { PLAYWRIGHT_BASE_URL } from './config';
|
||||
@@ -55,11 +55,6 @@ export const test = baseTest.extend<object, { workerStorageState: string }>({
|
||||
// Wait for the final URL to ensure that the cookies are actually set.
|
||||
await page.waitForURL(PLAYWRIGHT_BASE_URL + '/dashboard');
|
||||
|
||||
// Alternatively, you can wait until the page reaches a state where all cookies are set.
|
||||
await expect(
|
||||
page.getByRole('heading', { name: 'Dashboard' })
|
||||
).toBeVisible();
|
||||
|
||||
// End of authentication steps.
|
||||
|
||||
await page.context().storageState({ path: fileName });
|
||||
|
||||
Reference in New Issue
Block a user