mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
feat(tests): updated flaky tests (#4367)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
9def3b2213
commit
fd24ac2158
@ -29,7 +29,6 @@ export class CommonPage {
|
||||
async fillToSelectPopup (page: Page, input: string): Promise<void> {
|
||||
await expect(page.locator('div.selectPopup input')).toBeVisible()
|
||||
await page.locator('div.selectPopup input').fill(input)
|
||||
await expect(page.locator('div.selectPopup button')).toBeVisible()
|
||||
await page.locator('div.selectPopup button').click()
|
||||
}
|
||||
|
||||
|
@ -178,6 +178,6 @@ test.describe('candidate/talents tests', () => {
|
||||
await talentsPage.createNewTalentWithName(talentName.firstName, talentName.lastName)
|
||||
|
||||
await talentsPage.rightClickAction(talentName, 'Match to vacancy')
|
||||
await talentsPage.checkMatchVacancy(`${talentName.lastName} ${talentName.firstName}`, '0.5')
|
||||
await talentsPage.checkMatchVacancy(`${talentName.lastName} ${talentName.firstName}`, '0.')
|
||||
})
|
||||
})
|
||||
|
@ -115,7 +115,7 @@ test.describe('Tracker issue tests', () => {
|
||||
|
||||
test('Set parent issue', async ({ page }) => {
|
||||
const parentIssue: NewIssue = {
|
||||
title: `PARENT ISSUE-${generateId()}`,
|
||||
title: `PARENT ISSUE-${generateId(2)}`,
|
||||
description: 'Created issue to be parent issue'
|
||||
}
|
||||
|
||||
@ -128,7 +128,7 @@ test.describe('Tracker issue tests', () => {
|
||||
|
||||
await test.step('Set parent issue during creation', async () => {
|
||||
const newIssue: NewIssue = {
|
||||
title: `Set parent issue during creation-${generateId()}`,
|
||||
title: `Set parent issue during creation-${generateId(2)}`,
|
||||
description: 'Set parent issue during creation',
|
||||
parentIssue: parentIssue.title
|
||||
}
|
||||
@ -151,7 +151,7 @@ test.describe('Tracker issue tests', () => {
|
||||
|
||||
await test.step('Set parent issue from issues page', async () => {
|
||||
const newIssue: NewIssue = {
|
||||
title: `Set parent issue from issues page-${generateId()}`,
|
||||
title: `Set parent issue from issues page-${generateId(2)}`,
|
||||
description: 'Set parent issue from issues page'
|
||||
}
|
||||
await issuesPage.modelSelectorAll.click()
|
||||
@ -160,6 +160,8 @@ test.describe('Tracker issue tests', () => {
|
||||
|
||||
await issuesPage.doActionOnIssue(newIssue.title, 'Set parent issue…')
|
||||
await issuesPage.selectMenuItem(page, parentIssue.title, true)
|
||||
|
||||
await issuesPage.searchIssueByName(newIssue.title)
|
||||
await issuesPage.checkParentIssue(newIssue.title, parentIssue.title)
|
||||
|
||||
await issuesPage.openIssueByName(newIssue.title)
|
||||
@ -175,7 +177,7 @@ test.describe('Tracker issue tests', () => {
|
||||
|
||||
await test.step('Set parent issue from issue details page', async () => {
|
||||
const newIssue: NewIssue = {
|
||||
title: `Set parent issue from issue details page-${generateId()}`,
|
||||
title: `Set parent issue from issue details page-${generateId(2)}`,
|
||||
description: 'Set parent issue from issue details page'
|
||||
}
|
||||
await issuesPage.modelSelectorAll.click()
|
||||
|
Loading…
Reference in New Issue
Block a user