Skip to content

Commit f68ab5f

Browse files
levinmrMichael Levin
authored andcommitted
[Tech Debt] Fix file download tests for casing changes in 8.4
1 parent 0966123 commit f68ab5f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

features/autotracker_download.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ Feature: Downloads are reported to DAP when autotracking is enabled
88
Given DAP is configured with autotracking enabled
99
When I load the test site
1010
And I click on a file to download it
11-
Then the file download is reported to DAP with interaction type "mouse click"
11+
Then the file download is reported to DAP with interaction type "Mouse Click"
1212

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

1919
Scenario: User clicks to download file with autotracker off
2020
Given DAP is configured with autotracking disabled
2121
When I load the test site
2222
And I click on a file to download it
23-
Then the file download is not reported to DAP
23+
Then the file download is not reported to DAP

features/support/step_definitions/dataLayer_steps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Then("the file download is reported to DAP with interaction type {string}", asyn
2626
"file_extension": "zip",
2727
"file_name": "/about.zip",
2828
"link_domain": "localhost",
29-
"link_id": "internaldownload",
29+
"link_id": "internalDownload",
3030
"link_text": "/about.zip",
3131
"link_url": "http://localhost:8080/about.zip",
3232
}
@@ -39,4 +39,4 @@ Then("the file download is not reported to DAP", async function () {
3939
return window.dataLayer.find(item => item[0] === 'event' && item[1] === 'file_download');
4040
});
4141
expect(event).to.be.undefined;
42-
});
42+
});

0 commit comments

Comments
 (0)