fix cypress issue for while deleting service (#9416)

This commit is contained in:
Ashish Gupta 2022-12-20 16:16:51 +05:30 committed by GitHub
parent 11e0043bbf
commit 8c250f5f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 16 deletions

View File

@ -281,23 +281,9 @@ export const deleteCreatedService = (typeOfService, service_Name, apiService) =>
cy.get('[data-testid="confirm-button"]').should('be.visible').click();
verifyResponseStatusCode('@deleteService', 200);
//Waiting to check if myData page redirection is proper after deleting service
cy.get('[data-testid="tables"]').should('exist').should('be.visible');
//Closing the toast notification
toastNotification(`${typeOfService} Service deleted successfully!`)
//Checking if the service got deleted successfully
interceptURL('GET', '/api/v1/teams/name/Organization?fields=users,owns,defaultRoles,policies,owner,parents,childrenCount&include=all', 'getSettingsPage')
cy.get('[data-testid="appbar-item-settings"]').should('be.visible').click();
verifyResponseStatusCode('@getSettingsPage', 200)
// Services page
cy.get('[data-testid="settings-left-panel"]')
.contains(typeOfService)
.should('be.visible')
.click();
cy.get(`[data-testid="service-name-${service_Name}"]`).should('not.exist');
};

View File

@ -103,10 +103,10 @@ describe('RedShift Ingestion', () => {
.should('be.visible')
.click();
cy.get('[data-testid="list-item"]')
.contains('Add Dbt Ingestion')
.contains('Add DBT Ingestion')
.click();
//Add DBT ingestion
cy.contains('Add Dbt Ingestion').should('be.visible');
cy.contains('Add DBT Ingestion').should('be.visible');
cy.get('[data-testid="dbt-source"]')
.should('be.visible')
.select('HTTP Config Source');