Skip to content

Commit eaa69c2

Browse files
author
rocketraccoon
committed
fix(testplane): fix tests
1 parent b30ed6a commit eaa69c2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/integration/standalone/standalone.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ describe("Standalone Browser E2E Tests", function () {
2424

2525
let browser: WebdriverIO.Browser & { getDriverPid?: () => number | undefined };
2626

27-
after(async function () {
28-
await browser.deleteSession();
29-
});
30-
3127
it("should launch browser and access a website", async function () {
3228
browser = await launchBrowser(BROWSER_CONFIG);
3329

@@ -67,6 +63,8 @@ describe("Standalone Browser E2E Tests", function () {
6763
const screenshotBuffer = await browser.takeScreenshot();
6864
assert.ok(screenshotBuffer, "Should be able to take a screenshot");
6965
assert.ok(screenshotBuffer.length > 1000, "Screenshot should have reasonable size");
66+
67+
await browser.deleteSession();
7068
});
7169

7270
it("attach to browser works", async function () {

0 commit comments

Comments
 (0)