mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-11 00:11:05 +00:00
cypress: fixed cypress AUT failure part 4 (#13840)
This commit is contained in:
parent
9d238d142a
commit
6dc630b685
@ -439,7 +439,7 @@ export const HTTP_CONFIG_SOURCE = {
|
|||||||
|
|
||||||
export const DBT = {
|
export const DBT = {
|
||||||
classification: 'dbtTags',
|
classification: 'dbtTags',
|
||||||
tagName: 'model_tag_one',
|
tagName: 'model_tag_two',
|
||||||
dbtQuery: 'select * from "dev"."dbt_jaffle"."stg_orders"',
|
dbtQuery: 'select * from "dev"."dbt_jaffle"."stg_orders"',
|
||||||
dbtLineageNodeLabel: 'customers',
|
dbtLineageNodeLabel: 'customers',
|
||||||
dbtLineageNode: 'dev.dbt_jaffle.stg_customers',
|
dbtLineageNode: 'dev.dbt_jaffle.stg_customers',
|
||||||
|
|||||||
@ -133,24 +133,28 @@ describe('Restore entity functionality should work properly', () => {
|
|||||||
verifyResponseStatusCode('@nonDeletedTables', 200);
|
verifyResponseStatusCode('@nonDeletedTables', 200);
|
||||||
cy.get('[data-testid="show-deleted"]').click();
|
cy.get('[data-testid="show-deleted"]').click();
|
||||||
verifyResponseStatusCode('@showDeletedTables', 200);
|
verifyResponseStatusCode('@showDeletedTables', 200);
|
||||||
|
|
||||||
cy.get('[data-testid="entity-header-display-name"]')
|
cy.get('[data-testid="entity-header-display-name"]')
|
||||||
.contains(ENTITY_TABLE.displayName)
|
.contains(ENTITY_TABLE.displayName)
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
cy.get('[data-testid="deleted-badge"]').should('be.visible');
|
cy.get('[data-testid="deleted-badge"]').should('be.visible');
|
||||||
|
interceptURL(
|
||||||
|
'GET',
|
||||||
|
'/api/v1/databaseSchemas/name/*?fields=*&include=all',
|
||||||
|
'getDatabaseSchemas'
|
||||||
|
);
|
||||||
cy.get('[data-testid="breadcrumb"]')
|
cy.get('[data-testid="breadcrumb"]')
|
||||||
.scrollIntoView()
|
.scrollIntoView()
|
||||||
.contains(ENTITY_TABLE.schemaName)
|
.contains(ENTITY_TABLE.schemaName)
|
||||||
.click();
|
.click();
|
||||||
|
verifyResponseStatusCode('@getDatabaseSchemas', 200);
|
||||||
interceptURL(
|
interceptURL(
|
||||||
'GET',
|
'GET',
|
||||||
'/api/v1/tables?databaseSchema=*&include=deleted',
|
'/api/v1/tables?databaseSchema=*&include=deleted',
|
||||||
'queryDeletedTables'
|
'queryDeletedTables'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
cy.get('[data-testid="show-deleted"]').scrollIntoView();
|
||||||
cy.get('[data-testid="show-deleted"]').click({ waitForAnimations: true });
|
cy.get('[data-testid="show-deleted"]').click({ waitForAnimations: true });
|
||||||
|
|
||||||
verifyResponseStatusCode('@queryDeletedTables', 200);
|
verifyResponseStatusCode('@queryDeletedTables', 200);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user