From 6b2c40e8f7ab90c450768a3f19ea657a7c180e36 Mon Sep 17 00:00:00 2001 From: Maciej Barelkowski Date: Fri, 22 Sep 2023 14:45:11 +0200 Subject: [PATCH] test: adjust tests --- .../spec/features/decision-rules/DecisionRulesEditorSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dmn-js-decision-table/test/spec/features/decision-rules/DecisionRulesEditorSpec.js b/packages/dmn-js-decision-table/test/spec/features/decision-rules/DecisionRulesEditorSpec.js index 1ad7ee25..af69d8e7 100644 --- a/packages/dmn-js-decision-table/test/spec/features/decision-rules/DecisionRulesEditorSpec.js +++ b/packages/dmn-js-decision-table/test/spec/features/decision-rules/DecisionRulesEditorSpec.js @@ -352,7 +352,7 @@ describe('features/decision-rules', function() { const editor = queryEditor('[data-element-id="unaryTest_1"]', testContainer); // then - expect(editor.textContent).to.eql('-'); + expect(editor.matches('[data-placeholder="-"]')).to.be.true; })); @@ -362,7 +362,7 @@ describe('features/decision-rules', function() { const editor = queryEditor('[data-element-id="outputEntry_1"]', testContainer); // then - expect(editor.textContent).to.eql(''); + expect(editor.matches('[data-placeholder="-"]')).to.be.false; })); });