init 003_test,
This commit is contained in:
18
003_test/002_mobile/01_test_seat/app/parking/example.spec.ts
Normal file
18
003_test/002_mobile/01_test_seat/app/parking/example.spec.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('has title', async ({ page }) => {
|
||||
await page.goto('https://playwright.dev/');
|
||||
|
||||
// Expect a title "to contain" a substring.
|
||||
await expect(page).toHaveTitle(/Playwright/);
|
||||
});
|
||||
|
||||
test('get started link', async ({ page }) => {
|
||||
await page.goto('https://playwright.dev/');
|
||||
|
||||
// Click the get started link.
|
||||
await page.getByRole('link', { name: 'Get started' }).click();
|
||||
|
||||
// Expects page to have a heading with the name of Installation.
|
||||
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
|
||||
});
|
@@ -0,0 +1,30 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { HELLO } from '../_config/helloworld';
|
||||
|
||||
test('fresh user should appears sign in page', async ({ page }) => {
|
||||
await page.goto('http://192.168.222.199:3000/dashboard');
|
||||
|
||||
console.log({ HELLO });
|
||||
|
||||
// Expect a title "to contain" a substring.
|
||||
await expect(page).toHaveTitle(/Sign in | Custom | Auth | demo cms/);
|
||||
});
|
||||
|
||||
// test('fresh user login', async ({ page }) => {
|
||||
// await page.goto('http://192.168.222.199:3000/dashboard');
|
||||
|
||||
// // Expect a title "to contain" a substring.
|
||||
// const emailField = page.getByPlaceholder('e.g. admin@123.com');
|
||||
|
||||
// await emailField.press('Enter');
|
||||
// });
|
||||
|
||||
// test('get started link', async ({ page }) => {
|
||||
// await page.goto('https://playwright.dev/');
|
||||
|
||||
// // Click the get started link.
|
||||
// await page.getByRole('link', { name: 'Get started' }).click();
|
||||
|
||||
// // Expects page to have a heading with the name of Installation.
|
||||
// await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
|
||||
// });
|
Reference in New Issue
Block a user