mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
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:
parent
a1690d6c0f
commit
44a341eae3
@ -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' })
|
||||
|
@ -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> {
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user