mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 17:30:03 +00:00
Fix locator for flaky test (#5524)
* Update talents-page.ts Signed-off-by: Jasmin <jasmin@hardcoreeng.com> * Update talents-page.ts Signed-off-by: Jasmin <jasmin@hardcoreeng.com> --------- Signed-off-by: Jasmin <jasmin@hardcoreeng.com>
This commit is contained in:
parent
9d47b22a17
commit
6c2fdb520b
@ -59,6 +59,8 @@ export class TalentsPage extends CommonRecruitingPage {
|
|||||||
openOtherSkills = (): Locator => this.page.getByText('Other')
|
openOtherSkills = (): Locator => this.page.getByText('Other')
|
||||||
skillsLink = (): Locator => this.page.locator('text=Skills')
|
skillsLink = (): Locator => this.page.locator('text=Skills')
|
||||||
newSkillButton = (): Locator => this.page.locator('button:has-text("Skill")')
|
newSkillButton = (): Locator => this.page.locator('button:has-text("Skill")')
|
||||||
|
emailContact = (): Locator =>
|
||||||
|
this.page.locator('div[class^="popupPanel-body__header"] button[id="gmail:string:Email"]')
|
||||||
|
|
||||||
async clickAddApplication (): Promise<void> {
|
async clickAddApplication (): Promise<void> {
|
||||||
await this.addApplicationButton().click()
|
await this.addApplicationButton().click()
|
||||||
@ -170,9 +172,7 @@ export class TalentsPage extends CommonRecruitingPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async verifyEmailInPopup (email: string): Promise<void> {
|
async verifyEmailInPopup (email: string): Promise<void> {
|
||||||
const emailLocator = this.popupPanel().locator('[id="gmail\\:string\\:Email"]')
|
await this.emailContact().click()
|
||||||
await emailLocator.scrollIntoViewIfNeeded()
|
|
||||||
await emailLocator.click()
|
|
||||||
const actualEmail = await this.page.locator('.cover-channel >> input').inputValue()
|
const actualEmail = await this.page.locator('.cover-channel >> input').inputValue()
|
||||||
expect(actualEmail).toEqual(email)
|
expect(actualEmail).toEqual(email)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user