15 lines
446 B
TypeScript
15 lines
446 B
TypeScript
|
|
import '@vegaprotocol/cypress';
|
|
|
|
// Hide fetch/XHR requests - They create a lot of noise in command log
|
|
const app = window.top;
|
|
if (!app.document.head.querySelector('[data-hide-command-log-request]')) {
|
|
const style = app.document.createElement('style');
|
|
style.innerHTML =
|
|
'.command-name-request, .command-name-xhr { display: none }';
|
|
style.setAttribute('data-hide-command-log-request', '');
|
|
|
|
app.document.head.appendChild(style);
|
|
}
|
|
|