Skip to content

Commit

Permalink
test(ContextMenu): Run suite on iframe outside of Storybook
Browse files Browse the repository at this point in the history
The Storybook app currently throws some `console.errors`. These are warnings from the Emotion library.

storybookjs/storybook#17911
storybookjs/storybook#6998

They have been working to resolve them upstream but don't appear to have caught all of them.
  • Loading branch information
m7kvqbe1 committed May 13, 2022
1 parent e7ee33a commit cf6ab9d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -8,9 +8,11 @@ describe('ContextMenu', () => {
describe('Storybook: Docs Mode', () => {
describe('the user opens the menu', () => {
before(() => {
cy.visit('/iframe.html?id=context-menu--default&viewMode=docs')
cy.visit('/iframe.html?viewMode=story&id=context-menu--default')

cy.get(selectors.contextMenu.target).eq(0).rightclick()
cy.get(selectors.contextMenu.target)
.eq(0)
.rightclick({ scrollBehavior: false })
})

it('should show the Context Menu unobscured', () => {
Expand Down

0 comments on commit cf6ab9d

Please sign in to comment.