From 7ff798f4853efcc2d18b25d825a99b1a933d5c41 Mon Sep 17 00:00:00 2001 From: Travis Tidwell Date: Wed, 4 Dec 2024 10:35:02 -0600 Subject: [PATCH] Fixing tests. --- test/unit/Wizard.unit.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/unit/Wizard.unit.js b/test/unit/Wizard.unit.js index 8bfc680af2..97b611d8b0 100644 --- a/test/unit/Wizard.unit.js +++ b/test/unit/Wizard.unit.js @@ -630,8 +630,7 @@ describe('Wizard tests', () => { wizard.submit(); await wait(400); const getRequiredFieldErrors = () => - wizard.errors.filter(error => error.message === 'Text Field is required' && - ['Page 1', 'Page 3'].includes(error.component.parent.title)); + wizard.errors.filter(error => error.message === 'Text Field is required'); assert.equal(getRequiredFieldErrors().length, 2); // navigate to page 2 @@ -648,7 +647,7 @@ describe('Wizard tests', () => { await wait(200); // maintain form-level error after supplying value for one required field assert.equal(getRequiredFieldErrors().length, 1); - assert.equal(getRequiredFieldErrors()[0].component.parent.title, 'Page 3'); + assert.equal(getRequiredFieldErrors()[0].formattedKeyOrPath, 'textField1'); }); it('Should render values in HTML render mode', function(done) {