Skip to content

Commit

Permalink
feat(tests): updated allure parent suite
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Velichko <[email protected]>
  • Loading branch information
nestoragent committed Nov 19, 2023
1 parent c47212a commit c241f7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions tests/sanity/tests/tracker/layout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
import { fillSearch, generateId, PlatformSetting } from '../utils'
import { allure } from 'allure-playwright'
import { IssuesPage } from '../model/tracker/issues-page'
import { allure } from 'allure-playwright'
test.use({
storageState: PlatformSetting
})
Expand Down Expand Up @@ -96,6 +97,7 @@ test.describe('tracker layout tests', () => {
test.beforeEach(async ({ page }) => {
await allure.parentSuite('Tracker tests')
test.setTimeout(60000)
await allure.parentSuite('Tracker tests')
await navigate(page)
if (issuesPropsP === undefined) {
issuesPropsP = initIssues(id, page)
Expand Down
15 changes: 7 additions & 8 deletions tests/sanity/tests/tracker/tracker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,18 @@ test.describe('Tracker tests', () => {
await fillSearch(page, name)

await page.waitForSelector(`text="${name}"`, { timeout: 15000 })

let count = 0
for (let j = 0; j < 5; j++) {
const random = Math.floor(Math.random() * values.length)
const time = values[random]
count += time
await page.click('text="Issues"')
const issuesPage = new IssuesPage(page)
await issuesPage.modelSelectorAll.click()
await page.click('button:has-text("View")')
await page.click('.ordering >> nth=0')
await page.click('text="Modified date"')
await page.keyboard.press('Escape')
await page.click('text="Issues"')
const issuesPage = new IssuesPage(page)
await issuesPage.modelSelectorAll.click()
await page.click('button:has-text("View")')
await page.click('.ordering >> nth=0')
await page.click('text="Modified date"')
await page.keyboard.press('Escape')

await page.locator('.estimation-container').first().click()
await page.waitForSelector('text="Estimation"')
Expand Down

0 comments on commit c241f7c

Please sign in to comment.