Skip to content

Commit

Permalink
fix(selenium-tests): restore tests to functional state (#3923)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc authored Jun 27, 2023
1 parent 15ede47 commit 10c3e93
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions selenium-tests/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ module.exports = function (api) {
];
const plugins = [
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
['@babel/plugin-proposal-class-properties', { 'loose': true }],
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
['@babel/plugin-transform-class-properties', { 'loose': true }],
["@babel/plugin-transform-private-methods", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
];
return {
presets,
plugins,
};
};
};
2 changes: 1 addition & 1 deletion selenium-tests/pages/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const getData = (url) => fetch(url, {

// example of keeping track of context between async operations
const prepareClickEvent = () => {
const url = 'https://httpbin.org/get';
const url = 'https://httpstat.us/200';

const element = document.getElementById('button1');

Expand Down
4 changes: 2 additions & 2 deletions selenium-tests/pages/xhr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const provider = loadOtel([
new XMLHttpRequestInstrumentation({
ignoreUrls: [/localhost:8090\/sockjs-node/],
propagateTraceHeaderCorsUrls: [
'https://httpbin.org/get',
'https://httpstat.us/200',
],
clearTimingResources: true,
}),
Expand All @@ -35,7 +35,7 @@ const getData = (url) => new Promise((resolve, reject) => {

// example of keeping track of context between async operations
const prepareClickEvent = () => {
const url = 'https://httpbin.org/get';
const url = 'https://httpstat.us/200';

const element = document.getElementById('button1');

Expand Down
2 changes: 1 addition & 1 deletion selenium-tests/tests-helpers/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ const TIMEOUT_ELEMENT_MS = 5000;

module.exports = {
TIMEOUT_ELEMENT_MS,
};
};
4 changes: 2 additions & 2 deletions selenium-tests/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
filename: '[name].js',
sourceMapFilename: '[file].map',
},
target: ['web', 'es5'],
target: 'web',
module: {
rules: [
{
Expand All @@ -35,4 +35,4 @@ module.exports = {
],
extensions: ['.ts', '.js', '.jsx', '.json'],
},
};
};

0 comments on commit 10c3e93

Please sign in to comment.