Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.
This repository was archived by the owner on May 16, 2024. It is now read-only.

Can't access data set in story file #7

@martin91s

Description

@martin91s

I have attached a v-model and set the data in my story but when trying to access wrapper.vm.page in my test file it returns undefined. Any ideas?

Screenshot 2022-07-06 at 12 19 22

Test File:

import { mount } from '@vue/test-utils';
import { composeStories } from '@storybook/testing-vue';
import * as stories from './PortalFooter.stories';

const { portalFooter, sign } = composeStories(stories);

describe('PortalFooter', () => {
    test('Page number is set', () => {
        const wrapper = mount(portalFooter());
        console.log(wrapper.vm.page);
    });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions