mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-11 18:16:58 +00:00
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:
parent
14e7af75a5
commit
cd59a87e7e
@ -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();
|
||||
});
|
||||
});
|
||||
@ -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);
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@ -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);
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@ -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);
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@ -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);
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user