fix(cypress): optimyze summary about section tests (#15332)

Co-authored-by: Victor Tarasevich <v.tarasevich@invento-labs.com>
Co-authored-by: Chris Collins <chriscollins3456@gmail.com>
This commit is contained in:
v-tarasevich-blitz-brain 2025-11-25 20:44:48 +03:00 committed by GitHub
parent 14e7af75a5
commit cd59a87e7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 29 additions and 39 deletions

View File

@ -0,0 +1,14 @@
import * as utils from "./utils";
describe("summary tab - about section", () => {
beforeEach(() => {
utils.setThemeV2AndSummaryTabFlags(true);
cy.login();
cy.goToDataProduct("urn:li:dataProduct:testing");
utils.goToSummaryTab();
});
it("about section", () => {
utils.testAboutSection();
});
});

View File

@ -13,7 +13,7 @@ describe("summary tab - data product", () => {
utils.goToSummaryTab();
});
it("data product - header section", () => {
it("summary tab", () => {
utils.testPropertiesSection([
{ name: "Created", type: "CREATED" },
{ name: "Owners", type: "OWNERS" },
@ -21,21 +21,15 @@ describe("summary tab - data product", () => {
{ name: "Tags", type: "TAGS", value: TEST_TAG_NAME },
{ name: "Glossary Terms", type: "GLOSSARY_TERMS", value: TEST_TERM_NAME },
]);
});
it.skip("data product - description section", () => {
utils.testAboutSection();
});
utils.ensureAboutSectionIsVisible();
it("data product - modules section", () => {
const defaultModules = [
utils.testTemplateSection([
{
type: "assets",
name: "Assets",
value: TEST_ASSET_NAME,
},
];
utils.testTemplateSection(defaultModules);
]);
});
});

View File

@ -14,19 +14,15 @@ describe("summary tab - domain", () => {
utils.goToSummaryTab();
});
it("domain - header section", () => {
it("summary tab", () => {
utils.testPropertiesSection([
{ name: "Created", type: "CREATED" },
{ name: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
]);
});
it.skip("domain - description section", () => {
utils.testAboutSection();
});
utils.ensureAboutSectionIsVisible();
it("domain - modules section", () => {
const defaultModules = [
utils.testTemplateSection([
{
type: "assets",
name: "Assets",
@ -44,8 +40,6 @@ describe("summary tab - domain", () => {
name: "Data Products",
value: TEST_DATA_PRODUCT_NAME,
},
];
utils.testTemplateSection(defaultModules);
]);
});
});

View File

@ -12,19 +12,15 @@ describe("summary tab - glossary node", () => {
utils.goToSummaryTab();
});
it("glossary node - header section", () => {
it("summary tab", () => {
utils.testPropertiesSection([
{ name: "Created", type: "CREATED" },
{ name: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
]);
});
it.skip("glossary node - description section", () => {
utils.testAboutSection();
});
utils.ensureAboutSectionIsVisible();
it("glossary node - modules section", () => {
const defaultModules = [
utils.testTemplateSection([
{
type: "hierarchy",
// FYI: Contents module has different type in add module menu
@ -32,8 +28,6 @@ describe("summary tab - glossary node", () => {
name: "Contents",
value: TEST_GLOSSARY_TERM_NAME,
},
];
utils.testTemplateSection(defaultModules);
]);
});
});

View File

@ -19,14 +19,10 @@ describe("summary tab - glossary term", () => {
{ name: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
{ name: "Domain", type: "DOMAIN", value: TEST_DOMAIN_NAME },
]);
});
it.skip("glossary term - description section", () => {
utils.testAboutSection();
});
utils.ensureAboutSectionIsVisible();
it("glossary term - modules section", () => {
const defaultModules = [
utils.testTemplateSection([
{
type: "assets",
name: "Assets",
@ -37,8 +33,6 @@ describe("summary tab - glossary term", () => {
name: "Related Terms",
value: TEST_RELATED_TERM_NAME,
},
];
utils.testTemplateSection(defaultModules);
]);
});
});