Skip to content

Commit 5f6938b

Browse files
twometresteveSteve Kirkland
andauthored
Rename fixtures files (batch 2) (#2621)
* Rename csp fixture * Rename delivery fixture * Rename device fixture files --------- Co-authored-by: Steve Kirkland <steve.kirkland@smartbear.com>
1 parent a80ae88 commit 5f6938b

8 files changed

Lines changed: 13 additions & 12 deletions

File tree

test/browser/features/csp.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Feature: Compatibility with a Content Security Policy
33

44
Scenario: notifer does not crash for CSP violations
5-
When I navigate to the test URL "/csp/script/a.html"
5+
When I navigate to the test URL "/csp/script/no_crash.html"
66
Then I let the test page run for up to 10 seconds

test/browser/features/delivery.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ Feature: Delivery of errors
33
@skip_ie_10
44
Scenario: Delivery is attempted oversized payloads
55
When I set the HTTP status code for the next "POST" request to 400
6-
And I navigate to the test URL "/delivery/script/a.html"
7-
And I wait for 5 seconds
6+
And I navigate to the test URL "/delivery/script/oversized.html"
87
Then I wait to receive an error
98

109
# Check that Bugsnag is discarding the event

test/browser/features/device.feature

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Feature: Browser device data
33

44
Scenario: 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

1414
Scenario: 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
2525
Scenario: 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"
File renamed without changes.

test/browser/features/fixtures/delivery/script/a.html renamed to test/browser/features/fixtures/delivery/script/oversized.html

File renamed without changes.

test/browser/features/fixtures/device/script/b.html renamed to test/browser/features/fixtures/device/script/disabled.html

File renamed without changes.

test/browser/features/fixtures/device/script/a.html renamed to test/browser/features/fixtures/device/script/enabled.html

File renamed without changes.

test/browser/features/fixtures/device/script/c.html renamed to test/browser/features/fixtures/device/script/store_id.html

File renamed without changes.

0 commit comments

Comments
 (0)