From 46134ec2a943e3ff40f19febfaea312bf6a13fc6 Mon Sep 17 00:00:00 2001 From: Brian Sipple Date: Sun, 21 Oct 2018 16:16:35 -0400 Subject: [PATCH] Change `data-id` to `data-shepherd-step-id` on Step content elements. clashResiliance++; --- src/js/step.js | 2 +- test/unit/test.step.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/step.js b/src/js/step.js index a63d0a7eb3..dd6d90f926 100644 --- a/src/js/step.js +++ b/src/js/step.js @@ -190,7 +190,7 @@ export class Step extends Evented { _createTooltipContent() { const content = document.createElement('div'); const classes = this.options.classes || ''; - const element = createFromHTML(`
`); + const element = createFromHTML(`
`); const header = document.createElement('header'); if (this.options.title) { diff --git a/test/unit/test.step.js b/test/unit/test.step.js index 219ebd298f..d8978237a2 100644 --- a/test/unit/test.step.js +++ b/test/unit/test.step.js @@ -100,7 +100,7 @@ describe('Tour | Step', () => { it('shows step evoking method, regardless of order', () => { showTestStep.show(); - assert.equal(document.querySelector('[data-id=test2]').dataset.id, 'test2'); + assert.equal(document.querySelector('[data-shepherd-step-id=test2]').dataset.id, 'test2'); }); }); });