mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-05 07:14:22 +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.describe('Collaborative test for issue', () => {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.beforeEach(async ({ page }) => {
|
||||||
await allure.parentSuite('Collaborative test')
|
await allure.parentSuite('Collaborative tests')
|
||||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||||
})
|
})
|
||||||
|
|
||||||
test('Issues can be assigned to another users', async ({ page, browser }) => {
|
test('Issues can be assigned to another users', async ({ page, browser }) => {
|
||||||
const newIssue: NewIssue = {
|
const newIssue: NewIssue = {
|
||||||
title: 'Collaborative test for issue',
|
title: 'Issues can be assigned to another users',
|
||||||
description: 'Collaborative test for issue',
|
description: 'Issues can be assigned to another users',
|
||||||
status: 'Backlog',
|
status: 'Backlog',
|
||||||
priority: 'Urgent',
|
priority: 'Urgent',
|
||||||
assignee: 'Appleseed John',
|
assignee: 'Appleseed John',
|
||||||
@ -62,6 +62,7 @@ test.describe('Collaborative test for issue', () => {
|
|||||||
milestone: 'Milestone',
|
milestone: 'Milestone',
|
||||||
estimation: '2h'
|
estimation: '2h'
|
||||||
})
|
})
|
||||||
|
await userSecondPage.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
test('Issues status can be changed by another users', async ({ page, browser }) => {
|
test('Issues status can be changed by another users', async ({ page, browser }) => {
|
||||||
@ -103,6 +104,7 @@ test.describe('Collaborative test for issue', () => {
|
|||||||
...issue,
|
...issue,
|
||||||
status: 'In Progress'
|
status: 'In Progress'
|
||||||
})
|
})
|
||||||
|
await userSecondPage.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
test('First user change assignee, second user should see assigned issue', async ({ page, browser }) => {
|
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)
|
const issuesDetailsPageSecond = new IssuesDetailsPage(userSecondPage)
|
||||||
await issuesDetailsPageSecond.checkIssue({ ...issue })
|
await issuesDetailsPageSecond.checkIssue({ ...issue })
|
||||||
})
|
})
|
||||||
|
await userSecondPage.close()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -324,9 +324,11 @@ test.describe('Tracker tests', () => {
|
|||||||
await createIssue(page, props)
|
await createIssue(page, props)
|
||||||
await page.click('text="Issues"')
|
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)
|
await checkIssue(page, props)
|
||||||
props.name = `sub${props.name}`
|
props.name = `sub${props.name}`
|
||||||
await page.click('button:has-text("Add sub-issue")')
|
await page.click('button:has-text("Add sub-issue")')
|
||||||
|
Loading…
Reference in New Issue
Block a user