datalens-ui/tests/suites/wizard/common/initialLoad.test.ts
2026-06-24 20:31:05 +05:00

20 lines
748 B
TypeScript

import {Page} from '@playwright/test';
import {RobotChartsWizardUrls} from '../../../utils/constants';
import datalensTest from '../../../utils/playwright/globalTestDefinition';
import QLPage from '../../../page-objects/ql/QLPage';
import {openTestPage} from '../../../utils';
datalensTest.describe('Wizard - chart loading', () => {
datalensTest(
'When trying to switch to Wizard with the ql chart id, a redirect to the QL page occurs',
async ({page}: {page: Page}) => {
await openTestPage(page, RobotChartsWizardUrls.WizardWithSQLId);
await page.waitForURL(`**/ql/**`);
const qlPage = new QLPage({page});
await qlPage.chartkit.waitForSuccessfulRender();
},
);
});