test(e2e,playwright): test github link input behaviour in form-helper (#52319)

This commit is contained in:
weilirs
2023-11-11 09:48:22 -06:00
committed by GitHub
parent f83bc935e6
commit 4ac6e8fb26
+6
View File
@@ -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();
});
});