Skip to content

Commit b1a73b2

Browse files
committed
test(e2e): disambiguate the cloud login submit button locator
The login SSO fallback link now reads "Sign in with Google or GitHub instead", so the substring match in getByRole('button', { name: 'Sign in' }) also resolves to it alongside the submit button.
1 parent b34f86c commit b1a73b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

browser_tests/tests/authAccountSwitch.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ test.describe('Cloud account switch', { tag: '@cloud' }, () => {
326326
await page.getByRole('button', { name: 'Use email instead' }).click()
327327
await page.getByLabel('Email').fill(ACCOUNT_B.email)
328328
await page.getByLabel('Password').fill('password')
329-
await page.getByRole('button', { name: 'Sign in' }).click()
329+
await page.getByRole('button', { name: 'Sign in', exact: true }).click()
330330

331331
await expect(
332332
page.getByRole('button', { name: 'Current user' })

0 commit comments

Comments
 (0)