Skip to content

Commit b95def4

Browse files
committed
Fix Cypress assertion
1 parent 7a1e89e commit b95def4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

packages/eui/src/components/date_picker/date_picker.spec.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ describe('EuiDatePicker', () => {
4141
it('renders form control icons below the date picker', () => {
4242
cy.realMount(<EuiDatePicker inline isLoading isInvalid />);
4343

44-
cy.get('.euiFormControlLayoutIcons').should(
45-
'have.class',
46-
'euiFormControlLayoutIcons--static'
47-
);
44+
cy.get('.euiFormControlLayoutIcons')
45+
.invoke('attr', 'class')
46+
.should('contain', 'euiFormControlLayoutIcons-static');
4847
cy.get('.euiFormControlLayoutDelimited--isInvalid').should('exist');
4948
});
5049

0 commit comments

Comments
 (0)