-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update tests removing radio buttons
- Loading branch information
1 parent
6397f19
commit 139c872
Showing
4 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,6 @@ test.describe('Giftaid Update form validation @sanity @nightly-sanity', () => { | |
|
||
// Test for a valid first name | ||
await page.fill('#field-input--firstname', ''); // clear firstname field | ||
await page.locator('.form__radio input[type="radio"][value="online"]').click(); | ||
await commands.populateUpdateFormFields(page, { firstName: 'John' }); | ||
await page.click('#giftAidClaimChoice>div:nth-child(2)>label'); // Select yes for declaration | ||
await page.click('button[type=submit]'); // Submit the form | ||
|
@@ -86,7 +85,6 @@ test.describe('Giftaid Update form validation @sanity @nightly-sanity', () => { | |
// Test for a valid email | ||
const validEmail = '[email protected]'; | ||
await page.fill('input#field-input--email', ''); // clear email field | ||
await page.locator('.form__radio input[type="radio"][value="sms"]').click(); | ||
await commands.populateUpdateFormFields(page, { email: validEmail }); | ||
await page.click('#giftAidClaimChoice>div:nth-child(3)>label'); // Select no for declaration | ||
await page.click('button[type=submit]'); // Submit the form | ||
|
@@ -121,7 +119,6 @@ test.describe('Giftaid Update form validation @sanity @nightly-sanity', () => { | |
|
||
// Validate correct mobile number | ||
await page.locator('#field-input--mobile').fill(''); // Ensure the field is cleared and filled with valid data | ||
await page.locator('.form__radio input[type="radio"][value="call centre"]').click(); | ||
await commands.populateUpdateFormFields(page, { mobile: mobile }); | ||
await page.click('#giftAidClaimChoice>div:nth-child(2)>label'); // Select yes for declaration | ||
await page.click('button[type=submit]'); // Submit the form | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters