-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix: add returning promises on interceptor errors + tests #2896
Conversation
…interactable before performing actions to prevent flakiness
…roperly 📝 (codeAreaModal/index.tsx): add data-testid attribute to title element for testing purposes ✨ (generalBugs-shard-6.spec.ts): add end-to-end test for error handling in Code Modal
Pull Request Validation ReportThis comment is automatically generated by Conventional PR Whitelist Report
Result Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated. Validation Report
Result Pull request satisfies all enabled pull request rules. Last Modified at 23 Jul 24 15:48 UTC |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
…larity and grammar
…w-ai#2896) * 🐛 (generalBugs-shard-5.spec.ts): fix test to wait for elements to be interactable before performing actions to prevent flakiness * 📝 (API/api.tsx): return error in promise rejection to handle errors properly 📝 (codeAreaModal/index.tsx): add data-testid attribute to title element for testing purposes ✨ (generalBugs-shard-6.spec.ts): add end-to-end test for error handling in Code Modal * 📝 (generalBugs-shard-6.spec.ts): update test description for better clarity and grammar (cherry picked from commit c83006e)
This pull request will fix error that interceptor is not throwing error as espected:
#2895
📝 (API/api.tsx): return error in promise rejection to handle errors properly
📝 (codeAreaModal/index.tsx): add data-testid attribute to title element for testing purposes
✨ (generalBugs-shard-6.spec.ts): add end-to-end test for error handling in Code Modal