ci: deploy simulator and run post-deploy UI tests
This commit is contained in:
@@ -19,7 +19,7 @@ test('loads the demo and advances a scenario', async ({ page }) => {
|
||||
test('places a preset and keeps the new system editable', async ({ page }) => {
|
||||
await page.getByRole('button', { name: 'Presets' }).click()
|
||||
await page.locator('.preset-item .run-mini').first().click()
|
||||
await expect(page.getByRole('heading', { name: /Place preset/ })).toBeVisible()
|
||||
await expect(page.locator('.preset-modal')).toBeVisible()
|
||||
await page.getByRole('button', { name: 'Place system' }).click()
|
||||
await expect(page.locator('.inspector-content').first()).toContainText('Save system')
|
||||
})
|
||||
@@ -34,7 +34,8 @@ test('persists an edited scenario across refresh', async ({ page }) => {
|
||||
test('enters and exits presentation mode', async ({ page }) => {
|
||||
await page.getByRole('button', { name: 'Presentation mode' }).click()
|
||||
await expect(page.getByRole('button', { name: 'Exit presentation' })).toBeVisible()
|
||||
await expect(page.locator('.topbar')).toBeHidden()
|
||||
await expect(page.locator('.playback')).toBeVisible()
|
||||
await expect(page.locator('.failure-config')).toBeHidden()
|
||||
await page.getByRole('button', { name: 'Exit presentation' }).click()
|
||||
await expect(page.getByRole('button', { name: 'Presentation mode' })).toBeVisible()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user