update test
This commit is contained in:
parent
6eada2ed48
commit
3a7bfa83b1
1 changed files with 7 additions and 4 deletions
|
|
@ -73,7 +73,7 @@ describe('address-questions.vue', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('initial state', () => {
|
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
|
// Arrange
|
||||||
const { wrapper } = setupMocks({});
|
const { wrapper } = setupMocks({});
|
||||||
|
|
||||||
|
|
@ -86,9 +86,12 @@ describe('address-questions.vue', () => {
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
expect(streetAddress.exists()).toBe(true);
|
expect(streetAddress.exists()).toBe(true);
|
||||||
expect(city.exists()).toBe(false);
|
expect(city.exists()).toBe(true);
|
||||||
expect(state.exists()).toBe(false);
|
expect(city.isVisible(false));
|
||||||
expect(zipCode.exists()).toBe(false);
|
expect(state.exists()).toBe(true);
|
||||||
|
expect(state.isVisible(false));
|
||||||
|
expect(zipCode.exists()).toBe(true);
|
||||||
|
expect(zipCode.isVisible(false));
|
||||||
expect(streetAddress2.exists()).toBe(false);
|
expect(streetAddress2.exists()).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue