Minor: Fix glossary version cypress for AUT (#15114)

* fix glossary version cypress for AUT

* remove the unnecessary deletion in cypress test
This commit is contained in:
Aniket Katkar 2024-02-09 22:06:04 +05:30 committed by GitHub
parent 1ede4d8c10
commit b996f2f5f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 21 deletions

View File

@ -170,27 +170,6 @@ describe('Observability Alert Flow', () => {
cy.getAllLocalStorage().then((storageData) => {
const token = Object.values(storageData)[0].oidcIdToken;
// Delete test case
cy.request({
method: 'DELETE',
url: `/api/v1/dataQuality/testCases/logicalTestCases/${data.testSuite.id}/${data.testCase.id}`,
headers: { Authorization: `Bearer ${token}` },
});
// Delete test suite
cy.request({
method: 'DELETE',
url: `/api/v1/dataQuality/testSuites/executable/${data.testSuite.id}`,
headers: { Authorization: `Bearer ${token}` },
});
// Delete ingestion pipeline
cy.request({
method: 'DELETE',
url: `/api/v1/services/ingestionPipelines/${data.ingestionPipeline.id}?hardDelete=true`,
headers: { Authorization: `Bearer ${token}` },
});
// Delete created services
hardDeleteService({
token,

View File

@ -299,11 +299,17 @@ describe('Glossary and glossary term version pages should work properly', () =>
`/api/v1/glossaryTerms/*/versions/0.2`,
'getSelectedVersionDetails'
);
interceptURL(
'GET',
`/api/v1/glossaryTerms/${data.glossaryTerm2.id}`,
'getGlossaryTermDetails'
);
cy.get('[data-testid="version-button"]').contains('0.2').click();
verifyResponseStatusCode('@getVersionsList', 200);
verifyResponseStatusCode('@getSelectedVersionDetails', 200);
verifyResponseStatusCode('@getGlossaryTermDetails', 200);
cy.get(
'[data-testid="glossary-right-panel-owner-link"] [data-testid="diff-added"]'
@ -330,6 +336,7 @@ describe('Glossary and glossary term version pages should work properly', () =>
verifyResponseStatusCode('@getVersionsList', 200);
verifyResponseStatusCode('@getSelectedVersionDetails', 200);
verifyResponseStatusCode('@getGlossaryTermDetails', 200);
cy.get('[data-testid="glossary-reviewer"] [data-testid="diff-added"]')
.scrollIntoView()