This commit is contained in:
@@ -3,11 +3,13 @@ import { loginThroughAdminUi } from './helpers/admin-auth';
|
||||
|
||||
test('check dashboard metrics', async ({ page }) => {
|
||||
const baseUrl = (process.env.E2E_BASE_URL || 'https://www.taxbaik.com').replace(/\/$/, '');
|
||||
const username = process.env.E2E_ADMIN_USERNAME || 'admin';
|
||||
const password = process.env.E2E_ADMIN_PASSWORD || 'Admin123!@#456';
|
||||
const username = process.env.E2E_ADMIN_USERNAME;
|
||||
const password = process.env.E2E_ADMIN_PASSWORD;
|
||||
|
||||
test.skip(!username || !password, 'E2E_ADMIN_USERNAME and E2E_ADMIN_PASSWORD are required.');
|
||||
|
||||
await loginThroughAdminUi(page, baseUrl, username, password);
|
||||
await expect(page).toHaveURL(/\/taxbaik\/admin\/dashboard$/);
|
||||
await expect(page).toHaveURL(/\/admin\/dashboard$/);
|
||||
|
||||
// Wait for page load
|
||||
await page.waitForSelector('.admin-page-hero', { timeout: 5000 });
|
||||
|
||||
Reference in New Issue
Block a user