Skip to content

Commit

Permalink
Update cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
philemone committed Nov 21, 2024
1 parent c598a66 commit 35d80ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions designer/client/cypress/e2e/creatorToolbar.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe("Creator toolbar", () => {
cy.contains(/^types$/i).click();
cy.contains(/^services$/i).click();
cy.contains(/^sinks$/i).click();
cy.contains(/^stickyNotes$/i).click();
cy.reload();
cy.get("@toolbar").matchImage();
cy.get("@toolbar").find("input").type("var");
Expand Down
2 changes: 1 addition & 1 deletion designer/client/src/components/graph/EspNode/stickyNote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ renderer.image = function (href, title, text) {
const foreignObject = (stickyNote: StickyNote): MarkupNodeJSON => {
let parsed;
try {
parsed = DOMPurify.sanitize(marked.parse(stickyNote.content, { renderer }));
parsed = DOMPurify.sanitize(marked.parse(stickyNote.content, { renderer }), { ADD_ATTR: ["target"] });
} catch (error) {
console.error("Failed to parse markdown:", error);
parsed = "Error: Could not parse content. See error logs in console";
Expand Down

0 comments on commit 35d80ea

Please sign in to comment.