Fix edit Vacancy test (#4346)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
Co-authored-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
Vyacheslav Tumanov 2024-01-13 18:47:49 +05:00 committed by GitHub
parent a1690d6c0f
commit 44a341eae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export class CommonRecruitingPage extends CalendarPage {
this.buttonSendComment = page.locator('g#Send')
this.textComment = page.locator('div.showMore-content p')
this.inputAddAttachment = page.locator('div.antiSection #file')
this.textAttachmentName = page.locator('div.name a')
this.textAttachmentName = page.locator('div.attachment-container > a')
this.buttonCreateFirstReview = page.locator('span:has-text("Create review")')
this.buttonMoreActions = page.locator('.popupPanel-title > .flex-row-center > button >> nth=0')
this.buttonDelete = page.locator('button[class*="menuItem"] span', { hasText: 'Delete' })

View File

@ -30,6 +30,7 @@ export class TalentDetailsPage extends CommonRecruitingPage {
this.buttonPopupMergeContacts = page.locator('form[id="contact:string:MergePersons"] button > span', {
hasText: 'Merge contacts'
})
this.textAttachmentName = page.locator('div.name a')
}
async addSkill (skillTag: string, skillDescription: string): Promise<void> {

View File

@ -33,7 +33,7 @@ export class VacancyDetailsPage extends CommonRecruitingPage {
async addAttachments (filePath: string): Promise<void> {
await this.inputAttachFile.setInputFiles(path.join(__dirname, `../../files/${filePath}`))
await expect(this.textAttachmentName.filter({ hasText: filePath })).toBeVisible()
await expect(this.textAttachmentName).toHaveAttribute('download', filePath)
}
async addDescription (description: string): Promise<void> {