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
|
||||
await wrapper.setProps({
|
||||
shopProviderData: shopQuestionInitialData,
|
||||
shopProviderData: alsoShopQuestionInitialData,
|
||||
});
|
||||
|
||||
await wrapper.vm.$nextTick();
|
||||
|
|
@ -348,7 +348,7 @@ describe("shop-question.vue", () => {
|
|||
attachTo: document.body,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
// Act
|
||||
await wrapper.setProps({
|
||||
shopProviderData: alsoShopQuestionInitialData,
|
||||
|
|
@ -364,7 +364,9 @@ describe("shop-question.vue", () => {
|
|||
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
|
||||
const displayedAnswers = [
|
||||
{
|
||||
|
|
@ -550,6 +552,7 @@ describe("shop-question.vue", () => {
|
|||
// Assert
|
||||
expect(wrapper.vm.answers.length).toEqual(3);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function setupMocks({ mountOptions, mixins, props, isShallowMount = true }) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue