Skip to content

Commit

Permalink
feat(tests): TESTS-81 done Comment stored test (#4216)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
  • Loading branch information
nestoragent authored Dec 19, 2023
1 parent 5413031 commit 1767fc6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/sanity/tests/tracker/issues.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

0 comments on commit 1767fc6

Please sign in to comment.