feat(tests): updated tests (#4296)

Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
Alex Velichko 2024-01-04 07:12:49 +03:00 committed by GitHub
parent e6e53e3231
commit 2aa1ab7fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -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()
}

View File

@ -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)

View File

@ -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')