From 6e0fe035525f1c033d58161f78a1ffe7c9e17f8b Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 4 Oct 2024 01:31:20 +0530 Subject: [PATCH] chore: move handDrawnSeed to mermaidUrl function --- cypress/helpers/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/helpers/util.ts b/cypress/helpers/util.ts index 885c733d8b..52da4a72ee 100644 --- a/cypress/helpers/util.ts +++ b/cypress/helpers/util.ts @@ -29,6 +29,7 @@ export const mermaidUrl = ( options: CypressMermaidConfig, api: boolean ): string => { + options.handDrawnSeed = 1; const codeObject: CodeObject = { code: graphStr, mermaid: options, @@ -65,7 +66,6 @@ export const imgSnapshotTest = ( : 'courier', messageFontFamily: 'courier', }, - handDrawnSeed: 1, }; const url: string = mermaidUrl(graphStr, options, api);