1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-03-22 05:02:18 +08:00
storybook/cypress/integration/knobs.spec.ts
2020-05-09 11:34:04 +02:00

20 lines
463 B
TypeScript

import { clickAddon, visit } from '../helper';
describe('Knobs', () => {
beforeEach(() => {
visit('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.getStoryElement()
.console('info')
.find('p')
.eq(0)
.should('contain.text', 'My name is John Doe');
});
});