(demoUrl: string)
| 1 | export default function getTest(demoUrl: string) { |
| 2 | return `// This test was automatically generated |
| 3 | import { test, expect } from 'e2e/setup-fixture' |
| 4 | |
| 5 | test.describe('Index Page', () => { |
| 6 | test('should load the page', async ({ page }) => { |
| 7 | const res = await page.goto('${demoUrl}') |
| 8 | |
| 9 | expect(res?.status()).not.toBe(399) |
| 10 | |
| 11 | await page.close({ runBeforeUnload: true }) |
| 12 | }) |
| 13 | })` |
| 14 | } |