From 6d08c2ece93dc589adacf9694bf3105dbb6663a6 Mon Sep 17 00:00:00 2001
From: Peter Salomonsen <pjsalomonsen@gmail.com>
Date: Wed, 3 Jan 2024 19:27:27 +0100
Subject: [PATCH] fix songcompiler test on safari

---
 .github/workflows/main.yml                          | 1 +
 wasmaudioworklet/midisequencer/songcompiler.spec.js | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1e03217d..c5875697 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -24,6 +24,7 @@ jobs:
           npx playwright install --with-deps
           cd wasmaudioworklet
           yarn install
+          yarn playwright install
           yarn createbrowsersourcebundle
           yarn wtr
   assemblyscriptsynth:
diff --git a/wasmaudioworklet/midisequencer/songcompiler.spec.js b/wasmaudioworklet/midisequencer/songcompiler.spec.js
index 450e42df..34e7f475 100644
--- a/wasmaudioworklet/midisequencer/songcompiler.spec.js
+++ b/wasmaudioworklet/midisequencer/songcompiler.spec.js
@@ -37,7 +37,7 @@ loopHere();
         try {
             await compileSong(`createTrack(5).steps(4,[controlChange(91, 100)]);`);
         } catch (e) {
-            assert.equal('controlChange is not defined', e.message);
+            assert.isTrue(e.message === 'controlChange is not defined' || e.message === "Can't find variable: controlChange");
             hasError = true;
         }
         assert.equal(hasError, true);