storybook/cypress/generated/basic.spec.ts
2020-07-05 11:03:01 +02:00

21 lines
521 B
TypeScript

import { visit } from '../helper';
describe('Basic Flow', () => {
before(() => {
visit();
});
it('should load welcome flow', () => {
cy.navigateToStory('example-introduction', 'page');
// assert url changes
cy.url().should('include', 'path=/story/example-introduction--page');
// check for selected element
cy.get('#example-introduction--page').should('have.class', 'selected');
// check for content
cy.getDocsElement().should('contain.text', 'Welcome to Storybook');
});
});