Skip to content

Commit

Permalink
Fix file upload test (#11378)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasEng authored Oct 18, 2023
1 parent e3af968 commit 0948d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/testing/cypress/src/integration/studio/datamodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ context('datamodel', () => {
it('Allows to upload an XSD file and displays the data model when the upload is complete', () => {
cy.findAllByTestId(testids.fileSelectorInput)
.first()
.selectFile('src/fixtures/DataModel.xsd', { force: true });
cy.findByRole('combobox', { name: texts['schema_editor.choose_model'] }).should(
'have.value',
'/App/models/DataModel.schema.json',
);
.selectFile('src/fixtures/testdatamodel.xsd', { force: true });
cy.findByRole('combobox', { name: texts['schema_editor.choose_model'] })
.invoke('val')
.should('match', /\/testdatamodel.schema.json$/);
});
});

0 comments on commit 0948d47

Please sign in to comment.