fix(selenium-tests): restore tests to functional state (#3923)

This commit is contained in:
Marc Pichler 2023-06-27 07:08:03 +02:00 committed by GitHub
parent 15ede4700b
commit 10c3e934cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -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,
};
};
};

View File

@ -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');

View File

@ -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');

View File

@ -2,4 +2,4 @@ const TIMEOUT_ELEMENT_MS = 5000;
module.exports = {
TIMEOUT_ELEMENT_MS,
};
};

View File

@ -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'],
},
};
};