-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Classifier: Refactor survey task tests (#3933)
* Refactor choice required questions tests * Refactor some survey task tests with getByText * Run nyc with --silent flag * Refactor tests with screen * Refactor tests with within * Refactor tests with beforeEach * Refactor tests with getByLabelText * Refactor choiceButton tests with getByLabelText * Remove ARIA labels Co-authored-by: Jim O'Donnell <[email protected]> * Refactor tests for Identify and Not this buttons Co-authored-by: Jim O'Donnell <[email protected]> * Refactors tests with getByText * Refactor tests with querySelector * Refactor choicesMenu tests * Refactor to reduce number of renders - Render once, then test rendered output in individual `it()` blocks. - Fix alt text for Clear Filters button. * Remove .skip * Refactor ClearFilters for readability * Move repeated code into beforeEach() hooks * Add data-testid to choice identify button Co-authored-by: Jim O'Donnell <[email protected]>
- Loading branch information
1 parent
103fc15
commit 921e992
Showing
7 changed files
with
281 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
530 changes: 233 additions & 297 deletions
530
packages/lib-classifier/src/plugins/tasks/survey/components/SurveyTask.spec.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters