storybook/cypress/integration/knobs.spec.ts
Norbert de Langen bdcda2360e WIP
2019-10-16 17:38:22 +02:00

22 lines
486 B
TypeScript

import { clickAddon, visitExample } from '../helper';
describe('Knobs', () => {
beforeEach(() => {
visitExample('official-storybook', '?path=/story/addons-knobs-withknobs--tweaks-static-values');
});
it('[text] it should change a string value', () => {
clickAddon('Knobs');
cy.get('#Name')
.clear()
.type('John Doe');
cy.preview()
.console('info')
.find('p')
.eq(0)
.should('contain.text', 'My name is John Doe');
});
});