cypress: fixed cypress AUT failure part 4 (#13840)

This commit is contained in:
Shailesh Parmar 2023-11-04 12:37:54 +05:30 committed by GitHub
parent 9d238d142a
commit 6dc630b685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -439,7 +439,7 @@ export const HTTP_CONFIG_SOURCE = {
export const DBT = {
classification: 'dbtTags',
tagName: 'model_tag_one',
tagName: 'model_tag_two',
dbtQuery: 'select * from "dev"."dbt_jaffle"."stg_orders"',
dbtLineageNodeLabel: 'customers',
dbtLineageNode: 'dev.dbt_jaffle.stg_customers',

View File

@ -133,24 +133,28 @@ describe('Restore entity functionality should work properly', () => {
verifyResponseStatusCode('@nonDeletedTables', 200);
cy.get('[data-testid="show-deleted"]').click();
verifyResponseStatusCode('@showDeletedTables', 200);
cy.get('[data-testid="entity-header-display-name"]')
.contains(ENTITY_TABLE.displayName)
.click();
cy.get('[data-testid="deleted-badge"]').should('be.visible');
interceptURL(
'GET',
'/api/v1/databaseSchemas/name/*?fields=*&include=all',
'getDatabaseSchemas'
);
cy.get('[data-testid="breadcrumb"]')
.scrollIntoView()
.contains(ENTITY_TABLE.schemaName)
.click();
verifyResponseStatusCode('@getDatabaseSchemas', 200);
interceptURL(
'GET',
'/api/v1/tables?databaseSchema=*&include=deleted',
'queryDeletedTables'
);
cy.get('[data-testid="show-deleted"]').scrollIntoView();
cy.get('[data-testid="show-deleted"]').click({ waitForAnimations: true });
verifyResponseStatusCode('@queryDeletedTables', 200);