const { test, expect } = require('@playwright/test'); const { login, localized } = require('./helpers'); test('wizard loads and protocol selection updates flow', async ({ page }) => { await login(page); await page.goto('/wizard/'); await expect(page.locator('[data-step-counter]')).toContainText(localized('Step', 'Шаг')); await expect(page.locator('#step-panel-1 .step-panel-title')).toContainText(localized('Choose a protocol', 'Выберите протокол')); await page.getByText(/graphql/i).first().click(); await page.locator('#btn-continue').click(); await expect(page.locator('[data-step-counter]')).toContainText(/2/); await expect(page.locator('#step-panel-2 .step-panel-title')).toContainText(localized('Select upstream', 'Выберите upstream')); });