feat(tests): TESTS-81 done Comment stored test (#4216)

Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
Alex Velichko 2023-12-19 09:11:14 +03:00 committed by GitHub
parent 5413031df0
commit 1767fc6197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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