-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add e2e tests #3137
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
base: master
Are you sure you want to change the base?
Add e2e tests #3137
Conversation
c44abb7
to
c6ce63d
Compare
} | ||
|
||
// TODO add this to the test | ||
async function addComment(page: Page, user: UserEmulator): Promise<void> { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 days ago
The best way to fix this issue is to remove the unused addComment
function entirely. If the function is needed in the future, it can be reintroduced when the corresponding feature or test case is implemented. Removing it now will improve code clarity and eliminate the unused function warning.
-
Copy modified line R190
@@ -189,8 +189,2 @@ | ||
|
||
// TODO add this to the test | ||
async function addComment(page: Page, user: UserEmulator): Promise<void> { | ||
await user.click(page.getByRole('button', { name: /Show \d more unread answers/ })); | ||
await user.click(page.getByRole('button', { name: 'Add a comment' }).first()); | ||
await user.type('This is a good answer.'); | ||
await user.click(page.getByRole('button', { name: 'Save' })); | ||
} | ||
// (Removed the unused `addComment` function) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #3137 +/- ##
=======================================
Coverage 83.00% 83.00%
=======================================
Files 569 569
Lines 33177 33177
Branches 5325 5342 +17
=======================================
Hits 27540 27540
+ Misses 4844 4833 -11
- Partials 793 804 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c6ce63d
to
511f1c6
Compare
511f1c6
to
240ee13
Compare
240ee13
to
da62195
Compare
da62195
to
70c712a
Compare
70c712a
to
05107a7
Compare
05107a7
to
ee77482
Compare
ee77482
to
a868388
Compare
a868388
to
8f539c4
Compare
8f539c4
to
c7d706b
Compare
d606624
to
dde93bb
Compare
This change is