-
-
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 Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 16 days ago
The best way to fix this issue is to remove the unused addComment
function entirely. This will eliminate the warning and improve code clarity. If the function is needed in the future, it can be re-added when the corresponding test or feature is implemented.
-
Copy modified line R187
@@ -186,8 +186,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 unused function `addComment`. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3137 +/- ##
=======================================
Coverage 83.05% 83.05%
=======================================
Files 568 568
Lines 33062 33062
Branches 5339 5339
=======================================
Hits 27459 27459
+ Misses 4811 4800 -11
- Partials 792 803 +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
ca6c19a
to
afc686e
Compare
This change is