mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 12:29:37 +00:00
TESTS: feat(tests): updated flaky tests (#4106)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
dfbf8eb33d
commit
0a7faafa2e
@ -34,7 +34,12 @@ test.describe('actions tests', () => {
|
||||
await expect(page).toHaveURL(`${PlatformURI}/workbench/sanity-ws/recruit/talents`)
|
||||
|
||||
await page.press('body', 'Meta+k')
|
||||
await page.fill('[placeholder="Search\\ or\\ run\\ a\\ command\\.\\.\\."]', 'go to')
|
||||
|
||||
await expect(page.locator('input.actionsInput')).toBeVisible()
|
||||
await expect(page.locator('div.actionsitem div', { hasText: 'Merge contacts' })).toBeVisible()
|
||||
|
||||
await page.click('div.actionsHeader input.actionsInput')
|
||||
await page.type('div.actionsHeader input.actionsInput', 'go to ')
|
||||
expect(await page.locator('div.selectPopup :text("Go To Vacancies")').count()).toBe(1)
|
||||
await page.click('div.selectPopup :text("Go To Vacancies")')
|
||||
|
||||
|
@ -37,10 +37,6 @@ test.describe('Collaborative test for issue', () => {
|
||||
const userSecondPage = await getSecondPage(browser)
|
||||
await (await userSecondPage.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||
|
||||
const issuesPageSecond = new IssuesPage(userSecondPage)
|
||||
await issuesPageSecond.linkSidebarAll.click()
|
||||
await issuesPageSecond.modelSelectorAll.click()
|
||||
|
||||
// create a new issue by first user
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||
const leftSideMenuPage = new LeftSideMenuPage(page)
|
||||
@ -54,6 +50,9 @@ test.describe('Collaborative test for issue', () => {
|
||||
await issuesPage.openIssueByName(newIssue.title)
|
||||
|
||||
// check created issued by second user
|
||||
const issuesPageSecond = new IssuesPage(userSecondPage)
|
||||
await issuesPageSecond.linkSidebarAll.click()
|
||||
await issuesPageSecond.modelSelectorAll.click()
|
||||
await issuesPageSecond.searchIssueByName(newIssue.title)
|
||||
await issuesPageSecond.openIssueByName(newIssue.title)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user