Skip to content

Commit

Permalink
fix: Updated Modal spec
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-bagwell committed Nov 12, 2024
1 parent 2dd0df4 commit 769d5c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cypress/component/Modal.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,7 @@ context(`given the 'Iframe Test' story is rendered`, () => {
cy.findByRole('iframe').its('0.contentDocument.body').should('exist');
cy.findByRole('iframe')
.its('0.contentDocument.body')
.then(cy.wrap)
.contains('button', 'iframe button 2')
.findAllByTestId('button2')
.should('have.focus');
});

Expand Down
2 changes: 1 addition & 1 deletion modules/react/modal/stories/examples/IframeTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const IframeTest = () => {
</Flex>
<iframe
role="iframe"
srcDoc="<html><body>Hello, <b>world</b>.<button>iframe button 1</button><button>iframe button 2</button></body></html>"
srcDoc="<html><body>Hello, <b>world</b>.<button>iframe button 1</button><button data-testid='button2'>iframe button 2</button></body></html>"
/>
</Modal.Body>
</Modal.Card>
Expand Down

0 comments on commit 769d5c7

Please sign in to comment.