diff --git a/src/iss-components/address-questions/address-questions.spec.js b/src/iss-components/address-questions/address-questions.spec.js index cf7003fa..15a1fa77 100644 --- a/src/iss-components/address-questions/address-questions.spec.js +++ b/src/iss-components/address-questions/address-questions.spec.js @@ -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); });