mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
feat(tests): updated reports and prepare server step (#4659)
Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
This commit is contained in:
parent
f1d55bfc56
commit
61ecae6363
@ -3,5 +3,12 @@
|
||||
docker compose -p sanity kill
|
||||
docker compose -p sanity down --volumes
|
||||
docker compose -p sanity up elastic mongodb -d --force-recreate --renew-anon-volumes
|
||||
docker_exit=$?
|
||||
if [ ${docker_exit} -eq 0 ]; then
|
||||
echo "Container started successfully"
|
||||
else
|
||||
echo "Container started with errors"
|
||||
exit ${docker_exit}
|
||||
fi
|
||||
|
||||
./wait-elastic.sh 9201
|
@ -3,6 +3,13 @@
|
||||
docker compose -p sanity kill
|
||||
docker compose -p sanity down --volumes
|
||||
docker compose -p sanity up -d --force-recreate --renew-anon-volumes
|
||||
docker_exit=$?
|
||||
if [ ${docker_exit} -eq 0 ]; then
|
||||
echo "Container started successfully"
|
||||
else
|
||||
echo "Container started with errors"
|
||||
exit ${docker_exit}
|
||||
fi
|
||||
|
||||
./wait-elastic.sh 9201
|
||||
|
||||
|
@ -12,10 +12,10 @@
|
||||
"format": "format tests",
|
||||
"ci": "playwright install --with-deps chromium",
|
||||
"test": "",
|
||||
"uitest": "playwright test --browser chromium --reporter list,html,allure-playwright -c ./tests/playwright.config.ts",
|
||||
"dev-uitest": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 SETTING=storage-dev.json SETTING_SECOND=storageSecond-dev.json playwright test --browser chromium --reporter list,html,allure-playwright -c ./tests/playwright.config.ts",
|
||||
"debug": "playwright test --browser chromium -c ./tests/playwright.config.ts --debug --headed",
|
||||
"dev-debug": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 SETTING=storage-dev.json SETTING_SECOND=storageSecond-dev.json playwright test --browser chromium -c ./tests/playwright.config.ts --debug --headed",
|
||||
"uitest": "playwright test -c ./tests/playwright.config.ts",
|
||||
"dev-uitest": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 SETTING=storage-dev.json SETTING_SECOND=storageSecond-dev.json playwright test -c ./tests/playwright.config.ts",
|
||||
"debug": "playwright test -c ./tests/playwright.config.ts --debug --headed",
|
||||
"dev-debug": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 SETTING=storage-dev.json SETTING_SECOND=storageSecond-dev.json playwright test -c ./tests/playwright.config.ts --debug --headed",
|
||||
"codegen": "playwright codegen --load-storage storage.json http://localhost:8083/workbench/sanity-ws/",
|
||||
"dev-codegen": "cross-env playwright codegen --load-storage storage-dev.json http://localhost:8080/workbench/sanity-ws/",
|
||||
"allure:generate": "allure generate allure-results -o allure-report --clean"
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { PlatformSetting, PlatformURI } from './utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('actions tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Actions tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -3,7 +3,6 @@ import { generateId, PlatformSetting, PlatformURI } from './utils'
|
||||
import { LeftSideMenuPage } from './model/left-side-menu-page'
|
||||
import { ChunterPage } from './model/chunter-page'
|
||||
import { ChannelPage } from './model/channel-page'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -11,7 +10,6 @@ test.use({
|
||||
|
||||
test.describe('channel tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Channel tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -3,7 +3,6 @@ import { getSecondPage, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { NavigationMenuPage } from '../model/recruiting/navigation-menu-page'
|
||||
import { ApplicationsPage } from '../model/recruiting/applications-page'
|
||||
import { ApplicationsDetailsPage } from '../model/recruiting/applications-details-page'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { TalentName } from '../model/recruiting/types'
|
||||
import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Collaborative tests for Application', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Collaborative tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { generateId, getSecondPage, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { NewIssue } from '../model/tracker/types'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
@ -12,7 +11,6 @@ test.use({
|
||||
|
||||
test.describe('Collaborative test for issue', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Collaborative tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/tracker/`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { generateId, PlatformSetting, PlatformURI } from './utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('duplicate-org-test', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Duplicate Org test')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { fillSearch, generateId, PlatformSetting, PlatformURI } from './utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('contact tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Contact test')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { Page, test } from '@playwright/test'
|
||||
import { PlatformSetting, PlatformURI } from './utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -17,7 +16,6 @@ export async function createDepartment (page: Page, departmentName: string): Pro
|
||||
|
||||
test.describe('hr tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('HR test')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -2,12 +2,9 @@ import { test } from '@playwright/test'
|
||||
import { PlatformUser } from './utils'
|
||||
import { LoginPage } from './model/login-page'
|
||||
import { SelectWorkspacePage } from './model/select-workspace-page'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.describe('login test', () => {
|
||||
test('check login', async ({ page }) => {
|
||||
await allure.parentSuite('Login test')
|
||||
|
||||
page.on('pageerror', (exception) => {
|
||||
console.log('Uncaught exception:')
|
||||
console.log(exception.message)
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { generateId, PlatformSetting, PlatformURI } from './utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('recruit tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruit test')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,8 +1,14 @@
|
||||
import { PlaywrightTestConfig } from '@playwright/test'
|
||||
import { devices, PlaywrightTestConfig } from '@playwright/test'
|
||||
import { config as dotenvConfig } from 'dotenv'
|
||||
dotenvConfig()
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
projects: [
|
||||
{
|
||||
name: 'Platform',
|
||||
use: { ...devices['Desktop Chrome'] }
|
||||
}
|
||||
],
|
||||
use: {
|
||||
screenshot: 'only-on-failure',
|
||||
trace: {
|
||||
@ -20,11 +26,12 @@ const config: PlaywrightTestConfig = {
|
||||
},
|
||||
reporter: [
|
||||
['list'],
|
||||
['html'],
|
||||
[
|
||||
'allure-playwright',
|
||||
{
|
||||
detail: true,
|
||||
suiteTitle: true
|
||||
suiteTitle: false
|
||||
}
|
||||
]
|
||||
]
|
||||
|
@ -3,7 +3,6 @@ import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { NavigationMenuPage } from '../model/recruiting/navigation-menu-page'
|
||||
import { ApplicationsPage } from '../model/recruiting/applications-page'
|
||||
import { ApplicationsDetailsPage } from '../model/recruiting/applications-details-page'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { VacancyDetailsPage } from '../model/recruiting/vacancy-details-page'
|
||||
import { VacanciesPage } from '../model/recruiting/vacancies-page'
|
||||
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Application tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruiting tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { NavigationMenuPage } from '../model/recruiting/navigation-menu-page'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { CompaniesPage } from '../model/recruiting/companies-page'
|
||||
import { NewCompany } from '../model/recruiting/types'
|
||||
import { CompanyDetailsPage } from '../model/recruiting/company-details-page'
|
||||
@ -12,7 +11,6 @@ test.use({
|
||||
|
||||
test.describe('Companies tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruiting tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { PlatformSetting, PlatformURI } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('interview tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruiting tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('review tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruiting tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { PlatformSetting, PlatformURI } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('skill tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruiting tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -3,7 +3,6 @@ import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { NavigationMenuPage } from '../model/recruiting/navigation-menu-page'
|
||||
import { TalentsPage } from '../model/recruiting/talents-page'
|
||||
import { TalentDetailsPage } from '../model/recruiting/talent-details-page'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { TalentName } from '../model/recruiting/types'
|
||||
|
||||
test.use({
|
||||
@ -12,7 +11,6 @@ test.use({
|
||||
|
||||
test.describe('candidate/talents tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruiting tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -3,7 +3,6 @@ import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { NavigationMenuPage } from '../model/recruiting/navigation-menu-page'
|
||||
import { VacanciesPage } from '../model/recruiting/vacancies-page'
|
||||
import { VacancyDetailsPage } from '../model/recruiting/vacancy-details-page'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { CommonPage } from '../model/common-page'
|
||||
import { NewVacancy } from '../model/recruiting/types'
|
||||
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Vacancy tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruiting tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { PlatformSetting, PlatformURI } from './utils'
|
||||
|
||||
test.use({
|
||||
@ -7,7 +6,6 @@ test.use({
|
||||
})
|
||||
test.describe('contact tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Contact test')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { generateId, PlatformSetting, PlatformURI } from './utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
@ -8,7 +7,6 @@ test.use({
|
||||
|
||||
test.describe('recruit tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Recruit test')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Attachments tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Attachments tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { navigate } from './tracker.utils'
|
||||
import { generateId, PlatformSetting, PlatformURI, fillSearch } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
import { ComponentsPage } from '../model/tracker/components-page'
|
||||
@ -14,7 +13,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker component tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -3,7 +3,6 @@ import { generateId, iterateLocator, PlatformSetting, PlatformURI } from '../uti
|
||||
import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { DateDivided, NewIssue } from '../model/tracker/types'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { DEFAULT_STATUSES, DEFAULT_STATUSES_ID, PRIORITIES } from './tracker.utils'
|
||||
import { IssuesDetailsPage } from '../model/tracker/issues-details-page'
|
||||
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker filters tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -3,7 +3,6 @@ import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { NewIssue } from '../model/tracker/types'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { IssuesDetailsPage } from '../model/tracker/issues-details-page'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker duplicate issue tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -4,7 +4,6 @@ import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { IssuesDetailsPage } from '../model/tracker/issues-details-page'
|
||||
import { Issue, NewIssue } from '../model/tracker/types'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
|
||||
test.use({
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker issue tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { Page, expect, test } from '@playwright/test'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { PlatformSetting, expectToContainsOrdered, fillSearch, generateId } from '../utils'
|
||||
import {
|
||||
@ -96,7 +95,6 @@ test.describe('tracker layout tests', () => {
|
||||
let issuesProps: IssueProps[] = []
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
test.setTimeout(60000)
|
||||
await navigate(page)
|
||||
if (issuesPropsP === undefined) {
|
||||
|
@ -1,13 +1,11 @@
|
||||
import { test, expect } from '@playwright/test'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { PlatformSetting, PlatformURI } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
})
|
||||
|
||||
test('check-status-loading', async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (
|
||||
await page.goto(`${PlatformURI}/workbench/sanity-ws/tracker/tracker%3Aproject%3ADefaultProject/issues`)
|
||||
)?.finished()
|
||||
|
@ -4,7 +4,6 @@ import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { IssuesDetailsPage } from '../model/tracker/issues-details-page'
|
||||
import { NewIssue } from '../model/tracker/types'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { ContactsNavigationMenuPage } from '../model/contacts/navigation-menu-page'
|
||||
import { EmployeesPage } from '../model/contacts/employees-page'
|
||||
import { EmployeeDetailsPage } from '../model/contacts/employee-details-page'
|
||||
@ -15,7 +14,6 @@ test.use({
|
||||
|
||||
test.describe('Mentions issue tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
import { MilestonesPage } from '../model/tracker/milestones-page'
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker milestone tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { PlatformSetting, PlatformURI } from '../utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
import { NewProjectPage } from '../model/tracker/new-project-page'
|
||||
import { NewProject } from '../model/tracker/types'
|
||||
@ -12,7 +11,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker Projects tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
@ -48,6 +46,7 @@ test.describe('Tracker Projects tests', () => {
|
||||
}
|
||||
const updateProjectData: NewProject = {
|
||||
title: 'UpdateProject',
|
||||
identifier: 'EDIT',
|
||||
description: 'Updated Project description',
|
||||
private: true,
|
||||
defaultAssigneeForIssues: 'Chen Rosamund',
|
||||
|
@ -4,7 +4,6 @@ import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { IssuesDetailsPage } from '../model/tracker/issues-details-page'
|
||||
import { NewIssue } from '../model/tracker/types'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
|
||||
test.use({
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker related issue tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import {
|
||||
@ -20,7 +19,6 @@ test.use({
|
||||
})
|
||||
test.describe('Tracker sub-issues tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -2,7 +2,6 @@ import { test } from '@playwright/test'
|
||||
import { generateId, PlatformSetting, PlatformURI } from '../utils'
|
||||
import { LeftSideMenuPage } from '../model/left-side-menu-page'
|
||||
import { Issue, NewIssue } from '../model/tracker/types'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
import { TemplatePage } from '../model/tracker/templates-page'
|
||||
import { TemplateDetailsPage } from '../model/tracker/template-details-page'
|
||||
@ -13,7 +12,6 @@ test.use({
|
||||
|
||||
test.describe('Tracker template tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { IssuesPage } from '../model/tracker/issues-page'
|
||||
import { PlatformSetting, fillSearch, generateId } from '../utils'
|
||||
import {
|
||||
@ -27,10 +26,6 @@ const panelStatusMap = new Map([
|
||||
])
|
||||
|
||||
test.describe('Tracker tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Tracker tests')
|
||||
})
|
||||
|
||||
test('issues-status-display', async ({ page }) => {
|
||||
const locator = page.locator('.list-container')
|
||||
await navigate(page)
|
||||
|
@ -1,13 +1,11 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { PlatformSetting, PlatformURI } from './utils'
|
||||
import { allure } from 'allure-playwright'
|
||||
|
||||
test.use({
|
||||
storageState: PlatformSetting
|
||||
})
|
||||
test.describe('workbench tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Workbench test')
|
||||
await (await page.goto(`${PlatformURI}/workbench/sanity-ws`))?.finished()
|
||||
})
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { test } from '@playwright/test'
|
||||
import { allure } from 'allure-playwright'
|
||||
import { LoginPage } from '../model/login-page'
|
||||
import { generateId } from '../utils'
|
||||
import { SelectWorkspacePage } from '../model/select-workspace-page'
|
||||
@ -12,10 +11,6 @@ import { IssuesDetailsPage } from '../model/tracker/issues-details-page'
|
||||
import { TrackerNavigationMenuPage } from '../model/tracker/tracker-navigation-menu-page'
|
||||
|
||||
test.describe('Workspace tests', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await allure.parentSuite('Workspace tests')
|
||||
})
|
||||
|
||||
test('Create a workspace with a custom name', async ({ page }) => {
|
||||
const newUser: SignUpData = {
|
||||
firstName: `FirstName-${generateId()}`,
|
||||
|
Loading…
Reference in New Issue
Block a user