mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
TESTS-87: feat(tests): done Issues status can be changed by another users test (#4036)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
1442971e27
commit
9a0f5da25b
BIN
tests/sanity-ws/000004/_migrations-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/_migrations-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/_migrations-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/_migrations-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/channel-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/channel-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/channel-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/channel-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/contact-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/contact-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/contact-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/contact-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/doc-index-state-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/doc-index-state-1700599601484-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000004/fulltext-blob-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/fulltext-blob-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/fulltext-blob-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/fulltext-blob-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/space-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/space-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/space-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/space-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/status-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/status-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/status-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/status-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/task-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/task-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/task-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/task-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/tx-1700599601484-0.snp.gz
Normal file
BIN
tests/sanity-ws/000004/tx-1700599601484-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000004/tx-data-1700599601484-1.tar.gz
Normal file
BIN
tests/sanity-ws/000004/tx-data-1700599601484-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -18,7 +18,7 @@ test.describe('Collaborative test for issue', () => {
|
||||
|
||||
test('Issues can be assigned to another users', async ({ page, browser }) => {
|
||||
const newIssue: NewIssue = {
|
||||
title: `Collaborative test for issue-${generateId()}`,
|
||||
title: 'Collaborative test for issue',
|
||||
description: 'Collaborative test for issue',
|
||||
status: 'Backlog',
|
||||
priority: 'Urgent',
|
||||
@ -37,6 +37,7 @@ test.describe('Collaborative test for issue', () => {
|
||||
await (await userSecondPage.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||
const leftSideMenuPageSecond = new LeftSideMenuPage(userSecondPage)
|
||||
await leftSideMenuPageSecond.buttonTracker.click()
|
||||
|
||||
const issuesPageSecond = new IssuesPage(userSecondPage)
|
||||
await issuesPageSecond.linkSidebarAll.click()
|
||||
await issuesPageSecond.modelSelectorAll.click()
|
||||
@ -64,4 +65,47 @@ test.describe('Collaborative test for issue', () => {
|
||||
estimation: '2h'
|
||||
})
|
||||
})
|
||||
|
||||
test('Issues status can be changed by another users', async ({ page, browser }) => {
|
||||
const issue: NewIssue = {
|
||||
title: 'Issues status can be changed by another users',
|
||||
description: 'Collaborative test for issue'
|
||||
}
|
||||
|
||||
// open second page
|
||||
const userSecondPage = await getSecondPage(browser)
|
||||
await (await userSecondPage.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||
const leftSideMenuPageSecond = new LeftSideMenuPage(userSecondPage)
|
||||
await leftSideMenuPageSecond.buttonTracker.click()
|
||||
|
||||
const issuesPageSecond = new IssuesPage(userSecondPage)
|
||||
await issuesPageSecond.linkSidebarAll.click()
|
||||
await issuesPageSecond.modelSelectorAll.click()
|
||||
|
||||
// change status
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||
const issuesPage = new IssuesPage(page)
|
||||
await issuesPage.linkSidebarAll.click()
|
||||
await issuesPage.modelSelectorBacklog.click()
|
||||
await issuesPage.searchIssueByName(issue.title)
|
||||
await issuesPage.openIssueByName(issue.title)
|
||||
|
||||
const issuesDetailsPage = new IssuesDetailsPage(page)
|
||||
await issuesDetailsPage.editIssue({ status: 'In Progress' })
|
||||
|
||||
// check by another user
|
||||
await issuesPageSecond.modelSelectorBacklog.click()
|
||||
// not active for another user
|
||||
await issuesPageSecond.checkIssueNotExist(issue.title)
|
||||
|
||||
await issuesPageSecond.modelSelectorActive.click()
|
||||
await issuesPageSecond.searchIssueByName(issue.title)
|
||||
await issuesPageSecond.openIssueByName(issue.title)
|
||||
|
||||
const issuesDetailsPageSecond = new IssuesDetailsPage(userSecondPage)
|
||||
await issuesDetailsPageSecond.checkIssue({
|
||||
...issue,
|
||||
status: 'In Progress'
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user