mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-03 06:03:12 +00:00
cypress: fixed service ingestion cypress for test connection (#15989)
* cypress: fixed service ingestion cypress for test connection * remove unwanted wait for get request
This commit is contained in:
parent
2ee0d6f847
commit
14ba83a427
@ -180,7 +180,7 @@ export const testConnection = () => {
|
|||||||
'triggerWorkflow'
|
'triggerWorkflow'
|
||||||
);
|
);
|
||||||
|
|
||||||
interceptURL('GET', '/api/v1/automations/workflows/*', 'getWorkflow');
|
interceptURL('DELETE', '/api/v1/automations/workflows/*', 'deleteWorkflow');
|
||||||
|
|
||||||
cy.get('[data-testid="test-connection-btn"]').should('exist').click();
|
cy.get('[data-testid="test-connection-btn"]').should('exist').click();
|
||||||
|
|
||||||
@ -192,11 +192,16 @@ export const testConnection = () => {
|
|||||||
responseTimeout: 120000,
|
responseTimeout: 120000,
|
||||||
});
|
});
|
||||||
cy.get('[data-testid="test-connection-modal"]').should('exist');
|
cy.get('[data-testid="test-connection-modal"]').should('exist');
|
||||||
|
|
||||||
|
// added extra buffer time as deleteWorkflow API can take up to 2 minute or more to send request
|
||||||
|
verifyResponseStatusCode('@deleteWorkflow', 200, {
|
||||||
|
requestTimeout: 150000,
|
||||||
|
});
|
||||||
cy.get('.ant-modal-footer > .ant-btn-primary')
|
cy.get('.ant-modal-footer > .ant-btn-primary')
|
||||||
.should('exist')
|
.should('exist')
|
||||||
.contains('OK')
|
.contains('OK')
|
||||||
.click();
|
.click();
|
||||||
verifyResponseStatusCode('@getWorkflow', 200);
|
|
||||||
cy.get('[data-testid="messag-text"]').then(($message) => {
|
cy.get('[data-testid="messag-text"]').then(($message) => {
|
||||||
if ($message.text().includes('partially successful')) {
|
if ($message.text().includes('partially successful')) {
|
||||||
cy.contains('Test connection partially successful').should('exist');
|
cy.contains('Test connection partially successful').should('exist');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user