fix(selenium-tests): restore tests to functional state (#3923)
This commit is contained in:
parent
15ede4700b
commit
10c3e934cc
|
@ -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,
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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,
|
||||
}),
|
||||
|
@ -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');
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@ const TIMEOUT_ELEMENT_MS = 5000;
|
|||
|
||||
module.exports = {
|
||||
TIMEOUT_ELEMENT_MS,
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
filename: '[name].js',
|
||||
sourceMapFilename: '[file].map',
|
||||
},
|
||||
target: ['web', 'es5'],
|
||||
target: 'web',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
@ -35,4 +35,4 @@ module.exports = {
|
|||
],
|
||||
extensions: ['.ts', '.js', '.jsx', '.json'],
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue