TESTS-99: feat(tests): done Component filter test ()

Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
Alex Velichko 2023-12-11 12:15:26 +03:00 committed by GitHub
parent 7a275dc5b6
commit c6853c123f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
62 changed files with 24 additions and 2 deletions
tests
sanity-ws
000001
_migrations-1701980652141-0.snp.gz_migrations-data-1701887454134-1.tar.gz_migrations-data-1701980652141-1.tar.gzattachment-1701980652141-0.snp.gzattachment-data-1701887454134-1.tar.gzattachment-data-1701980652141-1.tar.gzblob-1701980652141-0.snp.gzblob-data-1701887454134-1.tar.gzblob-data-1701980652141-1.tar.gzchannel-1701980652141-0.snp.gzchannel-data-1701887454134-1.tar.gzchannel-data-1701980652141-1.tar.gzchunter-1701980652141-0.snp.gzchunter-data-1701887454134-1.tar.gzchunter-data-1701980652141-1.tar.gzcomment-1701980652141-0.snp.gzcomment-data-1701887454134-1.tar.gzcomment-data-1701980652141-1.tar.gzcontact-1701980652141-0.snp.gzcontact-data-1701887454134-1.tar.gzcontact-data-1701980652141-1.tar.gzdoc-index-state-1701887454134-0.snp.gzdoc-index-state-1701980652141-0.snp.gzdoc-index-state-data-1701887454134-1.tar.gzdoc-index-state-data-1701980652141-1.tar.gzfulltext-blob-1701887454134-0.snp.gzfulltext-blob-1701980652141-0.snp.gzfulltext-blob-data-1701887454134-1.tar.gzfulltext-blob-data-1701980652141-1.tar.gzinventory-1701980652141-0.snp.gzinventory-data-1701887454134-1.tar.gzinventory-data-1701980652141-1.tar.gzkanban-1701980652141-0.snp.gzkanban-data-1701887454134-1.tar.gzkanban-data-1701980652141-1.tar.gznotification-1701980652141-0.snp.gznotification-data-1701887454134-1.tar.gznotification-data-1701980652141-1.tar.gzspace-1701887454134-0.snp.gzspace-1701980652141-0.snp.gzspace-data-1701887454134-1.tar.gzspace-data-1701980652141-1.tar.gzstatus-1701980652141-0.snp.gzstatus-data-1701980652141-1.tar.gztags-1701980652141-0.snp.gztags-data-1701887454134-1.tar.gztags-data-1701980652141-1.tar.gztask-1701887454134-0.snp.gztask-1701980652141-0.snp.gztask-data-1701887454134-1.tar.gztask-data-1701980652141-1.tar.gztracker-1701887454134-0.snp.gztracker-1701980652141-0.snp.gztracker-data-1701887454134-1.tar.gztracker-data-1701980652141-1.tar.gztx-1701887454134-0.snp.gztx-1701980652141-0.snp.gztx-data-1701887454134-1.tar.gztx-data-1701980652141-1.tar.gz
backup.json.gz
sanity/tests

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -30,8 +30,8 @@ export class IssuesDetailsPage extends CommonTrackerPage {
this.buttonAssignee = page.locator('(//span[text()="Assignee"]/../div/button)[2]')
this.textLabels = page.locator('div.step-container div.listitems-container')
this.buttonAddLabel = page.locator('button.tag-button')
this.buttonComponent = page.locator('(//span[text()="Component"]/../div/div/button)[2]')
this.buttonMilestone = page.locator('(//span[text()="Milestone"]/../div/div/button)[3]')
this.buttonComponent = page.locator('//span[text()="Component"]/following-sibling::div[1]/div/button')
this.buttonMilestone = page.locator('//span[text()="Milestone"]/following-sibling::div[1]/div/button')
this.textEstimation = page.locator('(//span[text()="Estimation"]/../div/button)[4]')
this.buttonEstimation = page.locator('(//span[text()="Estimation"]/../div/button)[3]')
this.buttonCreatedBy = page.locator('(//span[text()="Assignee"]/../div/button)[1]')

View File

@ -265,4 +265,26 @@ test.describe('Tracker filters tests', () => {
await issuesDetailsPage.buttonCloseIssue.click()
}
})
test('Component filter', async ({ page }) => {
const defaultComponent = 'Default component'
const leftSideMenuPage = new LeftSideMenuPage(page)
await leftSideMenuPage.buttonTracker.click()
const issuesPage = new IssuesPage(page)
await issuesPage.modelSelectorAll.click()
await issuesPage.selectFilter('Component', defaultComponent)
await issuesPage.inputSearch.press('Escape')
await issuesPage.checkFilter('Component', 'is')
for await (const issue of iterateLocator(issuesPage.issuesList)) {
await issue.locator('span.list > a').click()
const issuesDetailsPage = new IssuesDetailsPage(page)
await expect(issuesDetailsPage.buttonComponent).toHaveText(defaultComponent)
await issuesDetailsPage.buttonCloseIssue.click()
}
})
})