22Feature : Browser device data
33
44Scenario : Device data is included by default
5- When I navigate to the test URL "/device/script/a .html"
5+ When I navigate to the test URL "/device/script/enabled .html"
66 And I wait to receive an error
77 Then the error is a valid browser payload for the error reporting API
88 And the event "device.time" is not null
@@ -12,7 +12,7 @@ Scenario: Device data is included by default
1212 And the event device ID is valid
1313
1414Scenario : Device ID is not collected when the config option is disabled
15- When I navigate to the test URL "/device/script/b .html"
15+ When I navigate to the test URL "/device/script/disabled .html"
1616 And I wait to receive an error
1717 Then the error is a valid browser payload for the error reporting API
1818 And the event "device.time" is not null
@@ -23,17 +23,19 @@ Scenario: Device ID is not collected when the config option is disabled
2323
2424@skip_if_local_storage_is_unavailable
2525Scenario : Device ID is read from local storage
26- When I navigate to the test URL "/device/script/c .html"
26+ When I navigate to the test URL "/device/script/store_id .html"
2727 And I wait to receive an error
2828 Then the error is a valid browser payload for the error reporting API
2929 And the event device ID is "cabcdefghijklmnopqrstuvwx"
30- When I navigate to the test URL "/device/script/a.html"
31- # This is 2 requests because the first request still counts (i.e. it's only 1 _new_ request)
32- And I wait to receive 2 errors
30+ And I discard the oldest error
31+
32+ When I navigate to the test URL "/device/script/enabled.html"
33+ And I wait to receive an error
3334 Then the error is a valid browser payload for the error reporting API
3435 And the event device ID is "cabcdefghijklmnopqrstuvwx"
35- When I navigate to the test URL "/device/script/a.html"
36- # This is 3 requests because the first 2 requests still count
37- And I wait to receive 3 errors
36+ And I discard the oldest error
37+
38+ When I navigate to the test URL "/device/script/enabled.html"
39+ And I wait to receive an error
3840 Then the error is a valid browser payload for the error reporting API
3941 And the event device ID is "cabcdefghijklmnopqrstuvwx"
0 commit comments