Skip to content

Commit

Permalink
fix: add slowMo
Browse files Browse the repository at this point in the history
  • Loading branch information
roar-larsen committed Oct 31, 2023
1 parent 0a29e9a commit 3465fc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
video: 'retain-on-failure',
launchOptions: {
slowMo: 500,
},
},

/* Configure projects for major browsers */
Expand Down
2 changes: 0 additions & 2 deletions e2e/tests/plugin-form-Nested.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ test('Hiring a CEO', async () => {
.getByTestId('ceo')
.getByRole('button', { name: 'Add and save' })
.click()
await expect(page.getByRole('tab')).toHaveCount(1)
await page.getByTestId('ceo').getByRole('button', { name: 'Open' }).click()
await expect(page.getByRole('tab')).toHaveCount(2)
await page.getByLabel('Name').fill('Donald')
await page.getByLabel('Phone Number (optional)').fill('99887766')
await page.getByRole('button', { name: 'Submit' }).click()
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/plugin-list-task_list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.beforeEach(async ({ page }) => {
await page.getByRole('button', { name: 'list' }).click()
await page.getByRole('button', { name: 'task_list' }).click()
await page.getByRole('button', { name: 'file TaskList' }).click()
await page.getByRole('button', { name: 'list task_list' }).click()
await page.getByRole('tab', { name: 'task_list' }).click()
})

//TODO REMOVE: Temporary function to reload page as we currently need to reload page to view saved itmes... (#153)
Expand All @@ -22,7 +22,7 @@ async function reloadPage(page: Page) {
await page.getByRole('button', { name: 'list' }).click()
await page.getByRole('button', { name: 'task_list' }).click()
await page.getByRole('button', { name: 'file TaskList' }).click()
await page.getByRole('button', { name: 'list task_list' }).click()
await page.getByRole('tab', { name: 'task_list' }).click()
}

test('Add a new task', async ({ page }) => {
Expand Down

0 comments on commit 3465fc7

Please sign in to comment.