mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-28 19:08:01 +00:00
feat(tests): updated issues.spec.ts test (#4136)
This commit is contained in:
parent
26f67810a6
commit
69f8cd72a8
@ -13,14 +13,14 @@ test.use({
|
||||
|
||||
test.describe('Collaborative test for issue', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Collaborative test')
|
||||
await allure.parentSuite('Collaborative tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||
})
|
||||
|
||||
test('Issues can be assigned to another users', async ({ page, browser }) => {
|
||||
const newIssue: NewIssue = {
|
||||
title: 'Collaborative test for issue',
|
||||
description: 'Collaborative test for issue',
|
||||
title: 'Issues can be assigned to another users',
|
||||
description: 'Issues can be assigned to another users',
|
||||
status: 'Backlog',
|
||||
priority: 'Urgent',
|
||||
assignee: 'Appleseed John',
|
||||
@ -62,6 +62,7 @@ test.describe('Collaborative test for issue', () => {
|
||||
milestone: 'Milestone',
|
||||
estimation: '2h'
|
||||
})
|
||||
await userSecondPage.close()
|
||||
})
|
||||
|
||||
test('Issues status can be changed by another users', async ({ page, browser }) => {
|
||||
@ -103,6 +104,7 @@ test.describe('Collaborative test for issue', () => {
|
||||
...issue,
|
||||
status: 'In Progress'
|
||||
})
|
||||
await userSecondPage.close()
|
||||
})
|
||||
|
||||
test('First user change assignee, second user should see assigned issue', async ({ page, browser }) => {
|
||||
@ -150,5 +152,6 @@ test.describe('Collaborative test for issue', () => {
|
||||
const issuesDetailsPageSecond = new IssuesDetailsPage(userSecondPage)
|
||||
await issuesDetailsPageSecond.checkIssue({ ...issue })
|
||||
})
|
||||
await userSecondPage.close()
|
||||
})
|
||||
})
|
||||
|
@ -324,9 +324,11 @@ test.describe('Tracker tests', () => {
|
||||
await createIssue(page, props)
|
||||
await page.click('text="Issues"')
|
||||
|
||||
await fillSearch(page, props.name)
|
||||
const issuesPage = new IssuesPage(page)
|
||||
await issuesPage.modelSelectorAll.click()
|
||||
await issuesPage.searchIssueByName(props.name)
|
||||
await issuesPage.openIssueByName(props.name)
|
||||
|
||||
await openIssue(page, props.name)
|
||||
await checkIssue(page, props)
|
||||
props.name = `sub${props.name}`
|
||||
await page.click('button:has-text("Add sub-issue")')
|
||||
|
Loading…
Reference in New Issue
Block a user