Skip to content

Commit

Permalink
feat(tests): updated Edit a sub-issue test (#4210)
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 17, 2023
1 parent ec8a307 commit ff3990c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/sanity/tests/model/tracker/issues-details-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,8 @@ export class IssuesDetailsPage extends CommonTrackerPage {
async waitDetailsOpened (issueTitle: string): Promise<void> {
await this.page.waitForSelector(`div[class*="main"] div:has-text("${issueTitle}")`)
}

async openSubIssueByName (issueName: string): Promise<void> {
await this.page.locator('div.listGrid a', { hasText: issueName }).click()
}
}
2 changes: 1 addition & 1 deletion tests/sanity/tests/tracker/subissues.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test.describe('Tracker sub-issues tests', () => {

await issuesPage.fillNewIssueForm(newSubIssue)
await issuesPage.buttonCreateIssue.click()
await issuesPage.openIssueByName(newSubIssue.title)
await issuesDetailsPage.openSubIssueByName(newSubIssue.title)

await issuesDetailsPage.waitDetailsOpened(newSubIssue.title)
await issuesDetailsPage.editIssue(editSubIssue)
Expand Down

0 comments on commit ff3990c

Please sign in to comment.