# 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 | ```