Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
2.2 KiB
JavaScript
Raw Normal View History

/*
* Copyright 2022 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
deleteCreatedService,
goToAddNewServicePage,
mySqlConnectionInput,
testServiceCreationAndIngestion,
updateDescriptionForIngestedTables,
uuid,
} from '../../common/common';
import {
API_SERVICE,
SERVICE_TYPE,
TEAM_ENTITY,
} from '../../constants/constants';
const serviceType = 'Mysql';
const serviceName = `${serviceType}.ct%test-${uuid()}`;
const tableName = TEAM_ENTITY;
const description = `This is ${tableName} description`;
describe('MySQL Ingestion', () => {
beforeEach(() => {
cy.login();
});
it('add and ingest data', () => {
goToAddNewServicePage(SERVICE_TYPE.Database);
const addIngestionInput = () => {
cy.get('#root\\/schemaFilterPattern\\/includes')
✨feat(ui): Enhance markdown with custom rendering (#10903) * chore(ui): Enhance markdown with custom rendering * chore: sync locales * revert: hook changes * fix: styling * chore: rename custom renderer * chore: increase the font size * chore(ui): add support for inline markdown parsing * chore: add custom renderer for links * chore: add comments * chore: add custom renderer for headings * chore : update copy button styling * doc: add postgres doc as example * chore: update postgres example. * chore: resizable layout initial setup * fix: unit test * fix: markdown font size * chore: add resizable panels on edit service page * chore: address feedback * chore: update custom renderer to support heading id * chore: only render the second panel if required. * feat: add support for scroll down to focused field section * chore: add service icon for selected service * chore: minor update * chore: remove side panel text check. * chore: update the heading styling * chore: add resizable panel for add and edit ingestion page * chore: show right panel when adding ingestion * Fix connection config files with new structure * chore: initial commit for generate formFields * chore: add info popover * fix: unit test * chore: generate metadata workflow fields dynamically * chore: generate other workflow fields dynamically * chore: add key and id for form item * chore: add support for fetching the workflow md files * fix: cy tests * fix: workflow form styling * chore: work on styling as per feedback * chore: refactor fields * chore: add custom fields for description. * chore: change description rendering for object and array fields * chore: add support for ingestion field focus * fix: test * fixed failing cypress * fixed failing cypress * fixed issue related to re-render --------- Co-authored-by: Nahuel Verdugo Revigliono <nahuel@getcollate.io> Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>
2023-04-17 19:23:23 +05:30
.scrollIntoView()
.type(`${Cypress.env('mysqlDatabaseSchema')}{enter}`);
};
const viewIngestionInput = () => {
cy.get('.ant-select-selection-item-content')
.scrollIntoView()
.contains(`${Cypress.env('mysqlDatabaseSchema')}`);
};
testServiceCreationAndIngestion({
serviceType,
connectionInput: mySqlConnectionInput,
addIngestionInput,
serviceName,
serviceCategory: SERVICE_TYPE.Database,
viewIngestionInput,
});
});
it('Update table description and verify description after re-run', () => {
updateDescriptionForIngestedTables(
serviceName,
tableName,
description,
SERVICE_TYPE.Database,
'tables'
);
});
it('delete created service', () => {
deleteCreatedService(
SERVICE_TYPE.Database,
serviceName,
API_SERVICE.databaseServices
);
});
});