Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmoreno committed Feb 27, 2024
1 parent d3a4518 commit d3a8716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ context('<CollapsiblePanel />', () => {
</div>,
);
cy.get('#CollapsiblePanel__control--disabled-panel').should('not.exist');
cy.findByTestId('action.button').should('not.exist');
cy.findByTestId('action.button.1').should('not.exist');
});

it('should display action toolip', () => {
cy.mount(<WithActions />);
cy.findByTestId('action.button')
cy.findByTestId('action.button.1')
.focus()
.should('have.attr', 'aria-describedby')
.then(describedBy => cy.get(`#${describedBy}`).should('have.text', 'action tooltip'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function createCollapsibleFieldset(title = defaultTitle) {
index={index}
managed={!!managed}
expanded={!value.isClosed}
action={getAction()}
actions={[getAction()]}
>
{schema.description ? (
<InlineMessageInformation
Expand Down

0 comments on commit d3a8716

Please sign in to comment.