Add `attributes` on `StepOptionsButton`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- angular, typescript
- Domain
- frontend
Research direction
Start by locating the StepOptionsButton entry point and tracing how tour buttons are generated. Verify how the requested attributes option should be represented, then confirm that a data-testid supplied in a step appears on the generated button and that existing button behavior remains unchanged.
Written by the indexing model from the issue text.
Description
Hello !
I would like to be able to add a data-testid attribute on the generated buttons for the tour, in order to ease the E2E tests of my application.
My code would look like
const steps: Step.StepOptions[] = [
{
id: TourService.STEP_0_WELCOME,
text: `<h1>Welcome !</h1>
<div>Let us take you on a quick tour.</div>`,
buttons: [
{
classes: 'tour-button-secondary',
text: 'Skip tutorial',
attributes: {'data-testid', 'tutorial-button-skip'},
action: skip,
},
{
classes: 'tour-button-primary',
text: 'Next',
attributes: {'data-testid', 'tutorial-button-next'},
action: next,
},
],
},
}
Do you think this is a feature you could add ?
- Dominant language
- TypeScript
- Stars
- 238
- Forks
- 50
- Avg merge
- 1m
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from shipshapecode/angular-shepherd
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
shipshapecode/angular-shepherd#2987 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
shipshapecode/angular-shepherd#2986 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
shipshapecode/angular-shepherd#2774 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
shipshapecode/angular-shepherd#2610 · 15 comments · 12 reactions ·
-
angular-shepherd Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 32/100
shipshapecode/angular-shepherd#2240 · 3 comments ·
All issues in shipshapecode/angular-shepherd
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·