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