mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
test(e2e,playwright): test github link input behaviour in form-helper (#52319)
This commit is contained in:
@@ -92,5 +92,11 @@ test.describe('Test form with solution link and github link', () => {
|
||||
// The form submit button should be enabled as the form is now filled
|
||||
await solutionLinkInput.fill('test-input');
|
||||
await expect(solutionFormButton).toBeEnabled();
|
||||
|
||||
// The form submit button should be enabled as the GitHub link is now filled
|
||||
await solutionLinkInput.fill('');
|
||||
await expect(solutionFormButton).toBeDisabled();
|
||||
await githubLinkInput.fill('test-input');
|
||||
await expect(solutionFormButton).toBeEnabled();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user