From 52f4b5135d757e1c85bdaed0e65346356da7cb1f Mon Sep 17 00:00:00 2001 From: Rui Figueira Date: Wed, 11 Sep 2024 16:39:54 +0100 Subject: [PATCH] fix: assert value on player --- src/server/recorder/crxPlayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/recorder/crxPlayer.ts b/src/server/recorder/crxPlayer.ts index 7c1d03bbd..a3dad6387 100644 --- a/src/server/recorder/crxPlayer.ts +++ b/src/server/recorder/crxPlayer.ts @@ -219,7 +219,7 @@ export default class Player extends EventEmitter { return await innerPerformAction(mainFrame, 'assertValue', { selector }, callMetadata => mainFrame.expect(callMetadata, selector, { selector, expression: 'to.have.value', - expectedValue: action.value, + expectedText: serializeExpectedTextValues([action.value], { matchSubstring: false, normalizeWhiteSpace: true }), isNot: false, timeout: kActionTimeout, }));