Skip to content

Commit

Permalink
Update the test based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kkorchak committed Oct 23, 2023
1 parent b252b7f commit 1c3c29c
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { aliasQuery } from "../utils";
const DATASET_ENTITY_TYPE = 'dataset';
const DATASET_URN = 'urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleCypressHdfsDataset,PROD)';
const DOWNSTREAM_DATASET_URN = "urn:li:dataset:(urn:li:dataPlatform:kafka,SampleCypressKafkaDataset,PROD)";
const upstream = '[data-testid="node-urn:li:dataset:(urn:li:dataPlatform:kafka,SampleCypressKafkaDataset,PROD)-Upstream"] text';
const downstream = '[data-testid="node-urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleCypressHdfsDataset,PROD)-Downstream"] text';
const upstreamColumn = '[data-testid="node-urn:li:dataset:(urn:li:dataPlatform:kafka,SampleCypressKafkaDataset,PROD)-Upstream"] text';
const downstreamColumn = '[data-testid="node-urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleCypressHdfsDataset,PROD)-Downstream"] text';

const verifyColumnPathModal = (from, to) => {
cy.get('[data-testid="entity-paths-modal"]').contains(from).should("be.visible");
Expand All @@ -29,12 +29,12 @@ describe("column-Level lineage and impact analysis path test", () => {
cy.waitTextVisible("shipment_info");

// Verify functionality of column lineage
cy.get(upstream).eq(3).click();
cy.get(upstream).eq(3).prev().should('not.have.attr', 'fill', 'white');
cy.get(downstream).eq(2).prev().should('not.have.attr', 'stroke', 'transparent');
cy.get(downstream).eq(2).click();
cy.get(downstream).eq(2).prev().should('not.have.attr', 'fill', 'white');
cy.get(upstream).eq(3).prev().should('not.have.attr', 'stroke', 'transparent');
cy.get(upstreamColumn).eq(3).click();
cy.get(upstreamColumn).eq(3).prev().should('not.have.attr', 'fill', 'white');
cy.get(downstreamColumn).eq(2).prev().should('not.have.attr', 'stroke', 'transparent');
cy.get(downstreamColumn).eq(2).click();
cy.get(downstreamColumn).eq(2).prev().should('not.have.attr', 'fill', 'white');
cy.get(upstreamColumn).eq(3).prev().should('not.have.attr', 'stroke', 'transparent');

// Open dataset impact analysis view, enable column lineage
cy.goToDataset(DATASET_URN, "SampleCypressHdfsDataset");
Expand Down

0 comments on commit 1c3c29c

Please sign in to comment.