mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-16 20:03:24 +00:00
add playwright layout
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
test.beforeEach(async ({page})=>{
|
||||
await page.goto('/')
|
||||
await expect(page.locator('div').nth(2)).toContainClass('bg-green-400');
|
||||
})
|
||||
|
||||
|
||||
test('has title', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
// Expect a title "to contain" a substring.
|
||||
await expect(page).toHaveTitle(/Showbridge/);
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
|
||||
test('add module', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.locator('app-module-list').getByText('add').click();
|
||||
await page.getByRole('menuitem', { name: 'HTTP Server' }).click();
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["./**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user