storybook/cypress/generated/basic.spec.ts
2020-06-24 00:13:32 +02:00

19 lines
455 B
TypeScript

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