Skip to content

Commit 99b22a6

Browse files
author
Dan Skinner
committed
run e2e tests over https
1 parent ed46087 commit 99b22a6

20 files changed

+57
-57
lines changed

test/browser/features/angular.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Feature: Angular
66

77
Scenario: Angular route change spans are automatically instrumented
8-
Given I navigate to the test URL "/angular/dist"
8+
Given I navigate to the test URL "/docs/angular/dist"
99
And the element "customers" is present
1010
And I click the element "customers"
1111
When I wait to receive 1 trace
@@ -25,7 +25,7 @@ Feature: Angular
2525
| bugsnag.browser.page.route_change.trigger | stringValue | imperative |
2626

2727
Scenario: Route with a custom URL matcher
28-
Given I navigate to the test URL "/angular/dist"
28+
Given I navigate to the test URL "/docs/angular/dist"
2929
And the element "customMatching" is present
3030
And I click the element "customMatching"
3131
When I wait to receive 1 trace

test/browser/features/custom-attributes.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Custom attributes
22

33
Scenario: Custom attributes can be added to spans
4-
Given I navigate to the test URL "/custom-attributes"
4+
Given I navigate to the test URL "/docs/custom-attributes"
55
And I wait for 1 span
66

77
Then a span named "Custom/CustomAttributesScenario" contains the attributes:

test/browser/features/device-id.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Feature: Device ID persistence
22

33
Scenario: persisted device ID is used if present
44
# load the page and persist an ID
5-
Given I navigate to the test URL "/retry-scenario"
5+
Given I navigate to the test URL "/docs/retry-scenario"
66
And I wait to receive a sampling request
77
And I store the device ID "c1234567890abcdefghijklmnop"
88

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Feature: Configuration
22

33
Scenario: Delivery is prevented when releaseStage is not in enabledReleaseStages
4-
Given I navigate to the test URL "/enabled-release-stages-disabled"
4+
Given I navigate to the test URL "/docs/enabled-release-stages-disabled"
55
Then I should receive no traces
66

77
Scenario: Delivery is allowed when releaseStage is present in enabledReleaseStages
8-
Given I navigate to the test URL "/enabled-release-stages"
8+
Given I navigate to the test URL "/docs/enabled-release-stages"
99
And I wait to receive at least 1 trace
1010
Then the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.name" equals "Custom/Should send"
1111
And the trace payload field "resourceSpans.0.resource" string attribute "deployment.environment" equals "test"

test/browser/features/error-correlation.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Feature: Error Correlation
22

33
Scenario: Error does not include the correlation property when no spans are open
4-
Given I navigate to the test URL "/error-correlation"
4+
Given I navigate to the test URL "/docs/error-correlation"
55
And I wait to receive a sampling request
66
And I click the element "send-error"
77
And I wait to receive an error
88
Then the error is a valid browser payload for the error reporting API
99
And the error payload field "events.0.correlation" is null
1010

1111
Scenario: Reported errors include the current trace and span id
12-
Given I navigate to the test URL "/error-correlation"
12+
Given I navigate to the test URL "/docs/error-correlation"
1313
And I wait to receive a sampling request
1414
Then I click the element "start-span"
1515
And I wait for 1 second
@@ -33,7 +33,7 @@ Feature: Error Correlation
3333
And the error payload field "events.0.correlation.traceId" equals the stored value "traceId"
3434

3535
Scenario: Reported errors do not include the trace and span id if the span is not the current context
36-
Given I navigate to the test URL "/error-correlation"
36+
Given I navigate to the test URL "/docs/error-correlation"
3737
And I wait to receive a sampling request
3838
Then I click the element "start-span"
3939
And I wait for 1 second

test/browser/features/fixed-sampling-probability.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Fixed Sampling Probability
22

33
Scenario: Uses configured sampling probability
4-
Given I navigate to the test URL "/fixed-sampling-probability"
4+
Given I navigate to the test URL "/docs/fixed-sampling-probability"
55
And I enter unmanaged traces mode
66
When I click the element "send-span"
77
And I wait to receive 1 trace

test/browser/features/lib/url-generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def initialize(maze_uri, fixtures_uri)
55
end
66

77
def for_path(path)
8-
uri = URI.join(@maze_uri, "/docs#{path}")
8+
uri = URI.join(@maze_uri, path)
99
config_query_string = "endpoint=#{@maze_uri}/traces&logs=#{@maze_uri}/logs&api_key=#{$api_key}&notify=#{@maze_uri}/notify&sessions=#{@maze_uri}/sessions"
1010

1111
if uri.query

test/browser/features/manual-spans.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Manual creation of spans
22

33
Scenario: Manual spans can be logged
4-
Given I navigate to the test URL "/manual-span"
4+
Given I navigate to the test URL "/docs/manual-span"
55
And I wait to receive a sampling request
66
Then I click the element "send-span"
77
And I wait for 1 span
@@ -23,7 +23,7 @@ Feature: Manual creation of spans
2323
And the trace payload field "resourceSpans.0.resource" string attribute "service.name" equals "manual-span"
2424

2525
Scenario: isFirstClass span option can be set to false
26-
Given I navigate to the test URL "/manual-span?isFirstClass=false"
26+
Given I navigate to the test URL "/docs/manual-span?isFirstClass=false"
2727
And I wait to receive a sampling request
2828
Then I click the element "send-span"
2929
And I wait for 1 span
@@ -46,7 +46,7 @@ Feature: Manual creation of spans
4646

4747
@chromium_only @local_only
4848
Scenario: userAgentData is included in custom span
49-
Given I navigate to the test URL "/manual-span"
49+
Given I navigate to the test URL "/docs/manual-span"
5050
And I wait to receive a sampling request
5151
When I click the element "send-span"
5252
And I wait for 1 span
@@ -62,7 +62,7 @@ Feature: Manual creation of spans
6262
| Unknown |
6363

6464
Scenario: Spans can be logged before start
65-
Given I navigate to the test URL "/pre-start-spans"
65+
Given I navigate to the test URL "/docs/pre-start-spans"
6666
When I wait to receive at least 1 trace
6767
Then a span name equals "Custom/Post Start"
6868
And a span name equals "Custom/Pre Start Span 0"

test/browser/features/navigation-changes.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Feature: Navigation changes
33
@skip_span_time_validation
44
Scenario: Batch is sent when navigating to a new page by clicking an anchor tag
5-
Given I navigate to the test URL "/navigation-changes"
5+
Given I navigate to the test URL "/docs/navigation-changes"
66
When I click the element "add-span-to-batch"
77
And I click the element "add-span-to-batch"
88

@@ -18,7 +18,7 @@ Feature: Navigation changes
1818

1919
@skip_span_time_validation
2020
Scenario: Batch is sent when navigating to a new page by entering a new URL
21-
Given I navigate to the test URL "/navigation-changes"
21+
Given I navigate to the test URL "/docs/navigation-changes"
2222
When I click the element "add-span-to-batch"
2323
And I click the element "add-span-to-batch"
2424
And I click the element "add-span-to-batch"
@@ -36,7 +36,7 @@ Feature: Navigation changes
3636

3737
@minimises_window
3838
Scenario: Batch is sent when the window is minimised
39-
Given I navigate to the test URL "/navigation-changes"
39+
Given I navigate to the test URL "/docs/navigation-changes"
4040
When I click the element "add-span-to-batch"
4141
And I click the element "add-span-to-batch"
4242
And I click the element "add-span-to-batch"

test/browser/features/nested-spans.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Nested spans
22

33
Scenario: Spans are nested under the correct parent context
4-
Given I navigate to the test URL "/nested-spans"
4+
Given I navigate to the test URL "/docs/nested-spans"
55
And I wait for 5 spans
66

77
# Root span should have no parent

0 commit comments

Comments
 (0)