mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-18 20:30:48 +00:00
Chore(UI): Fix the AUT failures (#23729)
* Fix the AUT failures * Uncomment the commented config
This commit is contained in:
parent
a018c5e5cf
commit
c6b61f528a
@ -19,7 +19,6 @@ import KafkaIngestionClass from '../../support/entity/ingestion/KafkaIngestionCl
|
|||||||
import MetabaseIngestionClass from '../../support/entity/ingestion/MetabaseIngestionClass';
|
import MetabaseIngestionClass from '../../support/entity/ingestion/MetabaseIngestionClass';
|
||||||
import MlFlowIngestionClass from '../../support/entity/ingestion/MlFlowIngestionClass';
|
import MlFlowIngestionClass from '../../support/entity/ingestion/MlFlowIngestionClass';
|
||||||
import MysqlIngestionClass from '../../support/entity/ingestion/MySqlIngestionClass';
|
import MysqlIngestionClass from '../../support/entity/ingestion/MySqlIngestionClass';
|
||||||
import S3IngestionClass from '../../support/entity/ingestion/S3IngestionClass';
|
|
||||||
import { UserClass } from '../../support/user/UserClass';
|
import { UserClass } from '../../support/user/UserClass';
|
||||||
import { checkAutoPilotStatus } from '../../utils/AutoPilot';
|
import { checkAutoPilotStatus } from '../../utils/AutoPilot';
|
||||||
import {
|
import {
|
||||||
@ -34,7 +33,9 @@ const user = new UserClass();
|
|||||||
|
|
||||||
const services = [
|
const services = [
|
||||||
ApiIngestionClass,
|
ApiIngestionClass,
|
||||||
S3IngestionClass,
|
// Skipping S3 as it is failing intermittently in CI
|
||||||
|
// Remove the comment when fixed: https://github.com/open-metadata/OpenMetadata/issues/23727
|
||||||
|
// S3IngestionClass,
|
||||||
MetabaseIngestionClass,
|
MetabaseIngestionClass,
|
||||||
MysqlIngestionClass,
|
MysqlIngestionClass,
|
||||||
KafkaIngestionClass,
|
KafkaIngestionClass,
|
||||||
|
@ -67,9 +67,12 @@ test.describe('Service form functionality', async () => {
|
|||||||
.getByRole('button', { name: 'OK' })
|
.getByRole('button', { name: 'OK' })
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
await page.waitForSelector('[data-testid="test-connection-modal"]', {
|
await page.waitForSelector(
|
||||||
state: 'hidden',
|
'[data-testid="test-connection-modal"] .ant-modal-mask',
|
||||||
});
|
{
|
||||||
|
state: 'detached',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Fill superset form details - 2
|
// Fill superset form details - 2
|
||||||
await fillSupersetFormDetails({ page, ...supersetFormDetails2 });
|
await fillSupersetFormDetails({ page, ...supersetFormDetails2 });
|
||||||
@ -98,9 +101,12 @@ test.describe('Service form functionality', async () => {
|
|||||||
.getByRole('button', { name: 'OK' })
|
.getByRole('button', { name: 'OK' })
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
await page.waitForSelector('[data-testid="test-connection-modal"]', {
|
await page.waitForSelector(
|
||||||
state: 'hidden',
|
'[data-testid="test-connection-modal"] .ant-modal-mask',
|
||||||
});
|
{
|
||||||
|
state: 'detached',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Fill superset form details - 3
|
// Fill superset form details - 3
|
||||||
await fillSupersetFormDetails({ page, ...supersetFormDetails3 });
|
await fillSupersetFormDetails({ page, ...supersetFormDetails3 });
|
||||||
@ -135,9 +141,12 @@ test.describe('Service form functionality', async () => {
|
|||||||
.getByRole('button', { name: 'OK' })
|
.getByRole('button', { name: 'OK' })
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
await page.waitForSelector('[data-testid="test-connection-modal"]', {
|
await page.waitForSelector(
|
||||||
state: 'hidden',
|
'[data-testid="test-connection-modal"] .ant-modal-mask',
|
||||||
});
|
{
|
||||||
|
state: 'detached',
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Fill superset form details - 4
|
// Fill superset form details - 4
|
||||||
await fillSupersetFormDetails({ page, ...supersetFormDetails4 });
|
await fillSupersetFormDetails({ page, ...supersetFormDetails4 });
|
||||||
|
@ -48,18 +48,10 @@ test.describe('Auto Classification', PLAYWRIGHT_INGESTION_TAG_OBJ, async () => {
|
|||||||
await addAndTriggerAutoClassificationPipeline(page, mysqlService);
|
await addAndTriggerAutoClassificationPipeline(page, mysqlService);
|
||||||
|
|
||||||
// Check if the classification is successful
|
// Check if the classification is successful
|
||||||
const getDatabases = page.waitForResponse(
|
|
||||||
(response) =>
|
|
||||||
response.url().includes('/api/v1/databases?service=') &&
|
|
||||||
response.request().method() === 'GET' &&
|
|
||||||
response.status() === 200
|
|
||||||
);
|
|
||||||
|
|
||||||
// Click on databases tab
|
// Click on databases tab
|
||||||
await page.click('.ant-tabs-nav-list [data-testid="databases"]');
|
await page.click('.ant-tabs-nav-list [data-testid="databases"]');
|
||||||
|
|
||||||
await getDatabases;
|
|
||||||
|
|
||||||
// Click on the database name
|
// Click on the database name
|
||||||
await page.getByTestId('column-name').getByText('default').click();
|
await page.getByTestId('column-name').getByText('default').click();
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ import MlFlowIngestionClass from '../../support/entity/ingestion/MlFlowIngestion
|
|||||||
import MysqlIngestionClass from '../../support/entity/ingestion/MySqlIngestionClass';
|
import MysqlIngestionClass from '../../support/entity/ingestion/MySqlIngestionClass';
|
||||||
import PostgresIngestionClass from '../../support/entity/ingestion/PostgresIngestionClass';
|
import PostgresIngestionClass from '../../support/entity/ingestion/PostgresIngestionClass';
|
||||||
import RedshiftWithDBTIngestionClass from '../../support/entity/ingestion/RedshiftWithDBTIngestionClass';
|
import RedshiftWithDBTIngestionClass from '../../support/entity/ingestion/RedshiftWithDBTIngestionClass';
|
||||||
import S3IngestionClass from '../../support/entity/ingestion/S3IngestionClass';
|
|
||||||
import SnowflakeIngestionClass from '../../support/entity/ingestion/SnowflakeIngestionClass';
|
import SnowflakeIngestionClass from '../../support/entity/ingestion/SnowflakeIngestionClass';
|
||||||
import SupersetIngestionClass from '../../support/entity/ingestion/SupersetIngestionClass';
|
import SupersetIngestionClass from '../../support/entity/ingestion/SupersetIngestionClass';
|
||||||
import { TableClass } from '../../support/entity/TableClass';
|
import { TableClass } from '../../support/entity/TableClass';
|
||||||
@ -38,7 +37,9 @@ import { settingClick, SettingOptionsType } from '../../utils/sidebar';
|
|||||||
const table = new TableClass();
|
const table = new TableClass();
|
||||||
const services = [
|
const services = [
|
||||||
ApiIngestionClass,
|
ApiIngestionClass,
|
||||||
S3IngestionClass,
|
// Skipping S3 as it is failing intermittently in CI
|
||||||
|
// Remove the comment when fixed: https://github.com/open-metadata/OpenMetadata/issues/23727
|
||||||
|
// S3IngestionClass,
|
||||||
MetabaseIngestionClass,
|
MetabaseIngestionClass,
|
||||||
MysqlIngestionClass,
|
MysqlIngestionClass,
|
||||||
BigQueryIngestionClass,
|
BigQueryIngestionClass,
|
||||||
|
@ -131,11 +131,10 @@ class RedshiftWithDBTIngestionClass extends ServiceBaseClass {
|
|||||||
await page.click('[data-menu-id*="dbt"]');
|
await page.click('[data-menu-id*="dbt"]');
|
||||||
|
|
||||||
await page.waitForSelector('#root\\/dbtConfigSource__oneof_select');
|
await page.waitForSelector('#root\\/dbtConfigSource__oneof_select');
|
||||||
await page
|
await page.selectOption(
|
||||||
.getByTestId('select-widget-root/dbtConfigSource__oneof_select')
|
'#root\\/dbtConfigSource__oneof_select',
|
||||||
.getByRole('combobox')
|
'DBT S3 Config'
|
||||||
.click({ force: true });
|
);
|
||||||
await page.click('.ant-select-dropdown:visible [title="DBT S3 Config"]');
|
|
||||||
await page.fill(
|
await page.fill(
|
||||||
'#root\\/dbtConfigSource\\/dbtSecurityConfig\\/awsAccessKeyId',
|
'#root\\/dbtConfigSource\\/dbtSecurityConfig\\/awsAccessKeyId',
|
||||||
process.env.PLAYWRIGHT_S3_STORAGE_ACCESS_KEY_ID ?? ''
|
process.env.PLAYWRIGHT_S3_STORAGE_ACCESS_KEY_ID ?? ''
|
||||||
|
@ -30,17 +30,13 @@ export const fillSupersetFormDetails = async ({
|
|||||||
if (connectionType === 'SupersetApiConnection') {
|
if (connectionType === 'SupersetApiConnection') {
|
||||||
await page
|
await page
|
||||||
.getByTestId('select-widget-root/connection__oneof_select')
|
.getByTestId('select-widget-root/connection__oneof_select')
|
||||||
.getByRole('combobox')
|
.click();
|
||||||
.click({ force: true });
|
|
||||||
await page.click(
|
await page.click(
|
||||||
`.ant-select-dropdown:visible [title="${connectionType}"]`
|
`.ant-select-dropdown:visible [title="${connectionType}"]`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (provider) {
|
if (provider) {
|
||||||
await page
|
await page.getByTestId('select-widget-root/connection/provider').click();
|
||||||
.getByTestId('select-widget-root/connection/provider')
|
|
||||||
.getByRole('combobox')
|
|
||||||
.click({ force: true });
|
|
||||||
await page.click(`.ant-select-dropdown:visible [title="${provider}"]`);
|
await page.click(`.ant-select-dropdown:visible [title="${provider}"]`);
|
||||||
}
|
}
|
||||||
} else if (
|
} else if (
|
||||||
@ -49,8 +45,7 @@ export const fillSupersetFormDetails = async ({
|
|||||||
) {
|
) {
|
||||||
await page
|
await page
|
||||||
.getByTestId('select-widget-root/connection__oneof_select')
|
.getByTestId('select-widget-root/connection__oneof_select')
|
||||||
.getByRole('combobox')
|
.click();
|
||||||
.click({ force: true });
|
|
||||||
await page.click(
|
await page.click(
|
||||||
`.ant-select-dropdown:visible [title="${connectionType}"]`
|
`.ant-select-dropdown:visible [title="${connectionType}"]`
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user