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

Added webform states js to allow pattern use in drupal states. #511

Conversation

MdNadimHossain
Copy link
Contributor

@MdNadimHossain MdNadimHossain commented Sep 11, 2024

Jira

https://digital-vic.atlassian.net/browse/SD-231

Problem/Motivation

Drupal states pattern was not working for promotion and navigation card component for other content types.

Fix

Moved the js that is being used from webform module (which has the pattern addition for drupal states) for all node forms .

Related PRs

dpc-sdp/tide_landing_page#234

Notes

Initially it was targeting only landing page as the component was only added for landing pages. Now the component is being used for publication page and it might get used for other content types in the future. So loading it for all node edit forms from tide_core.

Screenshots

TODO

@@ -55,7 +55,7 @@ Feature: Access permissions
Given I go to "user/password"
Then I fill in "Username or email address" with "test@example.com"
And I press "Submit"
And I should see the success message "If the username or email address exists and is active, further instructions have been sent to your email address."
And I should see the success message "If test@example.com is a valid account, an email will be sent with instructions to reset your password."
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test has been updated related to the recent release and issue fix in username_enumeration_prevention. The issue that has been fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

cool!

@@ -55,7 +55,7 @@ Feature: Access permissions
Given I go to "user/password"
Then I fill in "Username or email address" with "test@example.com"
And I press "Submit"
And I should see the success message "If the username or email address exists and is active, further instructions have been sent to your email address."
And I should see the success message "If test@example.com is a valid account, an email will be sent with instructions to reset your password."
Copy link
Contributor

Choose a reason for hiding this comment

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

cool!

@MdNadimHossain MdNadimHossain merged commit 08e3be0 into develop Sep 20, 2024
4 of 6 checks passed
@MdNadimHossain MdNadimHossain deleted the bug/SD-231-moved-state-pattern-js-global-place-for-all-nodes branch September 20, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants