-
Notifications
You must be signed in to change notification settings - Fork 9
chore(integration tests): either remove unused methods or add coverage #5852
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: main
Are you sure you want to change the base?
Conversation
|
Claude finished @theosanderson's task in 3m 32s —— View job Code Review Complete ✓This is a solid cleanup PR that removes genuinely unused code and adds meaningful test coverage. The changes improve code maintainability by ensuring all page object methods are actually tested. SummaryStrengths:
Areas for improvement:
Detailed FindingsRemoved methods verification:
Test coverage additions:
Bug fix (sequence-detail.page.ts:16): Test QualityThe new tests follow good patterns:
See inline comments for specific suggestions on improving assertion specificity. |
This is an alternative to #5830 which tries to preserve a bit of the functionality. No super strong feelings @chaoran-chen if you prefer yours, sorry for the delay.
[clauded]
This PR cleans up unused code in the integration test page objects by:
The goal is to ensure all page object methods have test coverage, making the codebase easier to maintain and preventing dead code accumulation.
Changes
Removed (duplicated/unnecessary[edit:theo also / just did not get round to adding back, for revision cases)
SingleSequenceSubmissionPage.fillField()EditPage.fillField()SequenceDetailPage.getPage()this.pageRevisionPage.clickReviseSequenceLink()SearchPage.reviseSequence()RevisionPage.uploadSegmentFile()RevisionPage.discardSegmentFile()RevisionPage.discardSequenceFile()RevisionPage.discardMetadataFile()RevisionPage.clickConfirm()RevisionPage.reviseSequence()RevisionPage.reviseMultiSegmentSequence()Added test coverage
SearchPage.getSequencePreviewModal()sequence-preview-url.dependent.spec.tsSearchPage.getHalfScreenPreview()sequence-preview-url.dependent.spec.tsCliPage.authStatus()auth.spec.tsSequenceDetailPage.selectAlignedTab()sequence-detail-page.dependent.spec.tsGroupPage.editAddressLine2()management.spec.tsReviewPage.navigateToReviewPage()review-page.spec.tsRevisionPage.downloadTsvTemplate()revise-sequence.spec.tsRevisionPage.downloadXlsxTemplate()revise-sequence.spec.tsCliPage.setDefaultOrganism()organism-group.spec.ts(new)CliPage.clearDefaultOrganism()organism-group.spec.ts(new)CliPage.setDefaultGroup()organism-group.spec.ts(new)CliPage.clearDefaultGroup()organism-group.spec.ts(new)CliPage.getAvailableOrganisms()organism-group.spec.ts(new)CliPage.getAvailableGroups()organism-group.spec.ts(new)Bug fix
SequenceDetailPage.alignedTabgetter to use.first()to handle pages with multiple aligned tabs (aligned nucleotide and aligned amino acid sequences)Test plan
main.loculus.orgorganism-group.spec.tsCLI tests pass🤖 Generated with Claude Code
🚀 Preview: Add
previewlabel to enable