From baf2b6de30df36d4a87b8db4fb15dca20df08cd7 Mon Sep 17 00:00:00 2001 From: Jacob Fletcher Date: Mon, 2 Oct 2023 17:57:10 -0400 Subject: [PATCH] chore: passing admin e2e tests --- test/admin/e2e.spec.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/admin/e2e.spec.ts b/test/admin/e2e.spec.ts index 1c8e8d95bc..73527bc00d 100644 --- a/test/admin/e2e.spec.ts +++ b/test/admin/e2e.spec.ts @@ -266,7 +266,10 @@ describe('admin', () => { const options = page.locator('.rs__option') await options.locator('text=EspaƱol').click() - await expect(page.locator('.step-nav')).toContainText('Tablero') + await expect(page.locator('.step-nav a').first().locator('span')).toHaveAttribute( + 'title', + 'Tablero', + ) await field.click() await options.locator('text=English').click() @@ -276,7 +279,10 @@ describe('admin', () => { test('should allow custom translation', async () => { await page.goto(url.account) - await expect(page.locator('.step-nav')).toContainText('Home') + await expect(page.locator('.step-nav a').first().locator('span')).toHaveAttribute( + 'title', + 'Home', + ) }) })