collab/mermaid/cypress/integration/other/ghsa.spec.jsblame
View source
6dd74de1import { urlSnapshotTest, openURLAndVerifyRendering } from '../../helpers/util.ts';
6dd74de2
6dd74de3describe('CSS injections', () => {
6dd74de4 it('should not allow CSS injections outside of the diagram', () => {
6dd74de5 urlSnapshotTest('/ghsa1.html', {
6dd74de6 logLevel: 1,
6dd74de7 flowchart: { htmlLabels: false },
6dd74de8 });
6dd74de9 });
6dd74de10 it('should not allow adding styletags affecting the page', () => {
6dd74de11 urlSnapshotTest('/ghsa3.html', {
6dd74de12 logLevel: 1,
6dd74de13 flowchart: { htmlLabels: false },
6dd74de14 });
6dd74de15 });
6dd74de16 it('should not allow manipulating styletags using arrowheads', () => {
6dd74de17 openURLAndVerifyRendering('/xss23-css.html', {
6dd74de18 logLevel: 1,
6dd74de19 arrowMarkerAbsolute: false,
6dd74de20 flowchart: { htmlLabels: true },
6dd74de21 });
6dd74de22 });
6dd74de23});