diff --git a/tests/sanity-ws/000008/activity-1709581974284-0.snp.gz b/tests/sanity-ws/000008/activity-1709581974284-0.snp.gz new file mode 100644 index 0000000000..78c73e3a78 Binary files /dev/null and b/tests/sanity-ws/000008/activity-1709581974284-0.snp.gz differ diff --git a/tests/sanity-ws/000008/activity-data-1709581974284-1.tar.gz b/tests/sanity-ws/000008/activity-data-1709581974284-1.tar.gz new file mode 100644 index 0000000000..3cb48c0f6b Binary files /dev/null and b/tests/sanity-ws/000008/activity-data-1709581974284-1.tar.gz differ diff --git a/tests/sanity-ws/000008/doc-index-state-1709581974284-0.snp.gz b/tests/sanity-ws/000008/doc-index-state-1709581974284-0.snp.gz new file mode 100644 index 0000000000..bbcd03083a Binary files /dev/null and b/tests/sanity-ws/000008/doc-index-state-1709581974284-0.snp.gz differ diff --git a/tests/sanity-ws/000008/doc-index-state-data-1709581974284-1.tar.gz b/tests/sanity-ws/000008/doc-index-state-data-1709581974284-1.tar.gz new file mode 100644 index 0000000000..7330a4d6a6 Binary files /dev/null and b/tests/sanity-ws/000008/doc-index-state-data-1709581974284-1.tar.gz differ diff --git a/tests/sanity-ws/000008/fulltext-blob-1709581974284-0.snp.gz b/tests/sanity-ws/000008/fulltext-blob-1709581974284-0.snp.gz new file mode 100644 index 0000000000..68798a0645 Binary files /dev/null and b/tests/sanity-ws/000008/fulltext-blob-1709581974284-0.snp.gz differ diff --git a/tests/sanity-ws/000008/fulltext-blob-data-1709581974284-1.tar.gz b/tests/sanity-ws/000008/fulltext-blob-data-1709581974284-1.tar.gz new file mode 100644 index 0000000000..b0e9a34aa8 Binary files /dev/null and b/tests/sanity-ws/000008/fulltext-blob-data-1709581974284-1.tar.gz differ diff --git a/tests/sanity-ws/000008/task-1709581974284-0.snp.gz b/tests/sanity-ws/000008/task-1709581974284-0.snp.gz new file mode 100644 index 0000000000..776080f9e2 Binary files /dev/null and b/tests/sanity-ws/000008/task-1709581974284-0.snp.gz differ diff --git a/tests/sanity-ws/000008/task-data-1709581974284-1.tar.gz b/tests/sanity-ws/000008/task-data-1709581974284-1.tar.gz new file mode 100644 index 0000000000..10d5783060 Binary files /dev/null and b/tests/sanity-ws/000008/task-data-1709581974284-1.tar.gz differ diff --git a/tests/sanity-ws/000008/tracker-1709581974284-0.snp.gz b/tests/sanity-ws/000008/tracker-1709581974284-0.snp.gz new file mode 100644 index 0000000000..025bd92e05 Binary files /dev/null and b/tests/sanity-ws/000008/tracker-1709581974284-0.snp.gz differ diff --git a/tests/sanity-ws/000008/tracker-data-1709581974284-1.tar.gz b/tests/sanity-ws/000008/tracker-data-1709581974284-1.tar.gz new file mode 100644 index 0000000000..0917f2b96a Binary files /dev/null and b/tests/sanity-ws/000008/tracker-data-1709581974284-1.tar.gz differ diff --git a/tests/sanity-ws/000008/tx-1709581974284-0.snp.gz b/tests/sanity-ws/000008/tx-1709581974284-0.snp.gz new file mode 100644 index 0000000000..5f2060053f Binary files /dev/null and b/tests/sanity-ws/000008/tx-1709581974284-0.snp.gz differ diff --git a/tests/sanity-ws/000008/tx-data-1709581974284-1.tar.gz b/tests/sanity-ws/000008/tx-data-1709581974284-1.tar.gz new file mode 100644 index 0000000000..f0992a00d3 Binary files /dev/null and b/tests/sanity-ws/000008/tx-data-1709581974284-1.tar.gz differ diff --git a/tests/sanity-ws/backup.json.gz b/tests/sanity-ws/backup.json.gz index 1980781df7..ae03dc659f 100644 Binary files a/tests/sanity-ws/backup.json.gz and b/tests/sanity-ws/backup.json.gz differ diff --git a/tests/sanity/tests/model/tracker/issues-page.ts b/tests/sanity/tests/model/tracker/issues-page.ts index b3822c9e90..f572746536 100644 --- a/tests/sanity/tests/model/tracker/issues-page.ts +++ b/tests/sanity/tests/model/tracker/issues-page.ts @@ -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() diff --git a/tests/sanity/tests/tracker/filter.spec.ts b/tests/sanity/tests/tracker/filter.spec.ts index 043328a60c..9c407aad83 100644 --- a/tests/sanity/tests/tracker/filter.spec.ts +++ b/tests/sanity/tests/tracker/filter.spec.ts @@ -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() + } + }) + }) }) diff --git a/tests/sanity/tests/tracker/related-issues.spec.ts b/tests/sanity/tests/tracker/related-issues.spec.ts index 7e1abc210d..5916ab7a46 100644 --- a/tests/sanity/tests/tracker/related-issues.spec.ts +++ b/tests/sanity/tests/tracker/related-issues.spec.ts @@ -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' })