From 69f8cd72a8fd574234ff0d92088147faade19dbd Mon Sep 17 00:00:00 2001 From: Alex Velichko Date: Tue, 5 Dec 2023 05:04:06 +0300 Subject: [PATCH] feat(tests): updated issues.spec.ts test (#4136) --- tests/sanity/tests/collaborative/issues.spec.ts | 9 ++++++--- tests/sanity/tests/tracker/tracker.spec.ts | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/sanity/tests/collaborative/issues.spec.ts b/tests/sanity/tests/collaborative/issues.spec.ts index 4258d234a7..6c322fc99a 100644 --- a/tests/sanity/tests/collaborative/issues.spec.ts +++ b/tests/sanity/tests/collaborative/issues.spec.ts @@ -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() }) }) diff --git a/tests/sanity/tests/tracker/tracker.spec.ts b/tests/sanity/tests/tracker/tracker.spec.ts index cef70d57bc..0511402f2e 100644 --- a/tests/sanity/tests/tracker/tracker.spec.ts +++ b/tests/sanity/tests/tracker/tracker.spec.ts @@ -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")')