Skip to content

Commit 07121fd

Browse files
committed
Fix e2e tests
1 parent 2737f75 commit 07121fd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cypress/support/CreatePage.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ export default url => ({
1111
inputs: `.ra-input`,
1212
richTextInputError: '.create-page .ra-rich-text-input-error',
1313
snackbar: 'div[role="alert"]',
14-
submitButton: ".create-page div[role='toolbar'] button[type='submit']",
14+
submitButton:
15+
".create-page div[role='toolbar'] div:first-child button[type='submit']",
1516
submitAndShowButton:
16-
".create-page form div[role='toolbar'] button[type='button']:nth-child(2)",
17+
".create-page form div[role='toolbar'] div:first-child button[type='button']:nth-child(2)",
1718
submitAndAddButton:
18-
".create-page form div[role='toolbar'] button[type='button']:nth-child(3)",
19+
".create-page form div[role='toolbar'] div:first-child button[type='button']:nth-child(3)",
1920
submitCommentable:
20-
".create-page form div[role='toolbar'] button[type='button']:last-child",
21+
".create-page form div[role='toolbar'] div:first-child button[type='button']:last-child",
2122
descInput: '.ProseMirror',
2223
tab: index => `.form-tab:nth-of-type(${index})`,
2324
title: '#react-admin-title',

0 commit comments

Comments
 (0)