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

chore (refs DPLAN-11668): Add missing Hooks for E-2-E Test. #881

Merged
merged 5 commits into from
May 29, 2024

Conversation

ahmad-demos
Copy link
Contributor

Ticket

https://demoseurope.youtrack.cloud/issue/DPLAN-11668/Hooks-Public-View-Hooks

  • Add missing Hooks/Selectors for DpMultistepNav.

@ahmad-demos ahmad-demos added enhancement New feature or request review:frontend labels May 29, 2024
@ahmad-demos ahmad-demos self-assigned this May 29, 2024
@@ -3,6 +3,7 @@
<button
v-for="(step, idx) in steps"
:key="`step_${idx}`"
:data-cy="`${dataCy}:${idx}`"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
:data-cy="`${dataCy}:${idx}`"
:data-cy="`${dataCy}:${step.label}`"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With this change we have now hooks like: data-cy="multistepNav:Ihre Stellungnahme" with space.

Can I make it like :data-cy="${dataCy}:${step.label.replace(/\s+/g, '-').toLowerCase()}"?
Then Hook data-cy="multistepNav:ihre-stellungnahme"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. Sorry. Thought the label would look more like a key. than we better stick to the idx.

@@ -3,6 +3,7 @@
<button
v-for="(step, idx) in steps"
:key="`step_${idx}`"
:data-cy="`${dataCy}:${idx}`"
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. Sorry. Thought the label would look more like a key. than we better stick to the idx.

@ahmad-demos ahmad-demos enabled auto-merge (squash) May 29, 2024 12:16
@ahmad-demos ahmad-demos disabled auto-merge May 29, 2024 12:21
@ahmad-demos ahmad-demos merged commit b6fe09a into main May 29, 2024
1 check passed
@ahmad-demos ahmad-demos deleted the f_DPLAN-11668_add_missing_Hooks_multiStepNav branch May 29, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request review:frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants