From 395a008c74bdfd8ce75bd5a3b7a4777dca32d722 Mon Sep 17 00:00:00 2001 From: Vlad Smykov Date: Tue, 17 Jun 2025 19:53:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=84=D0=B0=D0=B9=D0=BB=20RegisterPage=20=D0=B8=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=B8=D0=B2=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D1=81=D1=86=D0=B5=D0=BD=D0=B0=D1=80=D0=B8=D0=B9=20register.spe?= =?UTF-8?q?c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-cdb5-4417-9afc-c0e381650135-attachment.md | 137 ++++++++++++++++ ...79-a4c7-4a9e-9cb3-9b628066100c-result.json | 1 + ...11-9226-43ed-998a-50af22d1f65a-result.json | 1 + ...27-ca46-4082-a4df-c1f0127d5e0b-result.json | 1 + ...da-a9b2-44db-ae08-8863bb7bb4f1-result.json | 1 + ...d1-3808-4d98-955d-b335b9aae6f4-result.json | 1 + ...70-4f41-4a78-86fd-6a8a5e79c9f3-result.json | 1 + ...54-d3a9-4012-84a4-8afff0e62cb2-result.json | 1 + ...-5e14-48d9-befc-811b8b77ae21-attachment.md | 136 ++++++++++++++++ ...-0ec2-4f96-8cf8-274432a5d92f-attachment.md | 63 ++++++++ ...-7f4c-4bf4-ac8a-4d5218b64616-attachment.md | 58 +++++++ ...-5814-4c51-b07f-3a97c47cf0bf-attachment.md | 66 ++++++++ ...d4-2719-4bb6-9ad3-e1a12049b6cf-result.json | 1 + ...54-c940-4da1-9323-0be0381a6fde-result.json | 1 + ...-978d-41ca-ba49-b196596eb4e1-attachment.md | 59 +++++++ ...-f6ec-4399-84f4-fab74a967f99-attachment.md | 147 ++++++++++++++++++ ...-b673-4324-a131-c544667258de-attachment.md | 61 ++++++++ ...-cf5e-4625-a2f4-42b63b87a069-attachment.md | 137 ++++++++++++++++ ...-f3ca-4a4f-b1de-81681e3ad6b6-attachment.md | 137 ++++++++++++++++ ...db-abad-4ef6-8bc2-f4caf89a25c8-result.json | 1 + page-objects/RegisterPage.ts | 112 +++++++++++++ tests/ui/registration/register.spec.ts | 35 +++++ 22 files changed, 1158 insertions(+) create mode 100644 allure-results/1280c5d2-cdb5-4417-9afc-c0e381650135-attachment.md create mode 100644 allure-results/1f4f7879-a4c7-4a9e-9cb3-9b628066100c-result.json create mode 100644 allure-results/20be4011-9226-43ed-998a-50af22d1f65a-result.json create mode 100644 allure-results/41bf9227-ca46-4082-a4df-c1f0127d5e0b-result.json create mode 100644 allure-results/48e5eeda-a9b2-44db-ae08-8863bb7bb4f1-result.json create mode 100644 allure-results/4b6e79d1-3808-4d98-955d-b335b9aae6f4-result.json create mode 100644 allure-results/69f76570-4f41-4a78-86fd-6a8a5e79c9f3-result.json create mode 100644 allure-results/7bac0454-d3a9-4012-84a4-8afff0e62cb2-result.json create mode 100644 allure-results/861d8ba7-5e14-48d9-befc-811b8b77ae21-attachment.md create mode 100644 allure-results/8e550857-0ec2-4f96-8cf8-274432a5d92f-attachment.md create mode 100644 allure-results/982cd10d-7f4c-4bf4-ac8a-4d5218b64616-attachment.md create mode 100644 allure-results/a5bf16cc-5814-4c51-b07f-3a97c47cf0bf-attachment.md create mode 100644 allure-results/b59c31d4-2719-4bb6-9ad3-e1a12049b6cf-result.json create mode 100644 allure-results/b7d61c54-c940-4da1-9323-0be0381a6fde-result.json create mode 100644 allure-results/cdf9eb94-978d-41ca-ba49-b196596eb4e1-attachment.md create mode 100644 allure-results/d3654a55-f6ec-4399-84f4-fab74a967f99-attachment.md create mode 100644 allure-results/d5819215-b673-4324-a131-c544667258de-attachment.md create mode 100644 allure-results/dc2cf3b3-cf5e-4625-a2f4-42b63b87a069-attachment.md create mode 100644 allure-results/dc6a8cb9-f3ca-4a4f-b1de-81681e3ad6b6-attachment.md create mode 100644 allure-results/e193a2db-abad-4ef6-8bc2-f4caf89a25c8-result.json create mode 100644 page-objects/RegisterPage.ts create mode 100644 tests/ui/registration/register.spec.ts diff --git a/allure-results/1280c5d2-cdb5-4417-9afc-c0e381650135-attachment.md b/allure-results/1280c5d2-cdb5-4417-9afc-c0e381650135-attachment.md new file mode 100644 index 0000000..db2b93d --- /dev/null +++ b/allure-results/1280c5d2-cdb5-4417-9afc-c0e381650135-attachment.md @@ -0,0 +1,137 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + +Locator: locator(':root') +Expected pattern: /\/login\/confirmLogin/ +Received string: "https://ssas.dev.rdcenter.ru/login/registration" +Call log: + - expect.toHaveURL with timeout 5000ms + - waiting for locator(':root') + 9 × locator resolved to … + - unexpected value "https://ssas.dev.rdcenter.ru/login/registration" + + at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24 +``` + +# Page snapshot + +```yaml +- main: + - main: + - button + - button "Скрыть Close": + - text: Скрыть + - img "Close" + - list: + - listitem: + - text: Главная + - img "Arrow" + - listitem: + - text: Автору + - img "Arrow" + - listitem: + - text: Новости + - img "Arrow" + - listitem: + - text: Участники + - img "Arrow" + - listitem: + - text: Оргкомитет + - img "Arrow" + - img "Logo" + - paragraph: Добро пожаловать + - paragraph: Зарегистрируйтесь, чтобы начать работу. + - textbox "Имя*": Иван + - text: Имя* + - textbox "Фамилия*": Тестов + - text: Фамилия* + - textbox "Отчество": Александрович + - text: Отчество + - textbox "Учёное звание*": Доцент + - img "img" + - text: Учёное звание* + - textbox "Учёная степень*": Кандидат наук + - img "img" + - text: Учёная степень* + - textbox "Должность": Преподаватель + - text: Должность + - textbox "Организация*": ЮФУ + - text: Организация* + - textbox "Email (логин)*": autotest29704@example.com + - text: Email (логин)* + - textbox "Номер телефона*": +7 (987) 029-70-4 + - text: Некорректный номер + - img "!" + - img "показать пароль" + - textbox "Придумайте пароль*": "!Test123" + - text: Придумайте пароль* + - img "показать пароль" + - textbox "Повторите пароль*": "!Test123" + - text: Повторите пароль* + - paragraph: ИЛИ + - button "Sfedu Logo Войти через аккаунт @sfedu": + - img "Sfedu Logo" + - text: Войти через аккаунт @sfedu + - button "Зарегистрироваться" + - paragraph: Уже есть аккаунт? + - paragraph: Авторизируйтесь + - paragraph: Всероссийская научная конференция "Системный синтез и прикладная синергетика" + - paragraph + - paragraph: "Напишите нам:" + - paragraph: + - text: "e-mail:" + - link "ssas@ictis.sfedu.ru": + - /url: mailto:ssas@ictis.sfedu.ru + - text: Сайт разработан Центром исследований и разработки ИКТИБ + - link "Ознакомиться с руководством пользователя": + - /url: /static/media/user_manual.f1df94e2c5143919fb0d.pdf +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | + 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+7987${randomSuffix.toString().padStart(6, '0')}`; + 14 | + 15 | await registerPage.register({ + 16 | name: 'Иван', + 17 | surname: 'Тестов', + 18 | patronymic: 'Александрович', + 19 | academicTitle: 'Доцент', + 20 | degree: 'Кандидат наук', + 21 | position: 'Преподаватель', + 22 | organization: 'ЮФУ', + 23 | email: uniqueEmail, + 24 | phone: uniquePhone, + 25 | password: '!Test123', + 26 | confirmPassword: '!Test123' + 27 | }); + 28 | + 29 | // Проверяем редирект на страницу подтверждения кода +> 30 | await expect(page).toHaveURL(/\/login\/confirmLogin/); + | ^ Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + 31 | await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + 32 | + 33 | }); + 34 | + 35 | }); + 36 | +``` \ No newline at end of file diff --git a/allure-results/1f4f7879-a4c7-4a9e-9cb3-9b628066100c-result.json b/allure-results/1f4f7879-a4c7-4a9e-9cb3-9b628066100c-result.json new file mode 100644 index 0000000..f449d90 --- /dev/null +++ b/allure-results/1f4f7879-a4c7-4a9e-9cb3-9b628066100c-result.json @@ -0,0 +1 @@ +{"uuid":"1f4f7879-a4c7-4a9e-9cb3-9b628066100c","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"failed","statusDetails":{"message":"Error: expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n","trace":"Error: expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750176582212,"uuid":"58c167c0-eb7f-4f55-922d-9cb13325b407","stop":1750176582980}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750176582211,"uuid":"7465235a-9089-4c9e-8720-40624796f22f","stop":1750176582981},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750176582982,"uuid":"5e9fa832-6388-4ccf-baef-c8439fe45066","stop":1750176583741}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176582981,"uuid":"55507f99-1bac-47d0-8206-0db5837635fd","stop":1750176583743},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750176583744,"uuid":"d30f51b3-30cd-4406-9f9f-f6c34e57661a","stop":1750176584143}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176583743,"uuid":"c7aaadea-3cf4-43b9-8908-2b0c22914d3a","stop":1750176584143}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750176582208,"uuid":"5509f959-fe97-48fd-aba7-232684b4ad1a","stop":1750176584143},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176584148,"name":"page.goto(/login/registration)","uuid":"0612dab2-9c7e-442d-9af8-98f011c7f9d9","stop":1750176589307},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176589308,"name":"locator.fill(Иван)","uuid":"abf86120-384c-4fcd-b5bf-94d1b6e505cd","stop":1750176591322},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176591324,"name":"locator.fill(Тестов)","uuid":"a3c6ac2e-cabc-4048-b81c-dce2e3af332f","stop":1750176592259},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176592260,"name":"locator.fill(Александрович)","uuid":"18f42112-584a-410d-aba5-39015c192fa3","stop":1750176593178},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176593179,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"52c6d36a-5d3d-46f1-9e98-9c56d93237a4","stop":1750176593718},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176593719,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"ceb396d4-6300-4f12-8ae6-fe58d4e8d050","stop":1750176595073},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176595075,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"bd6e1dea-b73f-4cce-b139-a1abbc855547","stop":1750176595653},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176595654,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"fb439d44-6a26-4196-8054-10bfca8f1e82","stop":1750176596570},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176596571,"name":"locator.fill(Преподаватель)","uuid":"a5d6d827-5c0e-484f-ad57-b002ecaff71e","stop":1750176597026},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176597027,"name":"locator.fill(ЮФУ)","uuid":"06f1796b-3258-45b3-8af1-a2da1e557df4","stop":1750176599509},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176599510,"name":"locator.fill(autotest15718@example.com)","uuid":"55488fca-3fb3-4a0c-badf-ca8483c0ba7f","stop":1750176600191},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176600192,"name":"locator.fill(+7987015718)","uuid":"26635a1e-4b5b-4937-bf41-e090d748a761","stop":1750176604510},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176604511,"name":"locator.fill(!Test123456)","uuid":"eb06acd1-3327-4b28-9a25-59b5959c95b9","stop":1750176609411},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176609412,"name":"locator.fill(!Test123456)","uuid":"a8776a0a-2aee-44e7-b1f3-023ce29cf7f2","stop":1750176610242},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176610244,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"5eac87a3-d3bd-48db-bc9b-884f4e8085e6","stop":1750176614947},{"status":"failed","statusDetails":{"message":"Error: expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n","trace":"Error: expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176614951,"name":"expect.toHaveURL","uuid":"fda35782-a320-49e7-9551-06ed0d1bb3d1","stop":1750176652183},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-0","source":"d5819215-b673-4324-a131-c544667258de-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750176652228,"name":"_error-context-0","stop":1750176652228},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-1","source":"cdf9eb94-978d-41ca-ba49-b196596eb4e1-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750176652228,"name":"_error-context-1","stop":1750176652228},{"status":"failed","statusDetails":{"message":"Error: browserContext._wrapApiCall: Test ended.\nBrowser logs:\n\n /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-ebxZKI --remote-debugging-pipe --no-startup-window\n pid=53578\n[pid=53578][err] 2025-06-17 19:09:43.952 Chromium[53578:11906463] +[IMKClient subclass]: chose IMKClient_Modern\n[pid=53578][err] 2025-06-17 19:09:43.953 Chromium[53578:11906463] +[IMKInputSession subclass]: chose IMKInputSession_Modern\n[pid=53578] ","trace":"Error: browserContext._wrapApiCall: Test ended.\nBrowser logs:\n\n /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-ebxZKI --remote-debugging-pipe --no-startup-window\n pid=53578\n[pid=53578][err] 2025-06-17 19:09:43.952 Chromium[53578:11906463] +[IMKClient subclass]: chose IMKClient_Modern\n[pid=53578][err] 2025-06-17 19:09:43.953 Chromium[53578:11906463] +[IMKInputSession subclass]: chose IMKInputSession_Modern\n[pid=53578] "},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176652169,"uuid":"604d81f7-bd5c-4052-a239-ac2df4f40873","stop":1750176652169},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176652170,"uuid":"43f1b86c-6a28-4808-9c79-d11b091cc6c7","stop":1750176652170}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750176652166,"uuid":"fa1868e7-9d34-46b5-8487-0b9c3e341444","stop":1750176652221}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-53574-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750176582212,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750176651424} \ No newline at end of file diff --git a/allure-results/20be4011-9226-43ed-998a-50af22d1f65a-result.json b/allure-results/20be4011-9226-43ed-998a-50af22d1f65a-result.json new file mode 100644 index 0000000..7abee07 --- /dev/null +++ b/allure-results/20be4011-9226-43ed-998a-50af22d1f65a-result.json @@ -0,0 +1 @@ +{"uuid":"20be4011-9226-43ed-998a-50af22d1f65a","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/authorization/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/authorization/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750170283411,"uuid":"c75b12cc-e5c9-475e-9e52-26c16b649f4e","stop":1750170284362}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750170283410,"uuid":"6ef8c541-2c64-4d15-9792-64ddebe59f1b","stop":1750170284362},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750170284363,"uuid":"f5e222d8-4509-4d0e-9c0d-ee949f8b71a0","stop":1750170285239}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750170284363,"uuid":"b8bf95bf-c1b3-47ea-afa5-4b5ccbdadbeb","stop":1750170285241},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750170285242,"uuid":"f66838d1-9578-4418-9470-6c7ccf60be56","stop":1750170285763}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750170285241,"uuid":"7dd56a4a-c510-47c1-9fb6-b4cc70c7d597","stop":1750170285763}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750170283407,"uuid":"9771f792-21d7-42de-b595-80703e137a20","stop":1750170285763},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170285773,"name":"page.goto(/login/registration)","uuid":"8f5d8226-d0e7-4d2d-88c0-a90546742aa2","stop":1750170289013},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170289015,"name":"locator.fill(Иван)","uuid":"b508db51-a32a-426c-8e58-188ee61958b6","stop":1750170290115},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170290117,"name":"locator.fill(Тестов)","uuid":"9630ba55-2292-4dc0-828c-4a3856a8daee","stop":1750170290974},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170290976,"name":"locator.fill(Александрович)","uuid":"cf389539-deb3-454c-b412-3933d868353c","stop":1750170291922},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170291924,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"165268ba-73c4-4f17-86ad-0dc7090bc12c","stop":1750170292971},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170292972,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"ea11e05e-0541-4fa1-8dec-9d935a70787b","stop":1750170296750},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170296751,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"bfd2d3f9-71eb-4cfc-9d2b-a94c0d5cb947","stop":1750170297951},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170297952,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"3b52b5bd-6fe4-4502-9115-0a826b237af4","stop":1750170300331},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170300333,"name":"locator.fill(Преподаватель)","uuid":"9f83b5e7-21ae-4b1f-97af-f93f127e7f30","stop":1750170301225},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170301227,"name":"locator.fill(ЮФУ)","uuid":"4dc5df94-2cec-42a9-a708-89a420abd9a2","stop":1750170303026},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170303028,"name":"locator.fill(autotest7469@example.com)","uuid":"1b0a16ae-acd9-4174-a04b-e1e43e46a0f0","stop":1750170303973},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170303974,"name":"locator.fill(+7987007469)","uuid":"2591e95e-46bc-4920-939c-8720f44f590d","stop":1750170305315},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170305317,"name":"locator.fill(!Test123)","uuid":"bfb892a5-0a3b-4faa-aa93-579894b14c97","stop":1750170306570},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170306571,"name":"locator.fill(!Test123)","uuid":"da8a7845-0576-4649-9b73-27cdf5ed08f8","stop":1750170307559},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170307560,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"60e66f77-7269-4e37-b7a9-17d2a88bc6fa","stop":1750170308728},{"status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/authorization/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/authorization/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750170308733,"name":"expect.toHaveURL","uuid":"a5b533be-e22b-44bd-a214-a9b64a03a208","stop":1750170316859},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-0","source":"861d8ba7-5e14-48d9-befc-811b8b77ae21-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750170317102,"name":"_error-context-0","stop":1750170317102},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750170316863,"uuid":"387529b8-1503-47cb-a9af-0128276aee89","stop":1750170316863},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750170316864,"uuid":"3fa20dfe-9eca-46e6-a8da-a8e290238503","stop":1750170316864}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750170316861,"uuid":"d01bc1d7-0991-42b6-882c-dba329c61611","stop":1750170316927}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-51997-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750170283414,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750170315971} \ No newline at end of file diff --git a/allure-results/41bf9227-ca46-4082-a4df-c1f0127d5e0b-result.json b/allure-results/41bf9227-ca46-4082-a4df-c1f0127d5e0b-result.json new file mode 100644 index 0000000..4b5a912 --- /dev/null +++ b/allure-results/41bf9227-ca46-4082-a4df-c1f0127d5e0b-result.json @@ -0,0 +1 @@ +{"uuid":"41bf9227-ca46-4082-a4df-c1f0127d5e0b","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"failed","statusDetails":{"message":"Error: locator.fill: Target page, context or browser has been closed\nCall log:\n - waiting for getByPlaceholder('Учёное звание*')\n - locator resolved to \n - fill(\"Доцент\")\n - attempting fill action\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 20ms\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 100ms\n 128 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 500ms\n","trace":"Error: locator.fill: Target page, context or browser has been closed\nCall log:\n - waiting for getByPlaceholder('Учёное звание*')\n - locator resolved to \n - fill(\"Доцент\")\n - attempting fill action\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 20ms\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 100ms\n 128 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 500ms\n\n at RegisterPage.register (/Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/page-objects/RegisterPage.ts:100:35)\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:15:5"},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750169801426,"uuid":"a533c9fb-82be-4a74-b853-7ae5527ce392","stop":1750169802961}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750169801425,"uuid":"38f287f4-2eb2-452b-8858-7c98e426bfa3","stop":1750169802962},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750169802964,"uuid":"e0dfb38e-22c9-45b4-bad2-37f60a28de0b","stop":1750169803820}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750169802962,"uuid":"baa3f816-dd9a-49e1-b250-19c65f662e33","stop":1750169803824},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750169803825,"uuid":"b5e43821-75ff-438e-99d8-8fcd8927b4d9","stop":1750169804337}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750169803824,"uuid":"abf70d0e-3802-4081-b911-ae866b851670","stop":1750169804337}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750169801421,"uuid":"491ab48c-56bd-40bb-80e8-784213a055bc","stop":1750169804337},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750169804342,"name":"page.goto(/login/registration)","uuid":"a5cf60da-e0f1-4650-b37a-ed785e3775e7","stop":1750169809231},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750169809233,"name":"locator.fill(Иван)","uuid":"083b9c3f-9c13-4ab6-a1e2-af698aa5a8bd","stop":1750169811380},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750169811381,"name":"locator.fill(Тестов)","uuid":"ece74528-32e6-4361-8af2-d54f851b2467","stop":1750169812802},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750169812804,"name":"locator.fill(Александрович)","uuid":"b15ef899-d466-471c-807f-7a37ff70c822","stop":1750169813736},{"status":"failed","statusDetails":{"message":"Error: locator.fill: Target page, context or browser has been closed\nCall log:\n - waiting for getByPlaceholder('Учёное звание*')\n - locator resolved to \n - fill(\"Доцент\")\n - attempting fill action\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 20ms\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 100ms\n 128 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 500ms\n","trace":"Error: locator.fill: Target page, context or browser has been closed\nCall log:\n - waiting for getByPlaceholder('Учёное звание*')\n - locator resolved to \n - fill(\"Доцент\")\n - attempting fill action\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 20ms\n 2 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 100ms\n 128 × waiting for element to be visible, enabled and editable\n - element is not editable\n - retrying fill action\n - waiting 500ms\n\n at RegisterPage.register (/Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/page-objects/RegisterPage.ts:100:35)\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:15:5"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750169813738,"name":"locator.fill(Доцент)","uuid":"488bbc64-b2ef-4216-93b6-88bc06f8de92","stop":1750169897544},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-0","source":"d3654a55-f6ec-4399-84f4-fab74a967f99-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750169897590,"name":"_error-context-0","stop":1750169897590},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-1","source":"982cd10d-7f4c-4bf4-ac8a-4d5218b64616-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750169897591,"name":"_error-context-1","stop":1750169897591},{"status":"failed","statusDetails":{"message":"Error: browserContext._wrapApiCall: Test ended.\nBrowser logs:\n\n /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-LRGFrl --remote-debugging-pipe --no-startup-window\n pid=51693\n[pid=51693][err] 2025-06-17 17:16:44.156 Chromium[51693:11871004] +[IMKClient subclass]: chose IMKClient_Modern\n[pid=51693][err] 2025-06-17 17:16:44.156 Chromium[51693:11871004] +[IMKInputSession subclass]: chose IMKInputSession_Modern\n[pid=51693] ","trace":"Error: browserContext._wrapApiCall: Test ended.\nBrowser logs:\n\n /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-LRGFrl --remote-debugging-pipe --no-startup-window\n pid=51693\n[pid=51693][err] 2025-06-17 17:16:44.156 Chromium[51693:11871004] +[IMKClient subclass]: chose IMKClient_Modern\n[pid=51693][err] 2025-06-17 17:16:44.156 Chromium[51693:11871004] +[IMKInputSession subclass]: chose IMKInputSession_Modern\n[pid=51693] "},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750169897517,"uuid":"a989ae2c-ce8e-4c04-8645-8a4602d2430d","stop":1750169897517},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750169897517,"uuid":"6bf953ef-f6c9-4117-a651-73f262e12abc","stop":1750169897517}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750169897515,"uuid":"8eccd96a-5304-4a40-9640-618e1ca6202a","stop":1750169897584}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-51689-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750169801429,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750169895816} \ No newline at end of file diff --git a/allure-results/48e5eeda-a9b2-44db-ae08-8863bb7bb4f1-result.json b/allure-results/48e5eeda-a9b2-44db-ae08-8863bb7bb4f1-result.json new file mode 100644 index 0000000..7af4c05 --- /dev/null +++ b/allure-results/48e5eeda-a9b2-44db-ae08-8863bb7bb4f1-result.json @@ -0,0 +1 @@ +{"uuid":"48e5eeda-a9b2-44db-ae08-8863bb7bb4f1","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750175892513,"uuid":"62ba822a-e46b-4e09-b22f-21a9a80b208f","stop":1750175893333}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750175892512,"uuid":"606d9ea9-c318-44c4-8985-3546d14894ad","stop":1750175893333},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750175893335,"uuid":"0f2195c0-3dc2-4b5d-987b-45a775fc7622","stop":1750175894198}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750175893334,"uuid":"d4a4a811-daae-431c-a82f-cb663cd4590c","stop":1750175894199},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750175894199,"uuid":"612db093-9002-47eb-9c6b-b2610e1507f9","stop":1750175894583}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750175894199,"uuid":"4f44b79b-5a4f-457c-96d5-8573ca2c9b1f","stop":1750175894583}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750175892509,"uuid":"04a88b9c-feb5-4b5f-82a1-571added3166","stop":1750175894583},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175894586,"name":"page.goto(/login/registration)","uuid":"e52c709a-83d8-4826-856c-c77636a761b9","stop":1750175906079},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175906082,"name":"locator.fill(Иван)","uuid":"c170abd7-2138-43dc-b1be-3246506d49c3","stop":1750175906649},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175906651,"name":"locator.fill(Тестов)","uuid":"ab211fdf-0a52-41b9-a2b5-9a07c11cafea","stop":1750175907491},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175907493,"name":"locator.fill(Александрович)","uuid":"512ddbde-fd65-4f9e-bef1-2a6ab70ea54c","stop":1750175908173},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175908175,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"4c63b2e4-f152-4bbc-ab65-22453ae42014","stop":1750175908823},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175908825,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"da1a377a-e7fd-4ea3-a2fd-37f43f8aff4e","stop":1750175910184},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175910185,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"5fc1196d-d4c1-460a-9fe3-8a8df0bfbc07","stop":1750175910863},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175910866,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"820e2b38-9eed-4746-958a-02cf89c701b1","stop":1750175912078},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175912079,"name":"locator.fill(Преподаватель)","uuid":"8612a8c5-9c5c-4aa2-ac9b-689cd98b12dd","stop":1750175912692},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175912693,"name":"locator.fill(ЮФУ)","uuid":"297580c1-35ce-4290-afcc-4cfd40cc12a9","stop":1750175913307},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175913308,"name":"locator.fill(autotest30703@example.com)","uuid":"ab32fce1-e7cd-4490-bb0d-2af37a2e6df0","stop":1750175913956},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175913957,"name":"locator.fill(+7987030703)","uuid":"4ac50d31-e2a3-43c4-aab1-8c7a28252e90","stop":1750175914571},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175914572,"name":"locator.fill(!Test123)","uuid":"470d26e4-5c59-4467-8556-947f547f1d7e","stop":1750175915361},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175915363,"name":"locator.fill(!Test123)","uuid":"1d4aaafd-a2e8-48da-99e3-d3f53baf5e49","stop":1750175916105},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175916107,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"e665bee7-598c-49e0-a0fd-beace8cbfbd1","stop":1750175917446},{"status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175917451,"name":"expect.toHaveURL","uuid":"562ff4d9-3194-489c-b960-cd698e840f69","stop":1750175942840},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-0","source":"dc2cf3b3-cf5e-4625-a2f4-42b63b87a069-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750175943091,"name":"_error-context-0","stop":1750175943091},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750175942843,"uuid":"e84c72f0-bfa1-492f-a85a-2281983001ac","stop":1750175942843},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750175942843,"uuid":"3f7e320f-764a-4fb7-b040-40e2772d1d58","stop":1750175942843}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750175942842,"uuid":"2267772f-743e-442e-a735-13aabd230e5d","stop":1750175942894}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-52773-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750175892514,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750175942070} \ No newline at end of file diff --git a/allure-results/4b6e79d1-3808-4d98-955d-b335b9aae6f4-result.json b/allure-results/4b6e79d1-3808-4d98-955d-b335b9aae6f4-result.json new file mode 100644 index 0000000..1ef54bc --- /dev/null +++ b/allure-results/4b6e79d1-3808-4d98-955d-b335b9aae6f4-result.json @@ -0,0 +1 @@ +{"uuid":"4b6e79d1-3808-4d98-955d-b335b9aae6f4","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750175803852,"uuid":"84206b2d-736e-4b0d-baa0-9b950ab6f139","stop":1750175805129}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750175803851,"uuid":"eef684f2-2f52-42a9-832c-4f304abb0c2d","stop":1750175805130},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750175805132,"uuid":"7f6dcb7a-93e1-4463-9e30-5aa419586e76","stop":1750175805990}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750175805131,"uuid":"5453cace-de29-4db3-b45a-2968df15570f","stop":1750175805991},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750175805992,"uuid":"8a55f2cf-e582-49b0-9921-7176872d5c71","stop":1750175806591}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750175805992,"uuid":"a9bff0a6-eda9-4b16-8db1-2f579718f7f5","stop":1750175806591}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750175803848,"uuid":"e16b0905-ebce-4aa2-9abd-20131522e78e","stop":1750175806591},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175806595,"name":"page.goto(/login/registration)","uuid":"18fd94b8-87fc-48e9-b73d-469d55a2c89b","stop":1750175811250},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175811254,"name":"locator.fill(Иван)","uuid":"f9d6bd6c-ecb0-4cf2-8137-7671e9e8e946","stop":1750175812235},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175812237,"name":"locator.fill(Тестов)","uuid":"aea6e4c6-0cf6-499f-bc0a-ebfc803fd326","stop":1750175812839},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175812840,"name":"locator.fill(Александрович)","uuid":"66bc6689-4f48-4462-86ea-d0ae049dcab8","stop":1750175813338},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175813341,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"c029f664-b743-4c4b-9202-8c586974a892","stop":1750175813827},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175813830,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"a899c2e3-e24d-45dd-a30a-b8bbdbc11474","stop":1750175814326},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175814328,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"51e94422-92fb-4e28-bca4-4b0dc5cd68bb","stop":1750175814563},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175814566,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"a1ec8a2c-a3b1-4370-9e61-d6d65eaa4942","stop":1750175820848},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175820849,"name":"locator.fill(Преподаватель)","uuid":"7aa1f0d9-d427-4f0a-b92a-a5218b281ff3","stop":1750175822257},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175822259,"name":"locator.fill(ЮФУ)","uuid":"7fb8f6d0-4af3-42fd-bc5c-ae054b135684","stop":1750175822955},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175822956,"name":"locator.fill(autotest70036@example.com)","uuid":"1a8987cf-3907-4ac2-b33d-5c88a8f28790","stop":1750175823690},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175823691,"name":"locator.fill(+7987070036)","uuid":"9f1440ec-9a97-4a68-b81c-0fd9dec23c36","stop":1750175824311},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175824312,"name":"locator.fill(!Test123)","uuid":"d57d4bad-94f7-4d5e-af36-0278a12d85d6","stop":1750175825289},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175825291,"name":"locator.fill(!Test123)","uuid":"a3c46e7e-23b6-416a-9dcb-c6ad37c971c2","stop":1750175826522},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175826523,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"b2816cec-e094-4114-8f90-dfe4d800878a","stop":1750175829800},{"status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175829803,"name":"expect.toHaveURL","uuid":"0517147e-8744-4406-8a42-da19c47ee434","stop":1750175839233},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-0","source":"dc6a8cb9-f3ca-4a4f-b1de-81681e3ad6b6-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750175839469,"name":"_error-context-0","stop":1750175839469},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750175839236,"uuid":"c4544a2c-e6d8-4f78-a1c9-989998dd6364","stop":1750175839236},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750175839236,"uuid":"d5c7f44b-4c33-4731-b396-858cf98770c0","stop":1750175839236}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750175839235,"uuid":"2aee4cd8-189b-4ea1-8133-57081fb9f269","stop":1750175839299}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-52528-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750175803854,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750175838015} \ No newline at end of file diff --git a/allure-results/69f76570-4f41-4a78-86fd-6a8a5e79c9f3-result.json b/allure-results/69f76570-4f41-4a78-86fd-6a8a5e79c9f3-result.json new file mode 100644 index 0000000..0b6296f --- /dev/null +++ b/allure-results/69f76570-4f41-4a78-86fd-6a8a5e79c9f3-result.json @@ -0,0 +1 @@ +{"uuid":"69f76570-4f41-4a78-86fd-6a8a5e79c9f3","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:b444eb0fbe6390c71e68b51dd25701fc","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750176689927,"uuid":"d367b020-c87d-4612-a66f-a8b65d853585","stop":1750176690943}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750176689926,"uuid":"2ed5affa-826f-4a52-8dc3-950324f12175","stop":1750176690943},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750176690945,"uuid":"59a380ad-302a-4274-9a44-3abde20af7c6","stop":1750176691838}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176690944,"uuid":"87fd1556-ccba-4c53-acdc-c255136a674b","stop":1750176691841},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750176691842,"uuid":"4f07f008-2c0b-434f-9473-c37e6f73fdd7","stop":1750176692381}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176691842,"uuid":"f7e83e94-69d6-40a9-af15-2ea88a218a96","stop":1750176692381}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750176689923,"uuid":"0f74d2dd-15ae-4a86-aab0-095aaa427673","stop":1750176692381},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176692385,"name":"page.goto(/login/registration)","uuid":"fb0aac6d-8766-47f6-9d5f-abec063ecf31","stop":1750176702278},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176702282,"name":"locator.fill(Иван)","uuid":"0dd286f8-87b9-4973-9c7b-5b2d051133db","stop":1750176704744},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176704747,"name":"locator.fill(Тестов)","uuid":"fda5b246-1800-4097-af24-b204be55eef0","stop":1750176704793},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176704794,"name":"locator.fill(Александрович)","uuid":"e97bcebd-703e-46ea-a068-699e640b5c3f","stop":1750176704815},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176704816,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"c08fd67e-4d8d-4271-9dab-abc3ac087da0","stop":1750176704989},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176704990,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"2bec8dde-8eef-4288-b0e5-fd9ab6c384d7","stop":1750176705481},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176705482,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"f50e234e-d0b5-4d52-a69c-4860c8496d2b","stop":1750176706437},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706440,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"fcf9eb5d-3a56-4378-b4c7-8019edf79dde","stop":1750176706544},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706545,"name":"locator.fill(Преподаватель)","uuid":"1a823102-fa5d-4af7-b124-30976b1edc1e","stop":1750176706561},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706562,"name":"locator.fill(ЮФУ)","uuid":"a989e5b0-175c-4e94-a406-684c492f9a1b","stop":1750176706588},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706589,"name":"locator.fill(autotest74077@example.com)","uuid":"56b7518f-a2f6-4da5-af46-2ce1b9dde9d1","stop":1750176706606},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706606,"name":"locator.fill(+79000074077)","uuid":"d8170d53-15fd-47fb-8c89-9530caaecff6","stop":1750176706626},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706626,"name":"locator.fill(!Test123456)","uuid":"6f33f0c5-5251-4971-8d81-5eb043b0c4ca","stop":1750176706644},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706645,"name":"locator.fill(!Test123456)","uuid":"d8841101-3bf1-4739-9eb1-6a4c0e934159","stop":1750176706676},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176706677,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"9eada93a-1a0e-4fdd-b64a-2ff7ff4edd81","stop":1750176708159},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176708162,"name":"expect.toHaveURL","uuid":"994b66c5-847f-46c4-95c9-d66c2bc0b6c4","stop":1750176708291},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176708293,"name":"expect.toBeVisible","uuid":"9fafbd0f-3150-44dc-89a0-f55e1c230ff9","stop":1750176708300},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176708302,"uuid":"b2895cc4-0b12-497d-b4fb-cee3f60b5212","stop":1750176708303},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176708303,"uuid":"3837faf6-2b2b-4cda-a854-ecbf9fa96269","stop":1750176708303}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750176708301,"uuid":"2fe679ce-d07f-447e-b399-e5627f9856f9","stop":1750176708336}],"attachments":[],"parameters":[{"name":"Project","value":"firefox"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > firefox > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-53790-worker-0"},{"name":"parentSuite","value":"firefox"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750176689923,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750176707314} \ No newline at end of file diff --git a/allure-results/7bac0454-d3a9-4012-84a4-8afff0e62cb2-result.json b/allure-results/7bac0454-d3a9-4012-84a4-8afff0e62cb2-result.json new file mode 100644 index 0000000..eb12071 --- /dev/null +++ b/allure-results/7bac0454-d3a9-4012-84a4-8afff0e62cb2-result.json @@ -0,0 +1 @@ +{"uuid":"7bac0454-d3a9-4012-84a4-8afff0e62cb2","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:84e28e814b821ed013329cc8dbc467e0","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750176709748,"uuid":"787c58a4-1c90-46e2-ac5e-9ecbc49aab36","stop":1750176710166}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750176709747,"uuid":"25270526-3318-483a-a2ea-4dcc782ea585","stop":1750176710166},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750176710167,"uuid":"d941124c-b1a7-40c1-a01a-2e9f78a1cf60","stop":1750176711183}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176710167,"uuid":"268d657f-b17d-45b0-ae60-58d510bc0f0e","stop":1750176711184},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750176711185,"uuid":"ac52528d-b5b5-4547-bc0d-c3a4de7782e0","stop":1750176711871}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176711185,"uuid":"a717707c-c7f9-4bb2-a5b0-4e7df0941d9b","stop":1750176711872}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750176709744,"uuid":"fa837508-f990-4784-be75-b7a8eb2a43a1","stop":1750176711872},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176711875,"name":"page.goto(/login/registration)","uuid":"6036c38e-fa0d-4208-bd6b-c942785d1bbd","stop":1750176715380},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176715383,"name":"locator.fill(Иван)","uuid":"fb060253-d51e-44e9-9edd-0a8dd2b9d3fb","stop":1750176715475},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176715476,"name":"locator.fill(Тестов)","uuid":"56f2db79-ff92-4adf-ae75-017436d597cf","stop":1750176715490},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176715490,"name":"locator.fill(Александрович)","uuid":"2f2b5931-bc18-4efc-936d-93b2147c4834","stop":1750176715499},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176715503,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"aef83f0c-0b61-4cf6-8004-f72003b15f60","stop":1750176715556},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176715557,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"733f091d-b618-462b-84b3-53dca965e9c5","stop":1750176715947},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176715948,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"80ef5ec4-2bd2-4f2a-8e3f-e16b3a099e11","stop":1750176716355},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716356,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"4cc44c02-fef7-43df-b2e8-55b85e5b73de","stop":1750176716746},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716747,"name":"locator.fill(Преподаватель)","uuid":"91ba0197-2e1a-431b-b5e1-c40c7728021b","stop":1750176716758},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716759,"name":"locator.fill(ЮФУ)","uuid":"df529148-86b1-460b-9ac5-ecc771df0038","stop":1750176716776},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716777,"name":"locator.fill(autotest71415@example.com)","uuid":"c304556a-ece5-4f5a-a4c6-73496d9007c4","stop":1750176716795},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716796,"name":"locator.fill(+79000071415)","uuid":"8dd0e0ad-d8a4-4afa-a5d4-7ccaacc74a20","stop":1750176716813},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716813,"name":"locator.fill(!Test123456)","uuid":"de75b613-f751-40ed-9874-d28f3568c71a","stop":1750176716825},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716826,"name":"locator.fill(!Test123456)","uuid":"61203f68-862e-4155-bd64-932bbba3d7d3","stop":1750176716835},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716837,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"a78b59f7-8ab2-465f-89c4-fb2a3b9973a2","stop":1750176716887},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176716889,"name":"expect.toHaveURL","uuid":"eebdf1ac-4a0a-4758-9d44-6d9ed4808458","stop":1750176717000},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176717000,"name":"expect.toBeVisible","uuid":"cc66ae84-a239-478c-bbd0-6d5cfe4f0970","stop":1750176717005},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176717006,"uuid":"acd76f57-81c1-4734-b254-0cc2d8f9fbe2","stop":1750176717006},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176717006,"uuid":"62d44f97-a7c7-4035-9d0f-92cc838aefbd","stop":1750176717006}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750176717005,"uuid":"a54e0540-a71e-4417-b6a0-991d280b78ad","stop":1750176717035}],"attachments":[],"parameters":[{"name":"Project","value":"webkit"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > webkit > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-53790-worker-0"},{"name":"parentSuite","value":"webkit"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750176709746,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750176716615} \ No newline at end of file diff --git a/allure-results/861d8ba7-5e14-48d9-befc-811b8b77ae21-attachment.md b/allure-results/861d8ba7-5e14-48d9-befc-811b8b77ae21-attachment.md new file mode 100644 index 0000000..c258805 --- /dev/null +++ b/allure-results/861d8ba7-5e14-48d9-befc-811b8b77ae21-attachment.md @@ -0,0 +1,136 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + +Locator: locator(':root') +Expected pattern: /\/login\/authorization/ +Received string: "https://ssas.dev.rdcenter.ru/login/registration" +Call log: + - expect.toHaveURL with timeout 5000ms + - waiting for locator(':root') + 9 × locator resolved to … + - unexpected value "https://ssas.dev.rdcenter.ru/login/registration" + + at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24 +``` + +# Page snapshot + +```yaml +- main: + - main: + - button + - button "Скрыть Close": + - text: Скрыть + - img "Close" + - list: + - listitem: + - text: Главная + - img "Arrow" + - listitem: + - text: Автору + - img "Arrow" + - listitem: + - text: Новости + - img "Arrow" + - listitem: + - text: Участники + - img "Arrow" + - listitem: + - text: Оргкомитет + - img "Arrow" + - img "Logo" + - paragraph: Добро пожаловать + - paragraph: Зарегистрируйтесь, чтобы начать работу. + - textbox "Имя*": Иван + - text: Имя* + - textbox "Фамилия*": Тестов + - text: Фамилия* + - textbox "Отчество": Александрович + - text: Отчество + - textbox "Учёное звание*": Доцент + - img "img" + - text: Учёное звание* + - textbox "Учёная степень*": Кандидат наук + - img "img" + - text: Учёная степень* + - textbox "Должность": Преподаватель + - text: Должность + - textbox "Организация*": ЮФУ + - text: Организация* + - textbox "Email (логин)*": autotest7469@example.com + - text: Email (логин)* + - textbox "Номер телефона*": +7 (987) 007-46-9 + - text: Некорректный номер + - img "!" + - img "показать пароль" + - textbox "Придумайте пароль*": "!Test123" + - text: Придумайте пароль* + - img "показать пароль" + - textbox "Повторите пароль*": "!Test123" + - text: Повторите пароль* + - paragraph: ИЛИ + - button "Sfedu Logo Войти через аккаунт @sfedu": + - img "Sfedu Logo" + - text: Войти через аккаунт @sfedu + - button "Зарегистрироваться" + - paragraph: Уже есть аккаунт? + - paragraph: Авторизируйтесь + - paragraph: Всероссийская научная конференция "Системный синтез и прикладная синергетика" + - paragraph + - paragraph: "Напишите нам:" + - paragraph: + - text: "e-mail:" + - link "ssas@ictis.sfedu.ru": + - /url: mailto:ssas@ictis.sfedu.ru + - text: Сайт разработан Центром исследований и разработки ИКТИБ + - link "Ознакомиться с руководством пользователя": + - /url: /static/media/user_manual.f1df94e2c5143919fb0d.pdf +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | + 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+7987${randomSuffix.toString().padStart(6, '0')}`; + 14 | + 15 | await registerPage.register({ + 16 | name: 'Иван', + 17 | surname: 'Тестов', + 18 | patronymic: 'Александрович', + 19 | academicTitle: 'Доцент', + 20 | degree: 'Кандидат наук', + 21 | position: 'Преподаватель', + 22 | organization: 'ЮФУ', + 23 | email: uniqueEmail, + 24 | phone: uniquePhone, + 25 | password: '!Test123', + 26 | confirmPassword: '!Test123' + 27 | }); + 28 | + 29 | // Проверяем редирект на страницу авторизации +> 30 | await expect(page).toHaveURL(/\/login\/authorization/); + | ^ Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + 31 | await expect(page.getByRole('heading')).toContainText('Авторизация'); + 32 | }); + 33 | + 34 | }); + 35 | +``` \ No newline at end of file diff --git a/allure-results/8e550857-0ec2-4f96-8cf8-274432a5d92f-attachment.md b/allure-results/8e550857-0ec2-4f96-8cf8-274432a5d92f-attachment.md new file mode 100644 index 0000000..69249f5 --- /dev/null +++ b/allure-results/8e550857-0ec2-4f96-8cf8-274432a5d92f-attachment.md @@ -0,0 +1,63 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: locator.isVisible: Target page, context or browser has been closed +Call log: + - checking visibility of locator('p.ErrorModal_title__heTm5') + + at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:32:26 +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | + 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+7987${randomSuffix.toString().padStart(6, '0')}`; + 14 | + 15 | // Заполнение формы + 16 | await registerPage.register({ + 17 | name: 'Иван', + 18 | surname: 'Тестов', + 19 | patronymic: 'Александрович', + 20 | academicTitle: 'Доцент', + 21 | degree: 'Кандидат наук', + 22 | position: 'Преподаватель', + 23 | organization: 'ЮФУ', + 24 | email: uniqueEmail, + 25 | phone: uniquePhone, + 26 | password: '!Test123456', // более надёжный + 27 | confirmPassword: '!Test123456' + 28 | }); + 29 | + 30 | // --- ВСТАВКА ДЛЯ ОТЛАДКИ --- + 31 | const errorModal = page.locator('p.ErrorModal_title__heTm5'); +> 32 | if (await errorModal.isVisible()) { + | ^ Error: locator.isVisible: Target page, context or browser has been closed + 33 | const msg = await errorModal.textContent(); + 34 | throw new Error(`Регистрация не удалась. Модалка: "${msg}"`); + 35 | } + 36 | + 37 | // Ждём, что будет редирект + 38 | await expect(page).toHaveURL(/\/login\/confirmLogin/); + 39 | await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + 40 | }); + 41 | + 42 | }); + 43 | +``` \ No newline at end of file diff --git a/allure-results/982cd10d-7f4c-4bf4-ac8a-4d5218b64616-attachment.md b/allure-results/982cd10d-7f4c-4bf4-ac8a-4d5218b64616-attachment.md new file mode 100644 index 0000000..90046f8 --- /dev/null +++ b/allure-results/982cd10d-7f4c-4bf4-ac8a-4d5218b64616-attachment.md @@ -0,0 +1,58 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: browserContext._wrapApiCall: Test ended. +Browser logs: + + /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-LRGFrl --remote-debugging-pipe --no-startup-window + pid=51693 +[pid=51693][err] 2025-06-17 17:16:44.156 Chromium[51693:11871004] +[IMKClient subclass]: chose IMKClient_Modern +[pid=51693][err] 2025-06-17 17:16:44.156 Chromium[51693:11871004] +[IMKInputSession subclass]: chose IMKInputSession_Modern +[pid=51693] +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | +> 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + | ^ Error: browserContext._wrapApiCall: Test ended. + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+7987${randomSuffix.toString().padStart(6, '0')}`; + 14 | + 15 | await registerPage.register({ + 16 | name: 'Иван', + 17 | surname: 'Тестов', + 18 | patronymic: 'Александрович', + 19 | academicTitle: 'Доцент', + 20 | degree: 'Кандидат наук', + 21 | position: 'Преподаватель', + 22 | organization: 'ЮФУ', + 23 | email: uniqueEmail, + 24 | phone: uniquePhone, + 25 | password: '!Test123', + 26 | confirmPassword: '!Test123' + 27 | }); + 28 | + 29 | // Проверяем редирект на страницу авторизации + 30 | await expect(page).toHaveURL(/\/login\/authorization/); + 31 | await expect(page.getByRole('heading')).toContainText('Авторизация'); + 32 | }); + 33 | + 34 | }); + 35 | +``` \ No newline at end of file diff --git a/allure-results/a5bf16cc-5814-4c51-b07f-3a97c47cf0bf-attachment.md b/allure-results/a5bf16cc-5814-4c51-b07f-3a97c47cf0bf-attachment.md new file mode 100644 index 0000000..1fef9c8 --- /dev/null +++ b/allure-results/a5bf16cc-5814-4c51-b07f-3a97c47cf0bf-attachment.md @@ -0,0 +1,66 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: browserContext._wrapApiCall: Test ended. +Browser logs: + + /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-TxrrIk --remote-debugging-pipe --no-startup-window + pid=53322 +[pid=53322][err] 2025-06-17 19:07:46.501 Chromium[53322:11903656] +[IMKClient subclass]: chose IMKClient_Modern +[pid=53322][err] 2025-06-17 19:08:28.659 Chromium[53322:11903656] +[IMKInputSession subclass]: chose IMKInputSession_Modern +[pid=53322] +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | +> 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + | ^ Error: browserContext._wrapApiCall: Test ended. + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+7987${randomSuffix.toString().padStart(6, '0')}`; + 14 | + 15 | // Заполнение формы + 16 | await registerPage.register({ + 17 | name: 'Иван', + 18 | surname: 'Тестов', + 19 | patronymic: 'Александрович', + 20 | academicTitle: 'Доцент', + 21 | degree: 'Кандидат наук', + 22 | position: 'Преподаватель', + 23 | organization: 'ЮФУ', + 24 | email: uniqueEmail, + 25 | phone: uniquePhone, + 26 | password: '!Test123456', // более надёжный + 27 | confirmPassword: '!Test123456' + 28 | }); + 29 | + 30 | // --- ВСТАВКА ДЛЯ ОТЛАДКИ --- + 31 | const errorModal = page.locator('p.ErrorModal_title__heTm5'); + 32 | if (await errorModal.isVisible()) { + 33 | const msg = await errorModal.textContent(); + 34 | throw new Error(`Регистрация не удалась. Модалка: "${msg}"`); + 35 | } + 36 | + 37 | // Ждём, что будет редирект + 38 | await expect(page).toHaveURL(/\/login\/confirmLogin/); + 39 | await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + 40 | }); + 41 | + 42 | }); + 43 | +``` \ No newline at end of file diff --git a/allure-results/b59c31d4-2719-4bb6-9ad3-e1a12049b6cf-result.json b/allure-results/b59c31d4-2719-4bb6-9ad3-e1a12049b6cf-result.json new file mode 100644 index 0000000..47c3f2c --- /dev/null +++ b/allure-results/b59c31d4-2719-4bb6-9ad3-e1a12049b6cf-result.json @@ -0,0 +1 @@ +{"uuid":"b59c31d4-2719-4bb6-9ad3-e1a12049b6cf","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"failed","statusDetails":{"message":"Error: locator.isVisible: Target page, context or browser has been closed\nCall log:\n - checking visibility of locator('p.ErrorModal_title__heTm5')\n","trace":"Error: locator.isVisible: Target page, context or browser has been closed\nCall log:\n - checking visibility of locator('p.ErrorModal_title__heTm5')\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:32:26"},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750176464558,"uuid":"e3fe0732-fa60-49dd-8cb7-b547673ce5c2","stop":1750176465363}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750176464558,"uuid":"4ceb189d-9851-4c70-979b-f06d0fdcee8b","stop":1750176465363},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750176465365,"uuid":"68e977f6-ff73-436a-9406-7e87a794657a","stop":1750176466174}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176465364,"uuid":"77b2b2c9-aafe-4ad7-88de-56cb83dfbe13","stop":1750176466175},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750176466176,"uuid":"6740c5c0-951a-4c23-a614-e5cce35e1806","stop":1750176466678}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176466175,"uuid":"abfa873e-4651-49d0-844a-0d6af0846a74","stop":1750176466678}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750176464554,"uuid":"96796e35-7a95-4964-968c-ed107c1f1980","stop":1750176466678},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176466682,"name":"page.goto(/login/registration)","uuid":"ac21d484-ce2c-43dc-8318-5a468d3dfc5a","stop":1750176470182},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176470184,"name":"locator.fill(Иван)","uuid":"c951798a-6785-4936-8319-c6c0f00752a9","stop":1750176476589},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176476591,"name":"locator.fill(Тестов)","uuid":"c709ec78-d8ea-445e-a224-0cda29b7b883","stop":1750176477547},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176477549,"name":"locator.fill(Александрович)","uuid":"8bf8d271-e0af-4800-bbb6-6cc45ad6c75a","stop":1750176478695},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176478696,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"9be8bdda-e92a-42ed-82ed-c11eb790a812","stop":1750176479978},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176479979,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"60384e9c-a199-49b9-a4aa-bfd87faf23af","stop":1750176482740},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176482741,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"31ccb5d8-2ac8-4452-b97f-80d74e8ffb2f","stop":1750176484219},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176484220,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"8a9322b4-79c1-468b-a385-7841ba9eaa7b","stop":1750176487603},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176487606,"name":"locator.fill(Преподаватель)","uuid":"8c3225c5-2736-490e-831f-987106bdfe54","stop":1750176489001},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176489002,"name":"locator.fill(ЮФУ)","uuid":"1b45f5e9-2dc6-4474-a19c-744e28a9414a","stop":1750176490112},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176490113,"name":"locator.fill(autotest20087@example.com)","uuid":"4745f770-3155-4386-bff2-e34f7e96d949","stop":1750176491012},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176491013,"name":"locator.fill(+7987020087)","uuid":"a2299677-41ba-4c0b-b4bb-7014cc71b970","stop":1750176491962},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176491963,"name":"locator.fill(!Test123456)","uuid":"133471bc-5a27-422d-909a-7df8d6e5ee4f","stop":1750176495980},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176495981,"name":"locator.fill(!Test123456)","uuid":"6cde277b-2b16-4c27-a02f-25a13de07ae2","stop":1750176497080},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176497081,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"afb67040-c9a3-4d9e-a66a-02f74a041922","stop":1750176501587},{"status":"failed","statusDetails":{"message":"Error: locator.isVisible: Target page, context or browser has been closed\nCall log:\n - checking visibility of locator('p.ErrorModal_title__heTm5')\n","trace":"Error: locator.isVisible: Target page, context or browser has been closed\nCall log:\n - checking visibility of locator('p.ErrorModal_title__heTm5')\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:32:26"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176501590,"name":"locator.isVisible(p.ErrorModal_title__heTm5)","uuid":"d462a16b-b543-4e23-8ab0-04374f840278","stop":1750176539140},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-0","source":"8e550857-0ec2-4f96-8cf8-274432a5d92f-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750176539176,"name":"_error-context-0","stop":1750176539176},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-1","source":"a5bf16cc-5814-4c51-b07f-3a97c47cf0bf-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750176539179,"name":"_error-context-1","stop":1750176539179},{"status":"failed","statusDetails":{"message":"Error: browserContext._wrapApiCall: Test ended.\nBrowser logs:\n\n /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-TxrrIk --remote-debugging-pipe --no-startup-window\n pid=53322\n[pid=53322][err] 2025-06-17 19:07:46.501 Chromium[53322:11903656] +[IMKClient subclass]: chose IMKClient_Modern\n[pid=53322][err] 2025-06-17 19:08:28.659 Chromium[53322:11903656] +[IMKInputSession subclass]: chose IMKInputSession_Modern\n[pid=53322] ","trace":"Error: browserContext._wrapApiCall: Test ended.\nBrowser logs:\n\n /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-TxrrIk --remote-debugging-pipe --no-startup-window\n pid=53322\n[pid=53322][err] 2025-06-17 19:07:46.501 Chromium[53322:11903656] +[IMKClient subclass]: chose IMKClient_Modern\n[pid=53322][err] 2025-06-17 19:08:28.659 Chromium[53322:11903656] +[IMKInputSession subclass]: chose IMKInputSession_Modern\n[pid=53322] "},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176539113,"uuid":"12ad1d71-a39f-4ea4-8d3b-d134ecdfd694","stop":1750176539113},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176539115,"uuid":"97827abb-c531-4512-a4d0-701f3318ecab","stop":1750176539115}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750176539109,"uuid":"4719da09-30a2-41ad-8a8f-58b4d4253cee","stop":1750176539163}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-53318-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750176464557,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750176538333} \ No newline at end of file diff --git a/allure-results/b7d61c54-c940-4da1-9323-0be0381a6fde-result.json b/allure-results/b7d61c54-c940-4da1-9323-0be0381a6fde-result.json new file mode 100644 index 0000000..7e497bf --- /dev/null +++ b/allure-results/b7d61c54-c940-4da1-9323-0be0381a6fde-result.json @@ -0,0 +1 @@ +{"uuid":"b7d61c54-c940-4da1-9323-0be0381a6fde","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750175955750,"uuid":"b06835eb-78a4-4777-984b-e28807f30325","stop":1750175956554}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750175955749,"uuid":"302fe2c0-ee8f-4c7b-8468-da878f9b1a45","stop":1750175956554},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750175956556,"uuid":"9af2d4bd-ae46-419e-a9ab-157c713ed2b0","stop":1750175957369}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750175956555,"uuid":"0e01416e-544f-44af-ae24-c8c11452d717","stop":1750175957370},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750175957371,"uuid":"827864ec-3014-4013-a489-994b71280f41","stop":1750175957748}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750175957370,"uuid":"f1540959-1c30-4dc3-96d6-2bf298697fe3","stop":1750175957748}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750175955746,"uuid":"e788cb64-eaa3-49dd-a4eb-ac2c45052bd4","stop":1750175957748},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175957752,"name":"page.goto(/login/registration)","uuid":"dbf07ee2-7b73-41ef-a3d9-6c1b07c3b2a6","stop":1750175961232},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175961236,"name":"locator.fill(Иван)","uuid":"4075fc2c-0b99-497c-ace3-47ec5c87dfcb","stop":1750175961885},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175961886,"name":"locator.fill(Тестов)","uuid":"572e4e0f-757f-48fe-8a53-4d363ab591e3","stop":1750175962677},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175962679,"name":"locator.fill(Александрович)","uuid":"26a9b7b2-0cfd-4171-90e6-90519a3015ec","stop":1750175963223},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175963225,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"deed72c4-8389-427d-93d2-0ce3e6c05fa9","stop":1750175963726},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175963727,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"a13062ca-9d10-4409-a8a2-eae313a347b3","stop":1750175965099},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175965101,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"f58babe1-88e9-4493-9f25-59546c392056","stop":1750175966083},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175966084,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"25f0f7f0-740c-4ee5-98a6-8ca679ff9c02","stop":1750175968947},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175968949,"name":"locator.fill(Преподаватель)","uuid":"4df79cbb-334c-4d9c-b8c5-050c259d6793","stop":1750175969823},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175969825,"name":"locator.fill(ЮФУ)","uuid":"68484778-27fe-493d-811a-2458c7a22c4e","stop":1750175970986},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175970987,"name":"locator.fill(autotest29704@example.com)","uuid":"907ddadd-fe4c-410f-b813-d27825edf942","stop":1750175972199},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175972200,"name":"locator.fill(+7987029704)","uuid":"4fc49ecf-efd3-45b8-9ad8-8134558e4496","stop":1750175973624},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175973625,"name":"locator.fill(!Test123)","uuid":"790d4832-a636-4dac-a636-82b5705eb8c6","stop":1750175974660},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175974661,"name":"locator.fill(!Test123)","uuid":"0e80916c-96ee-41d5-9092-3f4161664de2","stop":1750175975824},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175975826,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"6a60f49c-751d-46a0-8d03-bdf0d80b469c","stop":1750175979494},{"status":"failed","statusDetails":{"message":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n","trace":"Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)\n\nLocator: locator(':root')\nExpected pattern: /\\/login\\/confirmLogin/\nReceived string: \"https://ssas.dev.rdcenter.ru/login/registration\"\nCall log:\n - expect.toHaveURL with timeout 5000ms\n - waiting for locator(':root')\n 9 × locator resolved to …\n - unexpected value \"https://ssas.dev.rdcenter.ru/login/registration\"\n\n at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24"},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750175979500,"name":"expect.toHaveURL","uuid":"7cc46bba-3c9a-4330-8ee9-3c862aab946c","stop":1750176008894},{"statusDetails":{},"stage":"finished","steps":[],"attachments":[{"name":"_error-context-0","source":"1280c5d2-cdb5-4417-9afc-c0e381650135-attachment.md","type":"text/markdown"}],"parameters":[],"start":1750176009161,"name":"_error-context-0","stop":1750176009161},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176008896,"uuid":"beb2420e-f405-4c5a-a3c6-9bb58e7aac67","stop":1750176008897},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176008898,"uuid":"c468b8e9-6079-4e71-8bf7-8e9de956dee5","stop":1750176008898}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750176008895,"uuid":"a564ba2e-e931-47e4-94ef-2eb31e43e398","stop":1750176008956}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-52998-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750175955750,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750176008146} \ No newline at end of file diff --git a/allure-results/cdf9eb94-978d-41ca-ba49-b196596eb4e1-attachment.md b/allure-results/cdf9eb94-978d-41ca-ba49-b196596eb4e1-attachment.md new file mode 100644 index 0000000..37581c8 --- /dev/null +++ b/allure-results/cdf9eb94-978d-41ca-ba49-b196596eb4e1-attachment.md @@ -0,0 +1,59 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: browserContext._wrapApiCall: Test ended. +Browser logs: + + /Users/vladsmykov/Library/Caches/ms-playwright/chromium-1169/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DeferRendererTasksAfterInput,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,ImprovedCookieControls,LazyFrameLoading,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --enable-use-zoom-for-dsf=false --no-sandbox --user-data-dir=/var/folders/lg/h2gsyjw52lg9sl4rjvlxq91w0000gn/T/playwright_chromiumdev_profile-ebxZKI --remote-debugging-pipe --no-startup-window + pid=53578 +[pid=53578][err] 2025-06-17 19:09:43.952 Chromium[53578:11906463] +[IMKClient subclass]: chose IMKClient_Modern +[pid=53578][err] 2025-06-17 19:09:43.953 Chromium[53578:11906463] +[IMKInputSession subclass]: chose IMKInputSession_Modern +[pid=53578] +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | +> 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + | ^ Error: browserContext._wrapApiCall: Test ended. + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+79${randomSuffix.toString().padStart(9, '0')}`; + 14 | + 15 | await registerPage.register({ + 16 | name: 'Иван', + 17 | surname: 'Тестов', + 18 | patronymic: 'Александрович', + 19 | academicTitle: 'Доцент', + 20 | degree: 'Кандидат наук', + 21 | position: 'Преподаватель', + 22 | organization: 'ЮФУ', + 23 | email: uniqueEmail, + 24 | phone: uniquePhone, + 25 | password: '!Test123456', + 26 | confirmPassword: '!Test123456' + 27 | }); + 28 | + 29 | // Проверяем редирект на страницу подтверждения кода + 30 | await expect(page).toHaveURL(/\/login\/confirmLogin/); + 31 | await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + 32 | + 33 | }); + 34 | + 35 | }); + 36 | +``` \ No newline at end of file diff --git a/allure-results/d3654a55-f6ec-4399-84f4-fab74a967f99-attachment.md b/allure-results/d3654a55-f6ec-4399-84f4-fab74a967f99-attachment.md new file mode 100644 index 0000000..ec769a6 --- /dev/null +++ b/allure-results/d3654a55-f6ec-4399-84f4-fab74a967f99-attachment.md @@ -0,0 +1,147 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: locator.fill: Target page, context or browser has been closed +Call log: + - waiting for getByPlaceholder('Учёное звание*') + - locator resolved to + - fill("Доцент") + - attempting fill action + 2 × waiting for element to be visible, enabled and editable + - element is not editable + - retrying fill action + - waiting 20ms + 2 × waiting for element to be visible, enabled and editable + - element is not editable + - retrying fill action + - waiting 100ms + 128 × waiting for element to be visible, enabled and editable + - element is not editable + - retrying fill action + - waiting 500ms + + at RegisterPage.register (/Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/page-objects/RegisterPage.ts:100:35) + at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:15:5 +``` + +# Test source + +```ts + 1 | import { Page, Locator } from '@playwright/test'; + 2 | + 3 | export class RegisterPage { + 4 | readonly page: Page; + 5 | + 6 | // Поля ввода + 7 | readonly nameInput: Locator; + 8 | readonly surnameInput: Locator; + 9 | readonly patronymicInput: Locator; + 10 | readonly academicTitleInput: Locator; + 11 | readonly degreeInput: Locator; + 12 | readonly positionInput: Locator; + 13 | readonly organizationInput: Locator; + 14 | readonly emailInput: Locator; + 15 | readonly phoneInput: Locator; + 16 | readonly passwordInput: Locator; + 17 | readonly confirmPasswordInput: Locator; + 18 | + 19 | // Глазики + 20 | readonly passwordToggle: Locator; + 21 | readonly confirmPasswordToggle: Locator; + 22 | + 23 | // Кнопка регистрации + 24 | readonly submitButton: Locator; + 25 | + 26 | // Ссылка "Авторизируйтесь" + 27 | readonly loginLink: Locator; + 28 | + 29 | // Ошибки валидации + 30 | readonly requiredFieldErrors: Locator; + 31 | readonly nameError: Locator; + 32 | readonly surnameError: Locator; + 33 | readonly positionError: Locator; + 34 | readonly emailFormatError: Locator; + 35 | readonly passwordLengthError: Locator; + 36 | readonly confirmPasswordRequiredError: Locator; + 37 | + 38 | // Модалки + 39 | readonly duplicateUserModal: Locator; + 40 | readonly invalidOrgModal: Locator; + 41 | + 42 | constructor(page: Page) { + 43 | this.page = page; + 44 | + 45 | // Инпуты + 46 | this.nameInput = page.getByPlaceholder('Имя*'); + 47 | this.surnameInput = page.getByPlaceholder('Фамилия*'); + 48 | this.patronymicInput = page.getByPlaceholder('Отчество'); + 49 | this.academicTitleInput = page.getByPlaceholder('Учёное звание*'); + 50 | this.degreeInput = page.getByPlaceholder('Учёная степень*'); + 51 | this.positionInput = page.getByPlaceholder('Должность'); + 52 | this.organizationInput = page.getByPlaceholder('Организация*'); + 53 | this.emailInput = page.getByPlaceholder('Email (логин)*'); + 54 | this.phoneInput = page.getByPlaceholder('Номер телефона*'); + 55 | this.passwordInput = page.getByPlaceholder('Придумайте пароль*'); + 56 | this.confirmPasswordInput = page.getByPlaceholder('Повторите пароль*'); + 57 | + 58 | // Глазики + 59 | this.passwordToggle = page.locator('input[name="password"] + img'); + 60 | this.confirmPasswordToggle = page.locator('input[name="confirmPassword"] + img'); + 61 | + 62 | // Кнопки + 63 | this.submitButton = page.getByRole('button', { name: 'Зарегистрироваться' }); + 64 | this.loginLink = page.getByText('Авторизируйтесь'); + 65 | + 66 | // Ошибки + 67 | this.requiredFieldErrors = page.locator('div[name="error"]', { hasText: 'Поле обязательно для заполнения' }); + 68 | this.nameError = page.getByText('Некорректное имя'); + 69 | this.surnameError = page.getByText('Некорректная фамилия'); + 70 | this.positionError = page.getByText('Не более 200 символов!'); + 71 | this.emailFormatError = page.getByText('Некорректный Email'); + 72 | this.passwordLengthError = page.getByText('Не менее 8 символов'); + 73 | this.confirmPasswordRequiredError = page.getByText('Поле обязательно для заполнения'); + 74 | + 75 | // Модальные окна + 76 | this.duplicateUserModal = page.getByText('Пользователь с таким email или телефоном уже зарегистрирован!'); + 77 | this.invalidOrgModal = page.getByText('Некорректное название организации!'); + 78 | } + 79 | + 80 | async goto() { + 81 | await this.page.goto('/login/registration'); + 82 | } + 83 | + 84 | async register(data: { + 85 | name: string, + 86 | surname: string, + 87 | patronymic?: string, + 88 | academicTitle: string, + 89 | degree: string, + 90 | position?: string, + 91 | organization: string, + 92 | email: string, + 93 | phone: string, + 94 | password: string, + 95 | confirmPassword: string + 96 | }) { + 97 | await this.nameInput.fill(data.name); + 98 | await this.surnameInput.fill(data.surname); + 99 | if (data.patronymic) await this.patronymicInput.fill(data.patronymic); +> 100 | await this.academicTitleInput.fill(data.academicTitle); + | ^ Error: locator.fill: Target page, context or browser has been closed + 101 | await this.degreeInput.fill(data.degree); + 102 | if (data.position) await this.positionInput.fill(data.position); + 103 | await this.organizationInput.fill(data.organization); + 104 | await this.emailInput.fill(data.email); + 105 | await this.phoneInput.fill(data.phone); + 106 | await this.passwordInput.fill(data.password); + 107 | await this.confirmPasswordInput.fill(data.confirmPassword); + 108 | await this.submitButton.click(); + 109 | } + 110 | } + 111 | +``` \ No newline at end of file diff --git a/allure-results/d5819215-b673-4324-a131-c544667258de-attachment.md b/allure-results/d5819215-b673-4324-a131-c544667258de-attachment.md new file mode 100644 index 0000000..cefb30e --- /dev/null +++ b/allure-results/d5819215-b673-4324-a131-c544667258de-attachment.md @@ -0,0 +1,61 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: expect(locator).toHaveURL(expected) + +Locator: locator(':root') +Expected pattern: /\/login\/confirmLogin/ +Received string: "" +Call log: + - expect.toHaveURL with timeout 5000ms + - waiting for locator(':root') + + at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24 +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | + 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+79${randomSuffix.toString().padStart(9, '0')}`; + 14 | + 15 | await registerPage.register({ + 16 | name: 'Иван', + 17 | surname: 'Тестов', + 18 | patronymic: 'Александрович', + 19 | academicTitle: 'Доцент', + 20 | degree: 'Кандидат наук', + 21 | position: 'Преподаватель', + 22 | organization: 'ЮФУ', + 23 | email: uniqueEmail, + 24 | phone: uniquePhone, + 25 | password: '!Test123456', + 26 | confirmPassword: '!Test123456' + 27 | }); + 28 | + 29 | // Проверяем редирект на страницу подтверждения кода +> 30 | await expect(page).toHaveURL(/\/login\/confirmLogin/); + | ^ Error: expect(locator).toHaveURL(expected) + 31 | await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + 32 | + 33 | }); + 34 | + 35 | }); + 36 | +``` \ No newline at end of file diff --git a/allure-results/dc2cf3b3-cf5e-4625-a2f4-42b63b87a069-attachment.md b/allure-results/dc2cf3b3-cf5e-4625-a2f4-42b63b87a069-attachment.md new file mode 100644 index 0000000..27ffd3f --- /dev/null +++ b/allure-results/dc2cf3b3-cf5e-4625-a2f4-42b63b87a069-attachment.md @@ -0,0 +1,137 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + +Locator: locator(':root') +Expected pattern: /\/login\/confirmLogin/ +Received string: "https://ssas.dev.rdcenter.ru/login/registration" +Call log: + - expect.toHaveURL with timeout 5000ms + - waiting for locator(':root') + 9 × locator resolved to … + - unexpected value "https://ssas.dev.rdcenter.ru/login/registration" + + at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24 +``` + +# Page snapshot + +```yaml +- main: + - main: + - button + - button "Скрыть Close": + - text: Скрыть + - img "Close" + - list: + - listitem: + - text: Главная + - img "Arrow" + - listitem: + - text: Автору + - img "Arrow" + - listitem: + - text: Новости + - img "Arrow" + - listitem: + - text: Участники + - img "Arrow" + - listitem: + - text: Оргкомитет + - img "Arrow" + - img "Logo" + - paragraph: Добро пожаловать + - paragraph: Зарегистрируйтесь, чтобы начать работу. + - textbox "Имя*": Иван + - text: Имя* + - textbox "Фамилия*": Тестов + - text: Фамилия* + - textbox "Отчество": Александрович + - text: Отчество + - textbox "Учёное звание*": Доцент + - img "img" + - text: Учёное звание* + - textbox "Учёная степень*": Кандидат наук + - img "img" + - text: Учёная степень* + - textbox "Должность": Преподаватель + - text: Должность + - textbox "Организация*": ЮФУ + - text: Организация* + - textbox "Email (логин)*": autotest30703@example.com + - text: Email (логин)* + - textbox "Номер телефона*": +7 (987) 030-70-3 + - text: Некорректный номер + - img "!" + - img "показать пароль" + - textbox "Придумайте пароль*": "!Test123" + - text: Придумайте пароль* + - img "показать пароль" + - textbox "Повторите пароль*": "!Test123" + - text: Повторите пароль* + - paragraph: ИЛИ + - button "Sfedu Logo Войти через аккаунт @sfedu": + - img "Sfedu Logo" + - text: Войти через аккаунт @sfedu + - button "Зарегистрироваться" + - paragraph: Уже есть аккаунт? + - paragraph: Авторизируйтесь + - paragraph: Всероссийская научная конференция "Системный синтез и прикладная синергетика" + - paragraph + - paragraph: "Напишите нам:" + - paragraph: + - text: "e-mail:" + - link "ssas@ictis.sfedu.ru": + - /url: mailto:ssas@ictis.sfedu.ru + - text: Сайт разработан Центром исследований и разработки ИКТИБ + - link "Ознакомиться с руководством пользователя": + - /url: /static/media/user_manual.f1df94e2c5143919fb0d.pdf +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | + 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+7987${randomSuffix.toString().padStart(6, '0')}`; + 14 | + 15 | await registerPage.register({ + 16 | name: 'Иван', + 17 | surname: 'Тестов', + 18 | patronymic: 'Александрович', + 19 | academicTitle: 'Доцент', + 20 | degree: 'Кандидат наук', + 21 | position: 'Преподаватель', + 22 | organization: 'ЮФУ', + 23 | email: uniqueEmail, + 24 | phone: uniquePhone, + 25 | password: '!Test123', + 26 | confirmPassword: '!Test123' + 27 | }); + 28 | + 29 | // Проверяем редирект на страницу подтверждения кода +> 30 | await expect(page).toHaveURL(/\/login\/confirmLogin/); + | ^ Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + 31 | await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + 32 | + 33 | }); + 34 | + 35 | }); + 36 | +``` \ No newline at end of file diff --git a/allure-results/dc6a8cb9-f3ca-4a4f-b1de-81681e3ad6b6-attachment.md b/allure-results/dc6a8cb9-f3ca-4a4f-b1de-81681e3ad6b6-attachment.md new file mode 100644 index 0000000..cfbbaa7 --- /dev/null +++ b/allure-results/dc6a8cb9-f3ca-4a4f-b1de-81681e3ad6b6-attachment.md @@ -0,0 +1,137 @@ +# Test info + +- Name: Позитивные сценарии регистрации >> Успешная регистрация нового пользователя +- Location: /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:6:7 + +# Error details + +``` +Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + +Locator: locator(':root') +Expected pattern: /\/login\/confirmLogin/ +Received string: "https://ssas.dev.rdcenter.ru/login/registration" +Call log: + - expect.toHaveURL with timeout 5000ms + - waiting for locator(':root') + 9 × locator resolved to … + - unexpected value "https://ssas.dev.rdcenter.ru/login/registration" + + at /Users/vladsmykov/Desktop/Work/AUTOTESTS/CCPC_playwright/tests/ui/registration/register.spec.ts:30:24 +``` + +# Page snapshot + +```yaml +- main: + - main: + - button + - button "Скрыть Close": + - text: Скрыть + - img "Close" + - list: + - listitem: + - text: Главная + - img "Arrow" + - listitem: + - text: Автору + - img "Arrow" + - listitem: + - text: Новости + - img "Arrow" + - listitem: + - text: Участники + - img "Arrow" + - listitem: + - text: Оргкомитет + - img "Arrow" + - img "Logo" + - paragraph: Добро пожаловать + - paragraph: Зарегистрируйтесь, чтобы начать работу. + - textbox "Имя*": Иван + - text: Имя* + - textbox "Фамилия*": Тестов + - text: Фамилия* + - textbox "Отчество": Александрович + - text: Отчество + - textbox "Учёное звание*": Доцент + - img "img" + - text: Учёное звание* + - textbox "Учёная степень*": Кандидат наук + - img "img" + - text: Учёная степень* + - textbox "Должность": Преподаватель + - text: Должность + - textbox "Организация*": ЮФУ + - text: Организация* + - textbox "Email (логин)*": autotest70036@example.com + - text: Email (логин)* + - textbox "Номер телефона*": +7 (987) 070-03-6 + - text: Некорректный номер + - img "!" + - img "показать пароль" + - textbox "Придумайте пароль*": "!Test123" + - text: Придумайте пароль* + - img "показать пароль" + - textbox "Повторите пароль*": "!Test123" + - text: Повторите пароль* + - paragraph: ИЛИ + - button "Sfedu Logo Войти через аккаунт @sfedu": + - img "Sfedu Logo" + - text: Войти через аккаунт @sfedu + - button "Зарегистрироваться" + - paragraph: Уже есть аккаунт? + - paragraph: Авторизируйтесь + - paragraph: Всероссийская научная конференция "Системный синтез и прикладная синергетика" + - paragraph + - paragraph: "Напишите нам:" + - paragraph: + - text: "e-mail:" + - link "ssas@ictis.sfedu.ru": + - /url: mailto:ssas@ictis.sfedu.ru + - text: Сайт разработан Центром исследований и разработки ИКТИБ + - link "Ознакомиться с руководством пользователя": + - /url: /static/media/user_manual.f1df94e2c5143919fb0d.pdf +``` + +# Test source + +```ts + 1 | import { test, expect } from '@playwright/test'; + 2 | import { RegisterPage } from '../../../page-objects/RegisterPage'; + 3 | + 4 | test.describe('Позитивные сценарии регистрации', () => { + 5 | + 6 | test('Успешная регистрация нового пользователя', async ({ page }) => { + 7 | const registerPage = new RegisterPage(page); + 8 | await registerPage.goto(); + 9 | + 10 | // Генерация уникального email и телефона + 11 | const randomSuffix = Math.floor(Math.random() * 100000); + 12 | const uniqueEmail = `autotest${randomSuffix}@example.com`; + 13 | const uniquePhone = `+7987${randomSuffix.toString().padStart(6, '0')}`; + 14 | + 15 | await registerPage.register({ + 16 | name: 'Иван', + 17 | surname: 'Тестов', + 18 | patronymic: 'Александрович', + 19 | academicTitle: 'Доцент', + 20 | degree: 'Кандидат наук', + 21 | position: 'Преподаватель', + 22 | organization: 'ЮФУ', + 23 | email: uniqueEmail, + 24 | phone: uniquePhone, + 25 | password: '!Test123', + 26 | confirmPassword: '!Test123' + 27 | }); + 28 | + 29 | // Проверяем редирект на страницу подтверждения кода +> 30 | await expect(page).toHaveURL(/\/login\/confirmLogin/); + | ^ Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected) + 31 | await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + 32 | + 33 | }); + 34 | + 35 | }); + 36 | +``` \ No newline at end of file diff --git a/allure-results/e193a2db-abad-4ef6-8bc2-f4caf89a25c8-result.json b/allure-results/e193a2db-abad-4ef6-8bc2-f4caf89a25c8-result.json new file mode 100644 index 0000000..44bea6d --- /dev/null +++ b/allure-results/e193a2db-abad-4ef6-8bc2-f4caf89a25c8-result.json @@ -0,0 +1 @@ +{"uuid":"e193a2db-abad-4ef6-8bc2-f4caf89a25c8","name":"Успешная регистрация нового пользователя","historyId":"3562648cd3231e14b42a7151c17c62aa:5bd835b0d6b1d4ada3b9f0db936e82c8","status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserType.launch","start":1750176656780,"uuid":"93bd55a3-492b-4086-8ebe-3ac85de67693","stop":1750176657262}],"attachments":[],"parameters":[],"name":"fixture: browser","start":1750176656779,"uuid":"8a925552-6810-4040-a487-39bafb080514","stop":1750176657262},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browser.newContext","start":1750176657263,"uuid":"2f1e50c6-7d94-4d8d-9246-c2126c62d57e","stop":1750176657867}],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176657262,"uuid":"35c8bcd1-18ee-4d12-83fb-153722431c9d","stop":1750176657870},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"browserContext.newPage","start":1750176657871,"uuid":"3f7b43f7-53e2-49bd-bed5-e0c24d5d563e","stop":1750176658226}],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176657871,"uuid":"d0a3efc0-74b9-4bc1-9366-7daeea943550","stop":1750176658226}],"attachments":[],"parameters":[],"name":"Before Hooks","start":1750176656776,"uuid":"f230da4b-1242-4a85-bc4f-ef35c8a3276d","stop":1750176658226},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176658229,"name":"page.goto(/login/registration)","uuid":"90387fcd-647e-470c-bb21-1e2218c0cf89","stop":1750176666355},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176666357,"name":"locator.fill(Иван)","uuid":"73c1719a-094b-4f8c-8561-2842f82e5b53","stop":1750176670425},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176670427,"name":"locator.fill(Тестов)","uuid":"e35e42d8-14c1-41bd-af87-748d7f616a16","stop":1750176671196},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176671197,"name":"locator.fill(Александрович)","uuid":"f3114e4e-2fec-4dbf-8549-d33996330651","stop":1750176671805},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176671806,"name":"locator.getByPlaceholder('Учёное звание*').click","uuid":"1bd76e30-29fb-4b8e-99e7-8f73f848b849","stop":1750176672370},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176672371,"name":"locator.click(li >> internal:has-text=\"Доцент\"i)","uuid":"11558848-d96a-41d8-80dd-ce4dc83c7fdb","stop":1750176673567},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176673569,"name":"locator.getByPlaceholder('Учёная степень*').click","uuid":"15c3cff4-183e-4762-b987-d523be6334b0","stop":1750176674126},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176674127,"name":"locator.click(li >> internal:has-text=\"Кандидат наук\"i)","uuid":"e64994ea-4405-4a61-99bf-03064a1f70a8","stop":1750176675653},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176675654,"name":"locator.fill(Преподаватель)","uuid":"a5e2dff0-dd2a-498c-9fc0-7fe656f8f4c7","stop":1750176676311},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176676313,"name":"locator.fill(ЮФУ)","uuid":"e709c50b-9418-4000-9a4b-f430939653a8","stop":1750176676859},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176676860,"name":"locator.fill(autotest66693@example.com)","uuid":"4868e39e-9cf6-4a09-8ec7-9ffb1a22def4","stop":1750176677492},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176677493,"name":"locator.fill(+79000066693)","uuid":"b763491e-c34c-416e-8942-ddb7ec6c173b","stop":1750176678376},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176678377,"name":"locator.fill(!Test123456)","uuid":"11ab7b42-c43e-47a8-9370-3d57fc6114c7","stop":1750176679918},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176679921,"name":"locator.fill(!Test123456)","uuid":"0399bb32-08d5-48c0-92cb-e931e84de792","stop":1750176681160},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176681162,"name":"locator.getByRole('button', { name: 'Зарегистрироваться' }).click","uuid":"8c7759fe-8270-4ddc-a9a7-76ed46af896c","stop":1750176682384},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176682387,"name":"expect.toHaveURL","uuid":"02a73728-09e0-4251-bf59-24f0bb71b53c","stop":1750176684977},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"start":1750176684978,"name":"expect.toBeVisible","uuid":"e5895a4c-4338-4a5b-bbc0-9cc2fe3c10c1","stop":1750176689275},{"status":"passed","statusDetails":{},"stage":"finished","steps":[{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: page","start":1750176689276,"uuid":"be61d56d-820f-4972-b552-ef8fb811537c","stop":1750176689276},{"status":"passed","statusDetails":{},"stage":"finished","steps":[],"attachments":[],"parameters":[],"name":"fixture: context","start":1750176689277,"uuid":"c80ccc78-3b60-493b-b64b-acbb54b45316","stop":1750176689277}],"attachments":[],"parameters":[],"name":"After Hooks","start":1750176689275,"uuid":"a10f63c6-5ea1-4afd-aa19-872850b69d8c","stop":1750176689311}],"attachments":[],"parameters":[{"name":"Project","value":"chromium"}],"labels":[{"name":"language","value":"javascript"},{"name":"framework","value":"playwright"},{"name":"package","value":"ui.registration.register.spec.ts"},{"name":"titlePath","value":" > chromium > ui/registration/register.spec.ts > Позитивные сценарии регистрации"},{"name":"host","value":"MacBook-Air-Vlad.local"},{"name":"thread","value":"pid-53790-worker-0"},{"name":"parentSuite","value":"chromium"},{"name":"suite","value":"ui/registration/register.spec.ts"},{"name":"subSuite","value":"Позитивные сценарии регистрации"}],"links":[],"start":1750176656779,"testCaseId":"3562648cd3231e14b42a7151c17c62aa","fullName":"ui/registration/register.spec.ts:6:7","stop":1750176688826} \ No newline at end of file diff --git a/page-objects/RegisterPage.ts b/page-objects/RegisterPage.ts new file mode 100644 index 0000000..05685d3 --- /dev/null +++ b/page-objects/RegisterPage.ts @@ -0,0 +1,112 @@ +import { Page, Locator } from '@playwright/test'; + +export class RegisterPage { + readonly page: Page; + + // Поля ввода + readonly nameInput: Locator; + readonly surnameInput: Locator; + readonly patronymicInput: Locator; + readonly academicTitleInput: Locator; + readonly degreeInput: Locator; + readonly positionInput: Locator; + readonly organizationInput: Locator; + readonly emailInput: Locator; + readonly phoneInput: Locator; + readonly passwordInput: Locator; + readonly confirmPasswordInput: Locator; + + // Глазики + readonly passwordToggle: Locator; + readonly confirmPasswordToggle: Locator; + + // Кнопка регистрации + readonly submitButton: Locator; + + // Ссылка "Авторизируйтесь" + readonly loginLink: Locator; + + // Ошибки валидации + readonly requiredFieldErrors: Locator; + readonly nameError: Locator; + readonly surnameError: Locator; + readonly positionError: Locator; + readonly emailFormatError: Locator; + readonly passwordLengthError: Locator; + readonly confirmPasswordRequiredError: Locator; + + // Модалки + readonly duplicateUserModal: Locator; + readonly invalidOrgModal: Locator; + + constructor(page: Page) { + this.page = page; + + // Инпуты + this.nameInput = page.getByPlaceholder('Имя*'); + this.surnameInput = page.getByPlaceholder('Фамилия*'); + this.patronymicInput = page.getByPlaceholder('Отчество'); + this.academicTitleInput = page.getByPlaceholder('Учёное звание*'); + this.degreeInput = page.getByPlaceholder('Учёная степень*'); + this.positionInput = page.getByPlaceholder('Должность'); + this.organizationInput = page.getByPlaceholder('Организация*'); + this.emailInput = page.getByPlaceholder('Email (логин)*'); + this.phoneInput = page.getByPlaceholder('Номер телефона*'); + this.passwordInput = page.getByPlaceholder('Придумайте пароль*'); + this.confirmPasswordInput = page.getByPlaceholder('Повторите пароль*'); + + // Глазики + this.passwordToggle = page.locator('input[name="password"] + img'); + this.confirmPasswordToggle = page.locator('input[name="confirmPassword"] + img'); + + // Кнопки + this.submitButton = page.getByRole('button', { name: 'Зарегистрироваться' }); + this.loginLink = page.getByText('Авторизируйтесь'); + + // Ошибки + this.requiredFieldErrors = page.locator('div[name="error"]', { hasText: 'Поле обязательно для заполнения' }); + this.nameError = page.getByText('Некорректное имя'); + this.surnameError = page.getByText('Некорректная фамилия'); + this.positionError = page.getByText('Не более 200 символов!'); + this.emailFormatError = page.getByText('Некорректный Email'); + this.passwordLengthError = page.getByText('Не менее 8 символов'); + this.confirmPasswordRequiredError = page.getByText('Поле обязательно для заполнения'); + + // Модальные окна + this.duplicateUserModal = page.getByText('Пользователь с таким email или телефоном уже зарегистрирован!'); + this.invalidOrgModal = page.getByText('Некорректное название организации!'); + } + + async goto() { + await this.page.goto('/login/registration'); + } + + async register(data: { + name: string, + surname: string, + patronymic?: string, + academicTitle: string, + degree: string, + position?: string, + organization: string, + email: string, + phone: string, + password: string, + confirmPassword: string + }) { + await this.nameInput.fill(data.name); + await this.surnameInput.fill(data.surname); + if (data.patronymic) await this.patronymicInput.fill(data.patronymic); + await this.academicTitleInput.click(); + await this.page.locator('li', { hasText: data.academicTitle }).click(); + await this.degreeInput.click(); + await this.page.locator('li', { hasText: data.degree }).click(); + if (data.position) await this.positionInput.fill(data.position); + await this.organizationInput.fill(data.organization); + await this.emailInput.fill(data.email); + await this.phoneInput.fill(data.phone); + await this.passwordInput.fill(data.password); + await this.confirmPasswordInput.fill(data.confirmPassword); + await this.submitButton.click(); + } +} diff --git a/tests/ui/registration/register.spec.ts b/tests/ui/registration/register.spec.ts new file mode 100644 index 0000000..6e6958b --- /dev/null +++ b/tests/ui/registration/register.spec.ts @@ -0,0 +1,35 @@ +import { test, expect } from '@playwright/test'; +import { RegisterPage } from '../../../page-objects/RegisterPage'; + +test.describe('Позитивные сценарии регистрации', () => { + + test('Успешная регистрация нового пользователя', async ({ page }) => { + const registerPage = new RegisterPage(page); + await registerPage.goto(); + + // Генерация уникального email и телефона + const randomSuffix = Math.floor(Math.random() * 100000); + const uniqueEmail = `autotest${randomSuffix}@example.com`; + const uniquePhone = `+79${randomSuffix.toString().padStart(9, '0')}`; + + await registerPage.register({ + name: 'Иван', + surname: 'Тестов', + patronymic: 'Александрович', + academicTitle: 'Доцент', + degree: 'Кандидат наук', + position: 'Преподаватель', + organization: 'ЮФУ', + email: uniqueEmail, + phone: uniquePhone, + password: '!Test123456', + confirmPassword: '!Test123456' + }); + + // Проверяем редирект на страницу подтверждения кода + await expect(page).toHaveURL(/\/login\/confirmLogin/); + await expect(page.locator('text=Подтвердите адрес электронной почты')).toBeVisible(); + + }); + +});