Skip to content

Commit cefb098

Browse files
committed
Stabilize cypress tests
1 parent 53de163 commit cefb098

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cypress/support/LoginPage.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
export default url => ({
22
elements: {
3+
appLoader: '.app-loader',
34
username: "input[name='username']",
45
password: "input[name='password']",
56
submitButton: 'button',
7+
title: '#react-admin-title',
68
},
79

810
navigate() {
@@ -18,5 +20,7 @@ export default url => ({
1820
cy.get(this.elements.username).clear().type(username);
1921
cy.get(this.elements.password).clear().type(password);
2022
cy.get(this.elements.submitButton).click();
23+
cy.get(this.elements.title);
24+
cy.get(this.elements.appLoader);
2125
},
2226
});

examples/simple/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig(async () => {
2525
dirName,
2626
'package.json'
2727
),
28-
{ assert: { type: 'json' } }
28+
{ with: { type: 'json' } }
2929
);
3030
aliases.push({
3131
find: new RegExp(`^${packageJson.default.name}$`),

0 commit comments

Comments
 (0)