-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1330 from dpc-sdp/feature/SD-257-form-start-event
[SD-257] - Added 'form start' analytics event
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
examples/nuxt-app/test/features/landingpage/forms-analytics.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Feature: Forms analytics events | ||
|
||
@mockserver | ||
Scenario: Form start | ||
Given the mock server has started | ||
And the page endpoint for path "/" returns fixture "/landingpage/full-form" with status 200 | ||
And the site endpoint returns fixture "/site/reference" with status 200 | ||
Given I visit the page "/" | ||
When I type "Cat" into the input with the label "Last name" | ||
Then the dataLayer should include the following events | ||
| event | form_id | form_name | component | platform_event | | ||
| form_start | full_form | Test form | rpl-form | start | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters