From 58a004e53f694a6aa7030c45ade436977e1bf1bc Mon Sep 17 00:00:00 2001 From: Alex Velichko Date: Wed, 29 Nov 2023 10:35:23 +0300 Subject: [PATCH] feat(tests): updated create-vacancy test (#4091) Signed-off-by: Alex Velichko --- tests/sanity/tests/recruiting/vacancies.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/sanity/tests/recruiting/vacancies.spec.ts b/tests/sanity/tests/recruiting/vacancies.spec.ts index 9c24e57b36..a9298612e0 100644 --- a/tests/sanity/tests/recruiting/vacancies.spec.ts +++ b/tests/sanity/tests/recruiting/vacancies.spec.ts @@ -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' })