Added more unit tests to increase code coverage

This commit is contained in:
Alex Janousek
2025-10-27 15:00:52 -04:00
parent 6c3a516aa6
commit c273d5dd6f
9 changed files with 446 additions and 1 deletions

View File

@@ -434,6 +434,17 @@ describe('RadioSelect', () => {
});
test("clicking the 'Done' button without selecting an option should reset to default state", () => {
const doneButton = document.querySelector('.radio-select__column:nth-child(2) input[type=button]');
helpers.triggerEvent(doneButton, 'click');
const categoryButtons = document.querySelectorAll('.radio-select__column:nth-child(2) .radio-select__button--category');
expect(categoryButtons.length).toBeGreaterThan(0);
});
describe("after selecting an option clicking the 'Choose a different time' button should", () => {
beforeEach(() => {