update test

This commit is contained in:
Bill Richardson 2024-12-12 14:53:16 -05:00
parent 6eada2ed48
commit 3a7bfa83b1

View file

@ -73,7 +73,7 @@ describe('address-questions.vue', () => {
});
describe('initial state', () => {
test('Should hide addressQuestions sub-components (textbox-questions and dropdown-questions)', async () => {
test('Should hide(exists but not visible) addressQuestions sub-components (textbox-questions and dropdown-questions)', async () => {
// Arrange
const { wrapper } = setupMocks({});
@ -86,9 +86,12 @@ describe('address-questions.vue', () => {
// Assert
expect(streetAddress.exists()).toBe(true);
expect(city.exists()).toBe(false);
expect(state.exists()).toBe(false);
expect(zipCode.exists()).toBe(false);
expect(city.exists()).toBe(true);
expect(city.isVisible(false));
expect(state.exists()).toBe(true);
expect(state.isVisible(false));
expect(zipCode.exists()).toBe(true);
expect(zipCode.isVisible(false));
expect(streetAddress2.exists()).toBe(false);
});