mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-26 21:34:27 +00:00
feat(tests): updated tests (#4296)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
e6e53e3231
commit
2aa1ab7fd7
@ -29,6 +29,7 @@ export class CommonPage {
|
||||
async fillToSelectPopup (page: Page, input: string): Promise<void> {
|
||||
await expect(page.locator('div.selectPopup input')).toBeVisible()
|
||||
await page.locator('div.selectPopup input').fill(input)
|
||||
await expect(page.locator('div.selectPopup button')).toBeVisible()
|
||||
await page.locator('div.selectPopup button').click()
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ test.describe('Tracker duplicate issue tests', () => {
|
||||
await issuesPage.checkIssuesCount(firstIssue.title, 2)
|
||||
|
||||
await test.step('Update the first issue title', async () => {
|
||||
const newIssueTitle = `Update Duplicate issue-${generateId()}`
|
||||
const newIssueTitle = `Duplicate Update issue-${generateId()}`
|
||||
await issuesPage.openIssueById(firstIssueId)
|
||||
|
||||
const issuesDetailsPage = new IssuesDetailsPage(page)
|
||||
|
@ -298,7 +298,7 @@ test.describe('Tracker tests', () => {
|
||||
// Click button:has-text("No due date")
|
||||
await page.locator('button:has-text("Due date")').click()
|
||||
// Click text=24 >> nth=0
|
||||
await page.locator('.date-popup-container >> text=24').first().click()
|
||||
await page.locator('.date-popup-container div.day >> text=24').first().click()
|
||||
|
||||
await page.keyboard.press('Escape')
|
||||
await page.keyboard.press('Escape')
|
||||
|
Loading…
Reference in New Issue
Block a user