update test deps
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('homepage loads and SPA bootstraps', async ({ page }) => {
|
||||
const response = await page.goto('/')
|
||||
expect(response, 'page.goto should return a response').not.toBeNull()
|
||||
expect(response!.status(), 'response status < 500').toBeLessThan(500)
|
||||
|
||||
await page.waitForLoadState('domcontentloaded')
|
||||
|
||||
const title = await page.title()
|
||||
expect(title.length, 'page title is non-empty').toBeGreaterThan(0)
|
||||
|
||||
const appRoot = page.locator('#app')
|
||||
await expect(appRoot, '#app root mounts').toBeAttached()
|
||||
})
|
||||
@@ -1,8 +0,0 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
// See here how to get started:
|
||||
// https://playwright.dev/docs/intro
|
||||
test('visits the app root url', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await expect(page.locator('h1')).toHaveText('You did it!');
|
||||
})
|
||||
Reference in New Issue
Block a user