-
Notifications
You must be signed in to change notification settings - Fork 4.5k
test: Admin setting test cases #38172
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
Changes from all commits
b2e8dc5
2c99cb3
0dbeb6c
88bae5c
fabd248
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,4 +46,5 @@ export default { | |
| singleSessionPerUserInput: "[data-testid='singleSessionPerUserEnabled']", | ||
| sessionTimeoutWrapper: ".t--admin-settings-userSessionTimeoutInMinutes", | ||
| sessionTimeoutInput: "[name='userSessionTimeoutInMinutes']", | ||
| adminEmailsData: ".t--admin-settings-APPSMITH_ADMIN_EMAILS span > span", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Replace CSS path selector with data- attribute.* The selector uses CSS path with child selectors ( Consider this change: - adminEmailsData: ".t--admin-settings-APPSMITH_ADMIN_EMAILS span > span",
+ adminEmailsData: "[data-testid='admin-settings-emails-data']",Remember to update the corresponding element in your component with the new data-testid attribute.
|
||
| }; | ||
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.
🛠️ Refactor suggestion
Remove unnecessary cy.wait
Replace
cy.wait("@getEnvVariables")with proper assertion usingagHelper.ValidateNetworkStatus("@getEnvVariables")to follow best practices.📝 Committable suggestion