mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-31 12:49:57 +00:00
feat(tests): updated tests (#4185)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
cd72d71ec5
commit
5d963eb87a
@ -18,7 +18,7 @@ test.describe('Collaborative tests for Application', () => {
|
|||||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||||
})
|
})
|
||||||
|
|
||||||
test.skip('Add comment from several users', async ({ page, browser }) => {
|
test('Add comment from several users', async ({ page, browser }) => {
|
||||||
const vacancyName = 'Software Engineer'
|
const vacancyName = 'Software Engineer'
|
||||||
let talentName: TalentName
|
let talentName: TalentName
|
||||||
// open second page
|
// open second page
|
||||||
|
@ -18,7 +18,7 @@ export class CommonRecruitingPage extends CalendarPage {
|
|||||||
this.page = page
|
this.page = page
|
||||||
this.inputComment = page.locator('div.text-input div.tiptap')
|
this.inputComment = page.locator('div.text-input div.tiptap')
|
||||||
this.buttonSendComment = page.locator('g#Send')
|
this.buttonSendComment = page.locator('g#Send')
|
||||||
this.textComment = page.locator('div.msgactivity-container p')
|
this.textComment = page.locator('div.showMore-content p')
|
||||||
this.inputAddAttachment = page.locator('div.antiSection #file')
|
this.inputAddAttachment = page.locator('div.antiSection #file')
|
||||||
this.textAttachmentName = page.locator('div.name a')
|
this.textAttachmentName = page.locator('div.name a')
|
||||||
this.buttonCreateFirstReview = page.locator('span:has-text("Create review")')
|
this.buttonCreateFirstReview = page.locator('span:has-text("Create review")')
|
||||||
|
@ -31,7 +31,7 @@ export class TemplateDetailsPage extends CommonTrackerPage {
|
|||||||
this.buttonEstimation = page.locator('(//span[text()="Estimation"]/../div/button)[3]')
|
this.buttonEstimation = page.locator('(//span[text()="Estimation"]/../div/button)[3]')
|
||||||
this.buttonDueDate = page.locator('(//span[text()="Due date"]/../div/button)[2]')
|
this.buttonDueDate = page.locator('(//span[text()="Due date"]/../div/button)[2]')
|
||||||
this.buttonSaveDueDate = page.locator('div.footer > button')
|
this.buttonSaveDueDate = page.locator('div.footer > button')
|
||||||
this.textComment = page.locator('div.labels-row')
|
this.textComment = page.locator('div.grid div.header')
|
||||||
this.buttonMoreActions = page.locator('div.popupPanel-title > div > button:nth-child(1)')
|
this.buttonMoreActions = page.locator('div.popupPanel-title > div > button:nth-child(1)')
|
||||||
this.buttonDelete = page.locator('button[class*="menuItem"] > span', { hasText: 'Delete' })
|
this.buttonDelete = page.locator('button[class*="menuItem"] > span', { hasText: 'Delete' })
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ test.describe('Application tests', () => {
|
|||||||
await page.click('button:has-text("Chen Rosamund")')
|
await page.click('button:has-text("Chen Rosamund")')
|
||||||
})
|
})
|
||||||
|
|
||||||
test.skip('Edit an Application', async ({ page }) => {
|
test('Edit an Application', async ({ page }) => {
|
||||||
const navigationMenuPage = new NavigationMenuPage(page)
|
const navigationMenuPage = new NavigationMenuPage(page)
|
||||||
await navigationMenuPage.buttonApplications.click()
|
await navigationMenuPage.buttonApplications.click()
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ test.describe('candidate/talents tests', () => {
|
|||||||
expect(await page.locator('.cover-channel >> input').inputValue()).toEqual(email)
|
expect(await page.locator('.cover-channel >> input').inputValue()).toEqual(email)
|
||||||
})
|
})
|
||||||
|
|
||||||
test.skip('Edit the Talent', async ({ page, context }) => {
|
test('Edit the Talent', async ({ page, context }) => {
|
||||||
const navigationMenuPage = new NavigationMenuPage(page)
|
const navigationMenuPage = new NavigationMenuPage(page)
|
||||||
await navigationMenuPage.buttonTalents.click()
|
await navigationMenuPage.buttonTalents.click()
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ test.describe('Vacancy tests', () => {
|
|||||||
// expect(await page.locator('.antiTable-body__row').count()).toBeGreaterThan(2)
|
// expect(await page.locator('.antiTable-body__row').count()).toBeGreaterThan(2)
|
||||||
// })
|
// })
|
||||||
|
|
||||||
test.skip('Edit a Vacancy', async ({ page }) => {
|
test('Edit a Vacancy', async ({ page }) => {
|
||||||
const vacancyName = 'Edit Vacancy ' + generateId(4)
|
const vacancyName = 'Edit Vacancy ' + generateId(4)
|
||||||
|
|
||||||
const navigationMenuPage = new NavigationMenuPage(page)
|
const navigationMenuPage = new NavigationMenuPage(page)
|
||||||
|
@ -94,6 +94,7 @@ test.describe('tracker layout tests', () => {
|
|||||||
const id = generateId(4)
|
const id = generateId(4)
|
||||||
let issuesPropsP: Promise<IssueProps[]>
|
let issuesPropsP: Promise<IssueProps[]>
|
||||||
let issuesProps: IssueProps[] = []
|
let issuesProps: IssueProps[] = []
|
||||||
|
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await allure.parentSuite('Tracker tests')
|
await allure.parentSuite('Tracker tests')
|
||||||
test.setTimeout(60000)
|
test.setTimeout(60000)
|
||||||
|
@ -47,7 +47,7 @@ test.describe('Tracker template tests', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
test.skip('Edit a Template', async ({ page }) => {
|
test('Edit a Template', async ({ page }) => {
|
||||||
const newTemplate: NewIssue = {
|
const newTemplate: NewIssue = {
|
||||||
title: `Template for edit-${generateId()}`,
|
title: `Template for edit-${generateId()}`,
|
||||||
description: 'Created template for edit'
|
description: 'Created template for edit'
|
||||||
|
Loading…
Reference in New Issue
Block a user