I am testing out Drupal after years of experience with WordPress. The strongest motivator was the performance, but without the Gutenberg module, I wouldn't have considered Drupal, so I really appreciate the hard work on this module.
When I try to write Functional test I used a drupalGet({path}) function. When I run a test and trying to access any page of site I got an error Behat\Mink\Exception\ExpectationException: Current response status code is 404, but 200 expected if I tried get access to <front> or administration pages I got correct response in result. The site is multilingual. If the problem in multilingual of the site, how will to use a properly the function drupalGet?
As I'm relativly new to drupal, is this the first time aiming towards this forum for support. I'm sure people will recognize this issue.
My first steps in drupal weren't easy but they were challenging but the challenge gets harder while I'm progressing through this assignment I'm working on.
I want to add some meta data to submit button of a web form
What i want is when the form get validated and before submit event of webform the metadata get added to the submit button and when submit event trigger the js onclick event will work directly
Is there any way to achieve it
1. I tried custom validator using form alter and then rebuild the form
2. Tried to use event subscriber but was confused where and how would it implement
3. Was checking for any key on form state where we get to know that the form is validated or not if yes then we add meta data