Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17266 from storybookjs/upgrade-compodoc-colors-dep
Upgrade compodoc for colors.js bug
- Loading branch information
Showing
7 changed files
with
100 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* eslint-disable jest/no-identical-title */ | ||
import { onlyOn } from '@cypress/skip-test'; | ||
|
||
describe('addon-interactions', () => { | ||
before(() => { | ||
cy.visitStorybook(); | ||
}); | ||
|
||
const test = () => { | ||
// click on the button | ||
cy.navigateToStory('example-page', 'logged-in'); | ||
|
||
cy.viewAddonPanel('Interactions'); | ||
|
||
cy.getStoryElement().find('.welcome').should('contain.text', 'Welcome, Jane Doe!'); | ||
|
||
cy.get('#tabbutton-interactions').contains(/(1)/).should('be.visible'); | ||
cy.get('#storybook-panel-root') | ||
.contains(/userEvent.click/) | ||
.should('be.visible'); | ||
cy.get('[data-testid=icon-done]').should('be.visible'); | ||
}; | ||
|
||
// Having multiple of onlyOn for the same test is a workaround instead | ||
// of having to use skipOn a long list of frameworks | ||
onlyOn('angular', () => { | ||
it('should have interactions', test); | ||
}); | ||
|
||
onlyOn('react', () => { | ||
it('should have interactions', test); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters