File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
fixtures/packages/route-change-spans/src Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ function Navigation() {
1212 < div >
1313 < nav >
1414 < li >
15- < Link to = "home " > Home</ Link >
15+ < Link to = "/docs/route-change-spans " > Home</ Link >
1616 </ li >
1717 < li >
18- < Link to = "new-route" id = "change-route" > Change Route</ Link >
18+ < Link to = "/ new-route" id = "change-route" > Change Route</ Link >
1919 </ li >
2020 </ nav >
2121 </ div >
@@ -24,13 +24,13 @@ function Navigation() {
2424
2525function App ( ) {
2626 return (
27- < Router basename = "/docs/route-change-spans/" >
27+ < Router >
2828 < Navigation />
2929 < Switch >
30- < Route path = "home " >
30+ < Route path = "/docs/route-change-spans " >
3131 < Home />
3232 </ Route >
33- < Route path = "new-route" >
33+ < Route path = "/ new-route" >
3434 < About />
3535 </ Route >
3636 </ Switch >
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ Feature: Route change spans
55 And I click the element "change-route"
66 When I wait to receive 1 trace
77
8- Then every span string attribute "bugsnag.browser.page.url" matches the regex "^http(s)?:\/\/ .*:[0-9]{4}\/ docs \/ route-change-spans/ new-route$"
8+ Then every span string attribute "bugsnag.browser.page.url" matches the regex "^http(s)?:\/\/ .*:[0-9]{4}\/ new-route$"
99 And a span named "[RouteChange]/new-route" contains the attributes:
1010 | attribute | type | value |
1111 | bugsnag .span .category | stringValue | route_change |
1212 | bugsnag .browser .page .title | stringValue | New Route |
13- | bugsnag .browser .page .route | stringValue | /docs / route - change - spans / new -route |
13+ | bugsnag .browser .page .route | stringValue | /new -route |
1414 | bugsnag .browser .page .previous_route | stringValue | /docs /route -change -spans / |
1515 | bugsnag .browser .page .route_change .trigger | stringValue | pushState |
1616
@@ -20,7 +20,7 @@ Feature: Route change spans
2020 When I wait to receive 1 trace
2121
2222 Then every span string attribute "bugsnag.browser.page.url" matches the regex "^http(s)?:\/\/ .*:[0-9]{4}\/ docs\/ route-change-spans(\/ )?\? endpoint=.*\& logs=.*\& api_key=.*#anchor-link$"
23- Then a span named "[RouteChange]/route-change-spans/" contains the attributes:
23+ Then a span named "[RouteChange]/docs/ route-change-spans/" contains the attributes:
2424 | attribute | type | value |
2525 | bugsnag .span .category | stringValue | route_change |
2626 | bugsnag .browser .page .title | stringValue | Route change spans |
You can’t perform that action at this time.
0 commit comments