-
Notifications
You must be signed in to change notification settings - Fork 5
Cypress: Setup Fixture Seeding - Content List #3915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: test/seed-data-content-actions
Are you sure you want to change the base?
Cypress: Setup Fixture Seeding - Content List #3915
Conversation
8ada555 to
e28b7eb
Compare
e28b7eb to
d74d0b5
Compare
17a6716 to
0851b8d
Compare
7f7a907 to
b184802
Compare
77cb1b8 to
dd1fd0c
Compare
cypress/e2e/content/list.spec.js
Outdated
| cy.getBySelector("MultiPageTableSearchField").type("turkey"); | ||
| cy.get(".MuiDataGrid-cell").contains("Turkey Run"); | ||
| cy.getBySelector("MultiPageTableSearchField").type("{selectAll}{del}"); | ||
| it("Filters list items based on search term", function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed from an arrow function to a traditional function declaration? I would prefer we keep things consistent unless this change is really necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Cypress, variables stored using cy.wrap need to be accessed via this, which requires using a function() declaration. Since I used a different approach, I’ll be reverting it back to the original declaration.
cypress/e2e/content/list.spec.js
Outdated
| }); | ||
|
|
||
| it("Sorts list items", () => { | ||
| it("Sorts list items", function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here regarding the function declaration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
cypress/e2e/content/list.spec.js
Outdated
|
|
||
| cy.get(".MuiDataGrid-cell[data-colindex='2']") | ||
| .should("exist") | ||
| .contains(contentItems[4].data.text, { matchCase: false }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is matchCase being set to false here? I would assume we would want to make an exact match to make sure the UI is behaving correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| const { formatPathPart } = require("../../../src/utility/formatPathPart"); | ||
| const { formatName } = require("../../../src/utility/formatName"); | ||
| const { getSDK } = require("./utils"); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems unnecessary, plus I prefer we keep the spacing here to keep things more organized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
28425c1 to
5e4fb0a
Compare
5e4fb0a to
78026f2
Compare
NOTE: This work is based on and requires #3899 to be merged first.