1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-03-26 05:02:32 +08:00

15 lines
428 B
TypeScript
Raw Normal View History

2019-10-13 14:24:49 +02:00
import { clickAddon, getStorybookPreview, 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').type('John Doe');
getStorybookPreview().should('contain', 'My name is John Doe');
});
});