Skip to content
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

FIX ModelAdmin toast elements #1615

Conversation

sabina-talipova
Copy link
Contributor

@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch from 741dcce to 481c291 Compare October 31, 2023 01:22
@sabina-talipova sabina-talipova marked this pull request as ready for review October 31, 2023 02:29
code/LeftAndMain.php Outdated Show resolved Hide resolved
@GuySartorelli
Copy link
Member

Please also add some behat tests (probably just add a "and I should see" to some existing test scenarios)

@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch 4 times, most recently from 8a0eafd to bcb347e Compare November 2, 2023 01:57
@sabina-talipova
Copy link
Contributor Author

Updated. Failed tests require PRs:

@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch 12 times, most recently from ed3c319 to f59b8ac Compare November 7, 2023 01:24
code/LeftAndMain.php Outdated Show resolved Hide resolved
code/LeftAndMain.php Outdated Show resolved Hide resolved
@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch 2 times, most recently from 90d46b2 to 8858469 Compare November 7, 2023 21:56
@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch 2 times, most recently from 9b682c3 to dc40a1b Compare November 7, 2023 23:08
@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch from dc40a1b to 4180d54 Compare November 8, 2023 00:29
@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch 3 times, most recently from 6ba364b to 9655014 Compare November 8, 2023 23:18
@@ -48,16 +48,16 @@ Feature: Manage my own settings
And I fill in "New Password" with "a"
And I fill in "Confirm Password" with "a"
And I press the "Save" button
Then I should see "Password is too short"
Then I should see "Please increase password strength by adding some of the following characters: uppercase, digits, punctuation"
Copy link
Contributor Author

@sabina-talipova sabina-talipova Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test fails since we don't have any settings for min_test_score.
See: https://github.com/silverstripe/silverstripe-framework/blob/8680b6bfb93235547bfac29fcbd9edc8b13c7ab9/_config/passwords.yml#L10-L13
If we have settings then we show the last added message.

@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch 2 times, most recently from fbbe491 to 58252d4 Compare November 9, 2023 21:13
@GuySartorelli
Copy link
Member

JS CI is failing - might need to be rerun or you might need to rebuild the dist files.

@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch 2 times, most recently from 31d3df7 to 34ef234 Compare November 10, 2023 01:15
@sabina-talipova sabina-talipova force-pushed the pulls/1.13/toast-msg-gridfield branch from 34ef234 to 53afb90 Compare November 10, 2023 01:40
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works well locally.
Changes to password in behat aren't problematic so they're okay even though they're not needed.

@GuySartorelli GuySartorelli merged commit 1bbb401 into silverstripe:1.13 Nov 12, 2023
12 checks passed
@GuySartorelli GuySartorelli deleted the pulls/1.13/toast-msg-gridfield branch November 12, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants