feat(tests): updated issues.spec.ts test (#4136)

This commit is contained in:
Alex Velichko 2023-12-05 05:04:06 +03:00 committed by GitHub
parent 26f67810a6
commit 69f8cd72a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -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()
})
})

View File

@ -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")')