Add basic performance testing via Cypress (#8586)

This commit is contained in:
J. Ryan Stinnett
2022-05-17 15:38:45 +01:00
committed by GitHub
parent 83b3dfa341
commit c122c5cd3b
17 changed files with 169 additions and 18 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ function startSynapse(template: string): Chainable<SynapseInstance> {
function stopSynapse(synapse?: SynapseInstance): Chainable<AUTWindow> {
if (!synapse) return;
// Navigate away from app to stop the background network requests which will race with Synapse shutting down
return cy.window().then((win) => {
return cy.window({ log: false }).then((win) => {
win.location.href = 'about:blank';
cy.task("synapseStop", synapse.synapseId);
});