From 12a7e1fc6c046f0ccd52b870cafd507d425e8075 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Mon, 29 Apr 2024 21:40:19 +0200 Subject: [PATCH] Fix test --- tests/main.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/main.spec.js b/tests/main.spec.js index edf90d6..abfc872 100644 --- a/tests/main.spec.js +++ b/tests/main.spec.js @@ -208,10 +208,10 @@ test.describe('demo', () => { await Promise.all([ expect(dialog).not.toBeVisible(), - expect(h5pContainer).toHaveText('You have completed the map'), - expect(h5pContainer).toHaveText('1/17'), - expect(h5pContainer).toHaveText('Show solutions'), - expect(h5pContainer).toHaveText('Restart') + expect(h5pContainer).toContainText('You have completed the map'), + expect(h5pContainer).toContainText('1/17'), + expect(h5pContainer).toContainText('Show solutions'), + expect(h5pContainer).toContainText('Restart') ]); }); });