Skip to content

Commit 1aacc8d

Browse files
authored
test: fix smoke test for legacySPASupport (#741)
1 parent 215d4c2 commit 1aacc8d

File tree

9 files changed

+18
-9
lines changed

9 files changed

+18
-9
lines changed

smoke/smoke-test-application-CDN/smoke.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
'content-type': 'application/json'
4141
},
4242
useBeacon: false,
43-
releaseId: '2.1.7'
43+
releaseId: '2.1.7',
44+
legacySPASupport: true
4445
});
4546
</script>
4647

smoke/smoke-test-application-CDN/smoke_w3c_format_enabled.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
},
4242
useBeacon: false,
4343
releaseId: '2.1.7',
44-
enableW3CTraceId: true
44+
enableW3CTraceId: true,
45+
legacySPASupport: true
4546
});
4647
</script>
4748

smoke/smoke-test-application-NPM-CJS/src/loader-npm-rum-2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ try {
1414
cookieAttributes: {
1515
unique: true
1616
},
17-
useBeacon: false
17+
useBeacon: false,
18+
legacySPASupport: true
1819
};
1920

2021
const APPLICATION_ID: string = $MONITOR_ID_2;

smoke/smoke-test-application-NPM-CJS/src/loader-npm-rum-w3c-format-enabled.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ try {
2222
'content-type': 'application/json'
2323
},
2424
useBeacon: false,
25-
enableW3CTraceId: true
25+
enableW3CTraceId: true,
26+
legacySPASupport: true
2627
};
2728

2829
const APPLICATION_ID: string = $MONITOR_ID;

smoke/smoke-test-application-NPM-CJS/src/loader-npm-rum.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ try {
2121
'x-api-key': 'a1b2c3d4e5f6',
2222
'content-type': 'application/json'
2323
},
24-
useBeacon: false
24+
useBeacon: false,
25+
legacySPASupport: true
2526
};
2627

2728
const APPLICATION_ID: string = $MONITOR_ID;

smoke/smoke-test-application-NPM-ES/src/loader-npm-rum-2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ try {
1515
unique: true
1616
},
1717
useBeacon: false,
18-
releaseId: '2.1.7'
18+
releaseId: '2.1.7',
19+
legacySPASupport: true
1920
};
2021

2122
const APPLICATION_ID: string = $MONITOR_ID_2;

smoke/smoke-test-application-NPM-ES/src/loader-npm-rum-w3c-format-enabled.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ try {
2222
'content-type': 'application/json'
2323
},
2424
useBeacon: false,
25-
enableW3CTraceId: true
25+
enableW3CTraceId: true,
26+
legacySPASupport: true
2627
};
2728

2829
const APPLICATION_ID: string = $MONITOR_ID;

smoke/smoke-test-application-NPM-ES/src/loader-npm-rum.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ try {
2222
'content-type': 'application/json'
2323
},
2424
useBeacon: false,
25-
releaseId: '2.1.7'
25+
releaseId: '2.1.7',
26+
legacySPASupport: true
2627
};
2728

2829
const APPLICATION_ID: string = $MONITOR_ID;

src/loader/loader-page-event.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ loader('cwr', 'abc123', '1.0', 'us-west-2', './rum_javascript_telemetry.js', {
77
telemetries: [],
88
pagesToInclude: [/\/(page_event.html|page_view_one|page_view_two)/],
99
pagesToExclude: [/\/page_view_do_not_record/],
10-
clientBuilder: showRequestClientBuilder
10+
clientBuilder: showRequestClientBuilder,
11+
legacySPASupport: true
1112
});
1213
window.cwr('setAwsCredentials', {
1314
accessKeyId: 'a',

0 commit comments

Comments
 (0)