Skip to content

Commit

Permalink
[Tech Debt] Fix file download tests for casing changes in 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
levinmr committed Nov 8, 2024
1 parent 1b788a2 commit 9bda41f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions features/autotracker_download.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Feature: Downloads are reported to DAP when autotracking is enabled
Given DAP is configured with autotracking enabled
When I load the test site
And I click on a file to download it
Then the file download is reported to DAP with interaction type "mouse click"
Then the file download is reported to DAP with interaction type "Mouse Click"

Scenario: User presses Enter to download file with autotracker on
Given DAP is configured with autotracking enabled
When I load the test site
And I highlight and press Enter on a file to download it
Then the file download is reported to DAP with interaction type "enter key keystroke"
Then the file download is reported to DAP with interaction type "Enter Key Keystroke"

Scenario: User clicks to download file with autotracker off
Given DAP is configured with autotracking disabled
When I load the test site
And I click on a file to download it
Then the file download is not reported to DAP
Then the file download is not reported to DAP
4 changes: 2 additions & 2 deletions features/support/step_definitions/dataLayer_steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Then("the file download is reported to DAP with interaction type {string}", asyn
"file_extension": "zip",
"file_name": "/about.zip",
"link_domain": "localhost",
"link_id": "internaldownload",
"link_id": "internalDownload",
"link_text": "/about.zip",
"link_url": "http://localhost:8080/about.zip",
}
Expand All @@ -39,4 +39,4 @@ Then("the file download is not reported to DAP", async function () {
return window.dataLayer.find(item => item[0] === 'event' && item[1] === 'file_download');
});
expect(event).to.be.undefined;
});
});

0 comments on commit 9bda41f

Please sign in to comment.