Added option to skip screenshot for cypress tests

This commit is contained in:
saurabhg772244
2025-09-05 12:47:07 +05:30
parent e6fb4a84da
commit 56cc12690f
3 changed files with 11 additions and 5 deletions

View File

@@ -1039,7 +1039,7 @@ graph TD
style C stroke-width:4px,stroke-dasharray: 5
L_A_B_0@{ animation: slow }
L_B_D_0@{ animation: fast }`,
{ look: 'handDrawn' }
{ look: 'handDrawn', screenshot: false }
);
cy.get('path#L_A_B_0').should('have.class', 'edge-animation-slow');
cy.get('path#L_B_D_0').should('have.class', 'edge-animation-fast');

View File

@@ -775,13 +775,16 @@ describe('Graph', () => {
});
});
it('40: should add edge animation', () => {
renderGraph(`
renderGraph(
`
flowchart TD
A(["Start"]) L_A_B_0@--> B{"Decision"}
B --> C["Option A"] & D["Option B"]
style C stroke-width:4px,stroke-dasharray: 5
L_A_B_0@{ animation: slow }
L_B_D_0@{ animation: fast }`);
L_B_D_0@{ animation: fast }`,
{ screenshot: false }
);
// Verify animation classes are applied to both edges
cy.get('path#L_A_B_0').should('have.class', 'edge-animation-slow');
cy.get('path#L_B_D_0').should('have.class', 'edge-animation-fast');