mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-24 05:02:24 +08:00
15 lines
428 B
TypeScript
15 lines
428 B
TypeScript
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');
|
|
});
|
|
});
|