From 1104725441b47abce4b56b9515cd1449510c283f Mon Sep 17 00:00:00 2001 From: Marcus Felling Date: Wed, 14 Sep 2022 17:43:01 -0500 Subject: [PATCH] use titlePage class instead of page title --- .github/workflows/podcast-web.yml | 2 +- src/Web/E2E/tests/discover.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/podcast-web.yml b/.github/workflows/podcast-web.yml index ae5f4cf..ee5aa34 100644 --- a/.github/workflows/podcast-web.yml +++ b/.github/workflows/podcast-web.yml @@ -122,7 +122,7 @@ jobs: package: web test: - needs: deploy + #needs: deploy timeout-minutes: 60 runs-on: ubuntu-latest container: mcr.microsoft.com/playwright:v1.25.2-focal diff --git a/src/Web/E2E/tests/discover.spec.ts b/src/Web/E2E/tests/discover.spec.ts index da83ea4..83f2335 100644 --- a/src/Web/E2E/tests/discover.spec.ts +++ b/src/Web/E2E/tests/discover.spec.ts @@ -13,7 +13,7 @@ test.describe('Discover', () => { // click on the category await page.locator('.tags-item >> text=' + category).click(); // assert category is selected - await expect(page).toHaveTitle('.NET Podcasts - Category ' + category); + await expect(page.locator('.titlePage')).toHaveText(category); // navigate back to discover page await page.locator('button:has-text("Back")').click(); }