fix: add validation to ensure correct casing of 'viewBox' in all rendering tests

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-10-15 18:56:49 +05:30
parent 60f633101c
commit 76e17ffd20

View File

@@ -98,6 +98,7 @@ export const openURLAndVerifyRendering = (
cy.visit(url);
cy.window().should('have.property', 'rendered', true);
cy.get('svg').should('be.visible');
cy.get('svg').should('not.have.attr', 'viewbox');
if (validation) {
cy.get('svg').should(validation);