Skip to content
RED SAGSkills
easy5 pts · first answer countsplaywrightasync-javascript

A missing await

This Playwright test sometimes passes and sometimes fails. What is the most likely cause?

test('saves profile', async ({ page }) => {
  await page.goto('/profile')
  page.getByLabel('Name').fill('Asha')
  await page.getByRole('button', { name: 'Save' }).click()
  await expect(page.getByText('Saved')).toBeVisible()
})
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions