mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-22 05:02:18 +08:00
22 lines
533 B
TypeScript
22 lines
533 B
TypeScript
/* eslint-disable cypress/no-unnecessary-waiting */
|
|
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')
|
|
.wait(3000)
|
|
.find('p')
|
|
.eq(0)
|
|
.should('contain.text', 'My name is John Doe');
|
|
});
|
|
});
|