mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-08 23:14:00 +00:00
fix cypress issue for while deleting service (#9416)
This commit is contained in:
parent
11e0043bbf
commit
8c250f5f80
@ -281,23 +281,9 @@ export const deleteCreatedService = (typeOfService, service_Name, apiService) =>
|
|||||||
cy.get('[data-testid="confirm-button"]').should('be.visible').click();
|
cy.get('[data-testid="confirm-button"]').should('be.visible').click();
|
||||||
verifyResponseStatusCode('@deleteService', 200);
|
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
|
//Closing the toast notification
|
||||||
toastNotification(`${typeOfService} Service deleted successfully!`)
|
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');
|
cy.get(`[data-testid="service-name-${service_Name}"]`).should('not.exist');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -103,10 +103,10 @@ describe('RedShift Ingestion', () => {
|
|||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.click();
|
.click();
|
||||||
cy.get('[data-testid="list-item"]')
|
cy.get('[data-testid="list-item"]')
|
||||||
.contains('Add Dbt Ingestion')
|
.contains('Add DBT Ingestion')
|
||||||
.click();
|
.click();
|
||||||
//Add DBT ingestion
|
//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"]')
|
cy.get('[data-testid="dbt-source"]')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.select('HTTP Config Source');
|
.select('HTTP Config Source');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user