Skip to content

Commit

Permalink
Fix for Review step UX change
Browse files Browse the repository at this point in the history
  • Loading branch information
jabrah committed Oct 25, 2023
1 parent e0bc6bf commit a7851d4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/baseCaseTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a7851d4

Please sign in to comment.