Added TODO for one more important test and Prettified
This commit is contained in:
parent
a2b39cc918
commit
4d2fe040a0
1 changed files with 6 additions and 3 deletions
|
|
@ -280,7 +280,7 @@ describe("shop-question.vue", () => {
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
await wrapper.setProps({
|
await wrapper.setProps({
|
||||||
shopProviderData: shopQuestionInitialData,
|
shopProviderData: alsoShopQuestionInitialData,
|
||||||
});
|
});
|
||||||
|
|
||||||
await wrapper.vm.$nextTick();
|
await wrapper.vm.$nextTick();
|
||||||
|
|
@ -348,7 +348,7 @@ describe("shop-question.vue", () => {
|
||||||
attachTo: document.body,
|
attachTo: document.body,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
await wrapper.setProps({
|
await wrapper.setProps({
|
||||||
shopProviderData: alsoShopQuestionInitialData,
|
shopProviderData: alsoShopQuestionInitialData,
|
||||||
|
|
@ -364,7 +364,9 @@ describe("shop-question.vue", () => {
|
||||||
expect(showMoreShopsLink.exists()).toBeFalsy();
|
expect(showMoreShopsLink.exists()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Should display the next three shops when the 'Show more location' link is clicked", async () => {
|
//TODO: Add test to ensure the "Show more locations" link is not visible when all the existing shops are displayed.
|
||||||
|
|
||||||
|
it("Should display the next three shops when the 'Show more locations' link is clicked", async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const displayedAnswers = [
|
const displayedAnswers = [
|
||||||
{
|
{
|
||||||
|
|
@ -550,6 +552,7 @@ describe("shop-question.vue", () => {
|
||||||
// Assert
|
// Assert
|
||||||
expect(wrapper.vm.answers.length).toEqual(3);
|
expect(wrapper.vm.answers.length).toEqual(3);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function setupMocks({ mountOptions, mixins, props, isShallowMount = true }) {
|
function setupMocks({ mountOptions, mixins, props, isShallowMount = true }) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue