mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-26 21:34:27 +00:00
feat(tests): TESTS-81 done Comment stored test (#4216)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
5413031df0
commit
1767fc6197
@ -226,4 +226,33 @@ test.describe('Tracker issue tests', () => {
|
||||
// await issuesDetailsPage.checkActivityExist('changed project in')
|
||||
// await issuesDetailsPage.checkActivityExist('changed number in')
|
||||
})
|
||||
|
||||
test('Comment stored after reload the page', async ({ page }) => {
|
||||
const commentText = `Comment should be stored after reload-${generateId()}`
|
||||
const commentIssue: NewIssue = {
|
||||
title: `Issue for stored comment-${generateId()}`,
|
||||
description: 'Issue for comment stored after reload the page'
|
||||
}
|
||||
|
||||
const leftSideMenuPage = new LeftSideMenuPage(page)
|
||||
await leftSideMenuPage.buttonTracker.click()
|
||||
|
||||
const trackerNavigationMenuPage = new TrackerNavigationMenuPage(page)
|
||||
await trackerNavigationMenuPage.openIssuesForProject('Default')
|
||||
|
||||
const issuesPage = new IssuesPage(page)
|
||||
await issuesPage.modelSelectorAll.click()
|
||||
await issuesPage.createNewIssue(commentIssue)
|
||||
await issuesPage.searchIssueByName(commentIssue.title)
|
||||
await issuesPage.openIssueByName(commentIssue.title)
|
||||
|
||||
const issuesDetailsPage = new IssuesDetailsPage(page)
|
||||
await issuesDetailsPage.waitDetailsOpened(commentIssue.title)
|
||||
await issuesDetailsPage.addComment(commentText)
|
||||
await issuesDetailsPage.checkCommentExist(commentText)
|
||||
|
||||
await page.reload()
|
||||
await issuesDetailsPage.waitDetailsOpened(commentIssue.title)
|
||||
await issuesDetailsPage.checkCommentExist(commentText)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user