product: make community rest only
This commit is contained in:
@@ -13,6 +13,8 @@ test('shell and wizard expose stable diagnostics hooks', async ({ page }) => {
|
||||
await page.goto('/wizard/');
|
||||
await expect(page.locator('[data-testid="wizard-protocol-grid"]')).toBeVisible();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-rest"]')).toBeVisible();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-graphql"]')).toBeHidden();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-grpc"]')).toBeHidden();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-websocket"]')).toBeHidden();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-soap"]')).toBeHidden();
|
||||
await expect(page.locator('html')).toHaveAttribute('data-crank-bootstrap-state', 'ready');
|
||||
|
||||
@@ -4,8 +4,8 @@ const { login, localized } = require('./helpers');
|
||||
test('operations page shows demo catalog and filter works', async ({ page }) => {
|
||||
await login(page);
|
||||
await expect(page.locator('.page-heading')).toHaveText(localized('Operations', 'Операции'));
|
||||
await expect(page.locator('tbody tr')).toHaveCount(4);
|
||||
await page.getByPlaceholder(localized('Search operations', 'Поиск операций')).fill('support');
|
||||
await expect(page.locator('tbody tr')).toHaveCount(2);
|
||||
await page.getByPlaceholder(localized('Search operations', 'Поиск операций')).fill('crm');
|
||||
await expect(page.locator('tbody tr')).toHaveCount(1);
|
||||
await expect(page.locator('tbody tr').first()).toContainText(/support_lookup_ticket/i);
|
||||
await expect(page.locator('tbody tr').first()).toContainText(/crm_create_lead/i);
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ test('wizard loads and protocol selection updates flow', async ({ page }) => {
|
||||
await page.goto('/wizard/');
|
||||
await expect(page.locator('[data-step-counter]').first()).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('[data-testid="wizard-protocol-rest"]').click();
|
||||
await page.locator('#btn-continue').click();
|
||||
await expect(page.locator('#step-panel-2 .step-panel-title')).toContainText(localized('Select upstream', 'Выберите upstream'));
|
||||
});
|
||||
@@ -15,13 +15,13 @@ test('community wizard hides premium protocols and explains edition scope', asyn
|
||||
await login(page);
|
||||
await page.goto('/wizard/');
|
||||
await expect(page.locator('[data-testid="wizard-protocol-rest"]')).toBeVisible();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-graphql"]')).toBeVisible();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-grpc"]')).toBeVisible();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-graphql"]')).toBeHidden();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-grpc"]')).toBeHidden();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-websocket"]')).toBeHidden();
|
||||
await expect(page.locator('[data-testid="wizard-protocol-soap"]')).toBeHidden();
|
||||
await expect(page.locator('#wizard-edition-protocol-note')).toContainText(localized('Commercial editions unlock', 'коммерческих редакциях'));
|
||||
|
||||
await page.locator('[data-testid="wizard-protocol-grpc"]').click();
|
||||
await page.locator('[data-testid="wizard-protocol-rest"]').click();
|
||||
await page.locator('#btn-continue').click();
|
||||
await page.locator('#btn-continue').click();
|
||||
await page.locator('#btn-continue').click();
|
||||
|
||||
Reference in New Issue
Block a user