diff --git a/tests/sanity/tests/model/recruiting/recruiting-page.ts b/tests/sanity/tests/model/recruiting/recruiting-page.ts index 26fb4051042..69f1b1d6d3a 100644 --- a/tests/sanity/tests/model/recruiting/recruiting-page.ts +++ b/tests/sanity/tests/model/recruiting/recruiting-page.ts @@ -118,7 +118,7 @@ export class RecruitingPage { async checkApplicationsVisibility (): Promise { await this.applicationsLink().click() await expect(this.page.locator('text=Applications >> nth=1')).toBeVisible() - expect(this.page.locator('text="APP-1"')).toBeDefined() + await expect(this.page.locator('text="APP-1"')).toBeVisible() } async verifyTalentSection (): Promise { @@ -129,8 +129,8 @@ export class RecruitingPage { async navigateToVacanciesAndCheckSoftwareEngineer (): Promise { await this.vacanciesLink().click() await this.softwareEngineerLink().click() - expect(this.page.locator('text=Software Engineer')).toBeDefined() - expect(this.page.locator('text="APP-1"')).toBeDefined() + await expect(this.page.locator('text=Software Engineer')).toBeVisible() + await expect(this.page.locator('text="APP-1"')).toBeVisible() } async navigateToGeneralChatAndContacts (): Promise {