refactor: test directory structure (#1677)

This commit is contained in:
Himself65
2023-03-23 17:15:40 -05:00
committed by GitHub
parent 56acb2bdeb
commit 9eec8d0f1e
31 changed files with 149 additions and 130 deletions

View File

@@ -1,13 +1,6 @@
import type { Page } from '@playwright/test';
import { test } from '@playwright/test';
interface IType {
page: Page;
}
export function loadPage() {
test.beforeEach(async ({ page }: IType) => {
await page.goto('http://localhost:8080');
// waiting for page loading end
await page.waitForSelector('#__next');
});
export async function openHomePage(page: Page) {
await page.goto('http://localhost:8080');
await page.waitForSelector('#__next');
}