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

MWPW-160954 Marketo Multi-step #3671

Open
wants to merge 3 commits into
base: stage
Choose a base branch
from
Open

MWPW-160954 Marketo Multi-step #3671

wants to merge 3 commits into from

Conversation

@Brandon32 Brandon32 added run-nala Run Nala Test Automation against PR @marketo Run Marketo Block Tests labels Feb 12, 2025
Copy link
Contributor

aem-code-sync bot commented Feb 12, 2025

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@Brandon32 Brandon32 changed the title MWPW-162383 Marketo Multi-step MWPW-160954 Marketo Multi-step Feb 12, 2025
Copy link
Contributor

aem-code-sync bot commented Feb 12, 2025

Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

Comment on lines 79 to 83
formEl.querySelectorAll('.mktoFormRowTop').forEach((row) => {
const rowAttr = row.getAttribute('data-mktofield') || row.getAttribute('data-mkto_vis_src');
const step = VALIDATION_STEP[rowAttr] ? Math.min(VALIDATION_STEP[rowAttr], totalSteps) : 1;
row.setAttribute('data-validate', step);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Super nit, but pulling this out into a named function may add some readability.

Comment on lines 3 to 14
const VALIDATION_STEP = {
name: '2',
phone: '2',
mktoFormsJobTitle: '2',
mktoFormsFunctionalArea: '2',
company: '3',
state: '3',
postcode: '3',
mktoFormsPrimaryProductInterest: '3',
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Will we eventually want this configuration to be set up elsewhere or by authors?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are multiple directions on how this would be configured, but right now this feature is more of a test.
We're not sure what the authoring would look like and it may by configured by the template definitions.

@aem-code-sync aem-code-sync bot temporarily deployed to bmarshal/multi-step February 14, 2025 01:08 Inactive
Copy link
Contributor

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

@Brandon32 Brandon32 force-pushed the bmarshal/multi-step branch 2 times, most recently from 72a9406 to 2e78390 Compare February 19, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@marketo Run Marketo Block Tests run-nala Run Nala Test Automation against PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants