unique batches every time, if not repeated tests end up in the same batch

This commit is contained in:
Knut Sveidqvist
2023-08-25 14:13:11 +02:00
parent 9dccf4d9c9
commit 671ad82ad3
2 changed files with 5 additions and 56 deletions

View File

@@ -18,7 +18,11 @@ const utf8ToB64 = (str: string): string => {
return Buffer.from(decodeURIComponent(encodeURIComponent(str))).toString('base64');
};
const batchId: string = 'mermaid-batch-' + Cypress.env('CYPRESS_COMMIT') || Date.now().toString();
const batchId: string =
'mermaid-batch-' +
(Cypress.env('useAppli')
? Date.now().toString()
: Cypress.env('CYPRESS_COMMIT') || Date.now().toString());
export const mermaidUrl = (
graphStr: string,