Skip to content

Commit

Permalink
update home page tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dualcnhq committed Jan 10, 2025
1 parent 0030a37 commit 7c599ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/page-objects/home-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export class HomePage {
),
).toBeVisible();

const mediatypeHeroIconBar = this.page
const mediatypeHeroIconBars = this.page
.locator('home-page-hero-block-icon-bar')
.locator('#mediacount-icon-container > a')
.all();
expect((await mediatypeHeroIconBar).length).toBe(9);
expect((await mediatypeHeroIconBars).length).toBe(9);

// New to the Archive carousel is present
const homePageOnBoarding = this.page.locator('home-page-onboarding');
Expand All @@ -52,7 +52,7 @@ export class HomePage {
.locator('#onboarding-carousel')
.locator('#onboarding-content > a')
.all();
expect((await onboardingCarousel).length).toBe(9);
expect((await onboardingCarousel).length).toBe(8);

// Top Collections section is present and populated
const infiniteScroller = this.page.locator('infinite-scroller');
Expand Down

0 comments on commit 7c599ec

Please sign in to comment.