feat(tests): updated create-vacancy test (#4091)

Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
Alex Velichko 2023-11-29 10:35:23 +03:00 committed by GitHub
parent 77c2b029b3
commit 58a004e53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ 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'
test.use({
storageState: PlatformSetting
@ -32,7 +33,8 @@ test.describe('Vacancy tests', () => {
// Create Application1
await page.click('button:has-text("Application")')
await page.click('form[id="recruit:string:CreateApplication"] [id="vacancy.talant.selector"]')
await page.click('button:has-text("P. Alex")')
await new CommonPage().selectAssignee(page, 'Alex')
await page.click('form[id="recruit:string:CreateApplication"] button:has-text("Create")')
await page.waitForSelector('form.antiCard', { state: 'detached' })