diff --git a/src/components/HelpSection.vue b/src/components/HelpSection.vue index cee3cf7b6..5b6bc7755 100644 --- a/src/components/HelpSection.vue +++ b/src/components/HelpSection.vue @@ -279,12 +279,11 @@ export default { clickHandler(modalNumber) { this.modals[modalNumber].status = true if (process.env.NODE_ENV === 'production') { - const Tracked = this.$ga.event({ + this.$ga.event({ eventCategory: 'HelpSection', eventAction: 'clicked', eventLabel: this.modals[modalNumber].title }) - return Tracked } } } diff --git a/tests/e2e/specs/LicenseCode.js b/tests/e2e/specs/LicenseCode.js index 6866bfb65..9c4f6dd17 100644 --- a/tests/e2e/specs/LicenseCode.js +++ b/tests/e2e/specs/LicenseCode.js @@ -8,7 +8,7 @@ module.exports = { .assert.elementPresent('.pagination-next') .click('.pagination-next') .assert.elementPresent('.select > select') - .click('.select > select') + .click('.select') .click('option[value="CC BY-SA 4.0"]') .assert.elementPresent('.pagination-next') .click('.pagination-next') diff --git a/tests/e2e/specs/LicenseDetailsCard.js b/tests/e2e/specs/LicenseDetailsCard.js index ec2d77f23..311e4c567 100644 --- a/tests/e2e/specs/LicenseDetailsCard.js +++ b/tests/e2e/specs/LicenseDetailsCard.js @@ -7,8 +7,8 @@ module.exports = { .click('.control-label > span') .assert.elementPresent('.pagination-next') .click('.pagination-next') - .assert.elementPresent('.select > select') - .click('.select > select') + .assert.elementPresent('.select') + .click('.select') .click('option[value="CC BY-SA 4.0"]') .assert.elementPresent('.selected-license-card') },