Skip to content

Commit

Permalink
Stabilize cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jan 8, 2025
1 parent 53de163 commit cefb098
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cypress/support/LoginPage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export default url => ({
elements: {
appLoader: '.app-loader',
username: "input[name='username']",
password: "input[name='password']",
submitButton: 'button',
title: '#react-admin-title',
},

navigate() {
Expand All @@ -18,5 +20,7 @@ export default url => ({
cy.get(this.elements.username).clear().type(username);
cy.get(this.elements.password).clear().type(password);
cy.get(this.elements.submitButton).click();
cy.get(this.elements.title);
cy.get(this.elements.appLoader);
},
});
2 changes: 1 addition & 1 deletion examples/simple/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig(async () => {
dirName,
'package.json'
),
{ assert: { type: 'json' } }
{ with: { type: 'json' } }
);
aliases.push({
find: new RegExp(`^${packageJson.default.name}$`),
Expand Down

0 comments on commit cefb098

Please sign in to comment.