use titlePage class instead of page title
parent
3f2caff48a
commit
1104725441
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue