Update all tests to include closing browser context

This commit is contained in:
veljko
2023-09-20 13:46:44 +02:00
committed by Veljko V
parent 22074731ed
commit 88f4c2510c
14 changed files with 14 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ let scenarios = {
},
},
vus: 1,
iterations: 3,
iterations: 1,
maxDuration: '30m',
exec: 'nightly',
},

View File

@@ -86,6 +86,7 @@ export async function formsAdding() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -143,6 +143,7 @@ export async function listsComplexSegment() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -75,6 +75,7 @@ export async function listsViewSubscribers() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -59,6 +59,7 @@ export async function newsletterListing() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -77,6 +77,7 @@ export async function newsletterSearching() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -109,7 +109,7 @@ export async function newsletterSending() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.close();
browser.context().close();
}
}

View File

@@ -86,6 +86,7 @@ export async function newsletterStatistics() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -102,6 +102,7 @@ export async function onboardingWizard() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -66,6 +66,7 @@ export async function settingsBasic() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -107,6 +107,7 @@ export async function subscribersAdding() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -97,6 +97,7 @@ export async function subscribersFiltering() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -59,6 +59,7 @@ export async function subscribersListing() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}

View File

@@ -97,6 +97,7 @@ export async function subscribersTrashingRestoring() {
sleep(randomIntBetween(thinkTimeMin, thinkTimeMax));
} finally {
page.close();
browser.context().close();
}
}