mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
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:
parent
1ede4d8c10
commit
b996f2f5f4
@ -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,
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user