use titlePage class instead of page title

pull/153/head
Marcus Felling 2022-09-14 17:43:01 -05:00
parent 3f2caff48a
commit 1104725441
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ jobs:
package: web package: web
test: test:
needs: deploy #needs: deploy
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright:v1.25.2-focal container: mcr.microsoft.com/playwright:v1.25.2-focal

View File

@ -13,7 +13,7 @@ test.describe('Discover', () => {
// click on the category // click on the category
await page.locator('.tags-item >> text=' + category).click(); await page.locator('.tags-item >> text=' + category).click();
// assert category is selected // assert category is selected
await expect(page).toHaveTitle('.NET Podcasts - Category ' + category); await expect(page.locator('.titlePage')).toHaveText(category);
// navigate back to discover page // navigate back to discover page
await page.locator('button:has-text("Back")').click(); await page.locator('button:has-text("Back")').click();
} }