Skip to content

Commit

Permalink
feat(e2e): add maunal tests for adv + small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLantukh committed Apr 21, 2023
1 parent 5d80636 commit 0b44891
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions test-cases/analytics.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Feature: Analytics

# It is possible to see differences in `ti` param value equalling to 1-2 seconds.
# `225tvq1i` config can be used

Scenario: Watching the video from the beginning with 1 fast-forwad
Given Start watching the video "Elephants Dream"
Expand Down Expand Up @@ -31,12 +32,12 @@ Feature: Analytics
When Rewind the video from "7:15 to "02:00"
Then Expect `vs` event to be send
When Watch the video from "2:00 to 2:15"
Then Expect `t` event to be send with a value of 10 as `ti` param
Then Expect `t` event to be send with a value of 9 as `ti` param

Scenario: Watching the video from the Continue Watching shelf with 1 fast-forwad and 1 rewind actions
Given Start watching the video "Elephants Dream" from the 3:00 minute (from Continue Watching shelf)
When Watch the video from "03:00 to 03:30"
Then Expect 2 `t` events to be sent with values of 3 and 20 as `ti` param
Then Expect 2 `t` events to be sent with values of 4 and 20 as `ti` param
When Fast-forward the video from "03:30 to 06:00"
Then Expect `vs` event to be sent
When Watch the video from "06:00 to 06:35"
Expand All @@ -55,14 +56,21 @@ Feature: Analytics
When Watch the video from "7:00 to 7:15"
Then Expect `t` event to be sent with a value of 14 as `ti` param
When Click on "Back" button
Then Expect `t` event to be sent with a value of 6 as `ti` param
Then Expect `gab` event to be sent
Scenario: Watching the video from the beginning with 1 pre-roll ad
Given Start watching the video "Elephants Dream" using the config with an ad-schedule set up (`egpovogv`)
When Watch the video with advertising from "00:00 to 00:25"
Then Expect `i` event to be sent
Then Expect `t` event to be sent with a value of 20 as `ti` param
Scenario: Watching the video from the Continue Watching shelf till the end
Given Start watching the video "Elephants Dream" from the 10:00 minute (from Continue Watching shelf)
When Watch the video from "10:00 to 10:53"
Then Expect 3 `t` events to be sent with values of 12, 20 and 20 as `ti` param
Scenario: Watching Live Stream and rewinding
Then Expect `gab` event to be sent
Scenario: Watching Live Stream and rewinding
Given Start watching "Channel 1" from any point
When Watch 25 seconds of the stream
Then Expect 1 `t` event to be sent with a value of 20 as `ti` param
Expand Down

0 comments on commit 0b44891

Please sign in to comment.