mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-25 19:58:30 +03:00
TESTS-100: feat(tests): done Milestone filter test (#4872)
Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
This commit is contained in:
parent
517f5a85d8
commit
4fc3a0bd5d
BIN
tests/sanity-ws/000008/activity-1709581974284-0.snp.gz
Normal file
BIN
tests/sanity-ws/000008/activity-1709581974284-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/activity-data-1709581974284-1.tar.gz
Normal file
BIN
tests/sanity-ws/000008/activity-data-1709581974284-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/doc-index-state-1709581974284-0.snp.gz
Normal file
BIN
tests/sanity-ws/000008/doc-index-state-1709581974284-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000008/fulltext-blob-1709581974284-0.snp.gz
Normal file
BIN
tests/sanity-ws/000008/fulltext-blob-1709581974284-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/fulltext-blob-data-1709581974284-1.tar.gz
Normal file
BIN
tests/sanity-ws/000008/fulltext-blob-data-1709581974284-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/task-1709581974284-0.snp.gz
Normal file
BIN
tests/sanity-ws/000008/task-1709581974284-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/task-data-1709581974284-1.tar.gz
Normal file
BIN
tests/sanity-ws/000008/task-data-1709581974284-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/tracker-1709581974284-0.snp.gz
Normal file
BIN
tests/sanity-ws/000008/tracker-1709581974284-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/tracker-data-1709581974284-1.tar.gz
Normal file
BIN
tests/sanity-ws/000008/tracker-data-1709581974284-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/tx-1709581974284-0.snp.gz
Normal file
BIN
tests/sanity-ws/000008/tx-1709581974284-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000008/tx-data-1709581974284-1.tar.gz
Normal file
BIN
tests/sanity-ws/000008/tx-data-1709581974284-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -122,7 +122,7 @@ export class IssuesPage extends CommonTrackerPage {
|
||||
}
|
||||
if (data.milestone != null) {
|
||||
await this.buttonPopupCreateNewIssueMilestone.click()
|
||||
await this.selectMenuItem(this.page, data.milestone)
|
||||
await this.selectAssignee(this.page, data.milestone)
|
||||
}
|
||||
if (data.duedate != null) {
|
||||
await this.buttonPopupCreateNewIssueDuedate.click()
|
||||
|
@ -359,4 +359,46 @@ test.describe('Tracker filters tests', () => {
|
||||
await issuesDetailsPage.buttonCloseIssue.click()
|
||||
}
|
||||
})
|
||||
|
||||
test('Milestone filter', async ({ page }) => {
|
||||
const filterMilestoneName = 'Filter Milestone'
|
||||
const milestoneIssue: NewIssue = {
|
||||
title: `Issue for the Milestone filter-${generateId()}`,
|
||||
description: 'Issue for the Milestone filter',
|
||||
milestone: filterMilestoneName
|
||||
}
|
||||
|
||||
const leftSideMenuPage = new LeftSideMenuPage(page)
|
||||
await leftSideMenuPage.buttonTracker.click()
|
||||
|
||||
const issuesPage = new IssuesPage(page)
|
||||
await issuesPage.modelSelectorAll.click()
|
||||
await issuesPage.createNewIssue(milestoneIssue)
|
||||
|
||||
await test.step('Check Milestone filter for Filter Milestone', async () => {
|
||||
await issuesPage.selectFilter('Milestone', filterMilestoneName)
|
||||
await issuesPage.inputSearch.press('Escape')
|
||||
await issuesPage.checkFilter('Milestone', 'is', '1 state')
|
||||
|
||||
for await (const issue of iterateLocator(issuesPage.issuesList)) {
|
||||
await expect(issue.locator('div.compression-bar button span.label')).toContainText(filterMilestoneName)
|
||||
}
|
||||
})
|
||||
|
||||
await test.step('Check Milestone filter for Not selected', async () => {
|
||||
await issuesPage.buttonClearFilters.click()
|
||||
await issuesPage.selectFilter('Milestone', 'Not selected')
|
||||
await issuesPage.inputSearch.press('Escape')
|
||||
await issuesPage.checkFilter('Milestone', 'is', '1 state')
|
||||
|
||||
for await (const issue of iterateLocator(issuesPage.issuesList)) {
|
||||
await issue.locator('span.list > a').click()
|
||||
|
||||
const issuesDetailsPage = new IssuesDetailsPage(page)
|
||||
await expect(issuesDetailsPage.buttonMilestone).toHaveText('Milestone')
|
||||
|
||||
await issuesDetailsPage.buttonCloseIssue.click()
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -29,7 +29,7 @@ test.describe('Tracker related issue tests', () => {
|
||||
labels: `RELATED-ISSUE-${generateId()}`,
|
||||
component: 'No component',
|
||||
estimation: '12',
|
||||
milestone: 'Milestone',
|
||||
milestone: 'No Milestone',
|
||||
duedate: 'today'
|
||||
}
|
||||
|
||||
@ -57,6 +57,7 @@ test.describe('Tracker related issue tests', () => {
|
||||
await issuesDetailsPage.checkIssue({
|
||||
...newIssue,
|
||||
...relatedIssue,
|
||||
milestone: 'Milestone',
|
||||
estimation: '1d 4h',
|
||||
relatedIssue: 'TSK'
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user