mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-13 11:06:30 +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();
|
utils.goToSummaryTab();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("data product - header section", () => {
|
it("summary tab", () => {
|
||||||
utils.testPropertiesSection([
|
utils.testPropertiesSection([
|
||||||
{ name: "Created", type: "CREATED" },
|
{ name: "Created", type: "CREATED" },
|
||||||
{ name: "Owners", type: "OWNERS" },
|
{ name: "Owners", type: "OWNERS" },
|
||||||
@ -21,21 +21,15 @@ describe("summary tab - data product", () => {
|
|||||||
{ name: "Tags", type: "TAGS", value: TEST_TAG_NAME },
|
{ name: "Tags", type: "TAGS", value: TEST_TAG_NAME },
|
||||||
{ name: "Glossary Terms", type: "GLOSSARY_TERMS", value: TEST_TERM_NAME },
|
{ name: "Glossary Terms", type: "GLOSSARY_TERMS", value: TEST_TERM_NAME },
|
||||||
]);
|
]);
|
||||||
});
|
|
||||||
|
|
||||||
it.skip("data product - description section", () => {
|
utils.ensureAboutSectionIsVisible();
|
||||||
utils.testAboutSection();
|
|
||||||
});
|
|
||||||
|
|
||||||
it("data product - modules section", () => {
|
utils.testTemplateSection([
|
||||||
const defaultModules = [
|
|
||||||
{
|
{
|
||||||
type: "assets",
|
type: "assets",
|
||||||
name: "Assets",
|
name: "Assets",
|
||||||
value: TEST_ASSET_NAME,
|
value: TEST_ASSET_NAME,
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
||||||
utils.testTemplateSection(defaultModules);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -14,19 +14,15 @@ describe("summary tab - domain", () => {
|
|||||||
utils.goToSummaryTab();
|
utils.goToSummaryTab();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("domain - header section", () => {
|
it("summary tab", () => {
|
||||||
utils.testPropertiesSection([
|
utils.testPropertiesSection([
|
||||||
{ name: "Created", type: "CREATED" },
|
{ name: "Created", type: "CREATED" },
|
||||||
{ name: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
|
{ name: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
|
||||||
]);
|
]);
|
||||||
});
|
|
||||||
|
|
||||||
it.skip("domain - description section", () => {
|
utils.ensureAboutSectionIsVisible();
|
||||||
utils.testAboutSection();
|
|
||||||
});
|
|
||||||
|
|
||||||
it("domain - modules section", () => {
|
utils.testTemplateSection([
|
||||||
const defaultModules = [
|
|
||||||
{
|
{
|
||||||
type: "assets",
|
type: "assets",
|
||||||
name: "Assets",
|
name: "Assets",
|
||||||
@ -44,8 +40,6 @@ describe("summary tab - domain", () => {
|
|||||||
name: "Data Products",
|
name: "Data Products",
|
||||||
value: TEST_DATA_PRODUCT_NAME,
|
value: TEST_DATA_PRODUCT_NAME,
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
||||||
utils.testTemplateSection(defaultModules);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -12,19 +12,15 @@ describe("summary tab - glossary node", () => {
|
|||||||
utils.goToSummaryTab();
|
utils.goToSummaryTab();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("glossary node - header section", () => {
|
it("summary tab", () => {
|
||||||
utils.testPropertiesSection([
|
utils.testPropertiesSection([
|
||||||
{ name: "Created", type: "CREATED" },
|
{ name: "Created", type: "CREATED" },
|
||||||
{ name: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
|
{ name: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
|
||||||
]);
|
]);
|
||||||
});
|
|
||||||
|
|
||||||
it.skip("glossary node - description section", () => {
|
utils.ensureAboutSectionIsVisible();
|
||||||
utils.testAboutSection();
|
|
||||||
});
|
|
||||||
|
|
||||||
it("glossary node - modules section", () => {
|
utils.testTemplateSection([
|
||||||
const defaultModules = [
|
|
||||||
{
|
{
|
||||||
type: "hierarchy",
|
type: "hierarchy",
|
||||||
// FYI: Contents module has different type in add module menu
|
// FYI: Contents module has different type in add module menu
|
||||||
@ -32,8 +28,6 @@ describe("summary tab - glossary node", () => {
|
|||||||
name: "Contents",
|
name: "Contents",
|
||||||
value: TEST_GLOSSARY_TERM_NAME,
|
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: "Owners", type: "OWNERS", dataTestId: `owner-${TEST_USER_URN}` },
|
||||||
{ name: "Domain", type: "DOMAIN", value: TEST_DOMAIN_NAME },
|
{ name: "Domain", type: "DOMAIN", value: TEST_DOMAIN_NAME },
|
||||||
]);
|
]);
|
||||||
});
|
|
||||||
|
|
||||||
it.skip("glossary term - description section", () => {
|
utils.ensureAboutSectionIsVisible();
|
||||||
utils.testAboutSection();
|
|
||||||
});
|
|
||||||
|
|
||||||
it("glossary term - modules section", () => {
|
utils.testTemplateSection([
|
||||||
const defaultModules = [
|
|
||||||
{
|
{
|
||||||
type: "assets",
|
type: "assets",
|
||||||
name: "Assets",
|
name: "Assets",
|
||||||
@ -37,8 +33,6 @@ describe("summary tab - glossary term", () => {
|
|||||||
name: "Related Terms",
|
name: "Related Terms",
|
||||||
value: TEST_RELATED_TERM_NAME,
|
value: TEST_RELATED_TERM_NAME,
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
||||||
utils.testTemplateSection(defaultModules);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user