mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-07 04:11:17 +03:00
TESTS-99: feat(tests): done Component filter test (#4162)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
7a275dc5b6
commit
c6853c123f
Binary file not shown.
BIN
tests/sanity-ws/000001/_migrations-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/_migrations-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/attachment-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/attachment-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/blob-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/blob-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/channel-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/channel-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/chunter-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/chunter-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/comment-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/comment-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/contact-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/contact-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/doc-index-state-1701980652141-0.snp.gz
Normal file
BIN
tests/sanity-ws/000001/doc-index-state-1701980652141-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/fulltext-blob-1701980652141-0.snp.gz
Normal file
BIN
tests/sanity-ws/000001/fulltext-blob-1701980652141-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/fulltext-blob-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/fulltext-blob-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/inventory-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/inventory-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/kanban-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/kanban-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/notification-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/notification-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/space-1701980652141-0.snp.gz
Normal file
BIN
tests/sanity-ws/000001/space-1701980652141-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/space-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/space-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/tags-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/tags-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/task-1701980652141-0.snp.gz
Normal file
BIN
tests/sanity-ws/000001/task-1701980652141-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/task-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/task-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/tracker-1701980652141-0.snp.gz
Normal file
BIN
tests/sanity-ws/000001/tracker-1701980652141-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/tracker-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/tracker-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/tx-1701980652141-0.snp.gz
Normal file
BIN
tests/sanity-ws/000001/tx-1701980652141-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000001/tx-data-1701980652141-1.tar.gz
Normal file
BIN
tests/sanity-ws/000001/tx-data-1701980652141-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -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]')
|
||||
|
@ -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()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user