From a7851d4af42f32122312ccefccb27d80e899c66e Mon Sep 17 00:00:00 2001 From: John Abrahams Date: Wed, 25 Oct 2023 07:55:12 -0400 Subject: [PATCH] Fix for Review step UX change --- tests/baseCaseTests.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/baseCaseTests.js b/tests/baseCaseTests.js index 47a8e7f..06967b9 100644 --- a/tests/baseCaseTests.js +++ b/tests/baseCaseTests.js @@ -220,13 +220,18 @@ test('can walk through an nih submission workflow and make a submission - base c await t.click(reviewSubmitButton); // Agree to terms - const agreeTermsCheckbox = Selector('#swal2-checkbox').withAttribute( + const agreeTermsRadio = Selector('.swal2-radio input').withAttribute( 'type', - 'checkbox' + 'radio', + 'value', + 'agree' ); - await t.expect(agreeTermsCheckbox.checked).eql(false); - await t.click(agreeTermsCheckbox); - await t.expect(agreeTermsCheckbox.checked).eql(true); + await t + .expect(agreeTermsRadio.checked) + .eql(false) + .click(agreeTermsRadio) + .expect(agreeTermsRadio.checked) + .eql(true); // Next Button const nextButton = Selector('.swal2-confirm.swal2-styled').withText('Next');