You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
Hi @loriepisicchio, this seems like a good addition! I think this is something we would want to add in Shepherd itself. Would you be interested in submitting a PR for this?
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
Do you think this is a feature you could add ?
The text was updated successfully, but these errors were encountered: