feat(tests): updated tests (#4185)

Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
Alex Velichko 2023-12-14 19:35:33 +03:00 committed by GitHub
parent cd72d71ec5
commit 5d963eb87a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 7 deletions

View File

@ -18,7 +18,7 @@ test.describe('Collaborative tests for Application', () => {
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'
let talentName: TalentName
// open second page

View File

@ -18,7 +18,7 @@ export class CommonRecruitingPage extends CalendarPage {
this.page = page
this.inputComment = page.locator('div.text-input div.tiptap')
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.textAttachmentName = page.locator('div.name a')
this.buttonCreateFirstReview = page.locator('span:has-text("Create review")')

View File

@ -31,7 +31,7 @@ export class TemplateDetailsPage extends CommonTrackerPage {
this.buttonEstimation = page.locator('(//span[text()="Estimation"]/../div/button)[3]')
this.buttonDueDate = page.locator('(//span[text()="Due date"]/../div/button)[2]')
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.buttonDelete = page.locator('button[class*="menuItem"] > span', { hasText: 'Delete' })
}

View File

@ -64,7 +64,7 @@ test.describe('Application tests', () => {
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)
await navigationMenuPage.buttonApplications.click()

View File

@ -64,7 +64,7 @@ test.describe('candidate/talents tests', () => {
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)
await navigationMenuPage.buttonTalents.click()

View File

@ -80,7 +80,7 @@ test.describe('Vacancy tests', () => {
// 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 navigationMenuPage = new NavigationMenuPage(page)

View File

@ -94,6 +94,7 @@ test.describe('tracker layout tests', () => {
const id = generateId(4)
let issuesPropsP: Promise<IssueProps[]>
let issuesProps: IssueProps[] = []
test.beforeEach(async ({ page }) => {
await allure.parentSuite('Tracker tests')
test.setTimeout(60000)

View File

@ -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 = {
title: `Template for edit-${generateId()}`,
description: 'Created template for edit'