@web/test-runner-core
Advanced tools
Comparing version 0.5.4 to 0.5.5
# @web/test-runner-core | ||
## 0.5.5 | ||
### Patch Changes | ||
- 56ed519: open browser windows sequentially in selenium | ||
## 0.5.4 | ||
@@ -4,0 +10,0 @@ |
@@ -18,2 +18,5 @@ import { TestRunnerConfig } from '../runner/TestRunnerConfig'; | ||
* open the browser for the given URL. | ||
* | ||
* This function can be called multiple times in parallel, implementations which cannot | ||
* handle opening browser pages in parallel should set up a queuing system. | ||
* @param session | ||
@@ -20,0 +23,0 @@ */ |
@@ -102,7 +102,9 @@ "use strict"; | ||
}); | ||
const stopActions = []; | ||
for (const browser of this.browserLaunchers) { | ||
browser.stop().catch(error => { | ||
stopActions.push(browser.stop().catch(error => { | ||
console.error(error); | ||
}); | ||
})); | ||
} | ||
await Promise.all(stopActions); | ||
} | ||
@@ -135,5 +137,3 @@ startDebugFocusedTestFile() { | ||
session.browserLauncher.stopSession(session); | ||
this.scheduler.runScheduled(this.testRun).catch(error => { | ||
this.quit(error); | ||
}); | ||
this.scheduler.runScheduled(this.testRun); | ||
const finishedAll = Array.from(this.sessions.all()).every(s => s.status === TestSessionStatus_1.SESSION_STATUS.FINISHED); | ||
@@ -140,0 +140,0 @@ if (finishedAll) { |
@@ -12,4 +12,4 @@ import { TestRunnerConfig } from './TestRunnerConfig'; | ||
private clearTimeouts; | ||
schedule(testRun: number, sessionsToSchedule: Iterable<TestSession>): Promise<void>; | ||
runScheduled(testRun: number): Promise<void>; | ||
schedule(testRun: number, sessionsToSchedule: Iterable<TestSession>): void; | ||
runScheduled(testRun: number): void; | ||
private runSession; | ||
@@ -16,0 +16,0 @@ private setSessionFailed; |
@@ -36,9 +36,9 @@ "use strict"; | ||
} | ||
async schedule(testRun, sessionsToSchedule) { | ||
schedule(testRun, sessionsToSchedule) { | ||
for (const session of sessionsToSchedule) { | ||
this.sessions.updateStatus(session, TestSessionStatus_1.SESSION_STATUS.SCHEDULED); | ||
} | ||
return this.runScheduled(testRun); | ||
this.runScheduled(testRun); | ||
} | ||
async runScheduled(testRun) { | ||
runScheduled(testRun) { | ||
const scheduledIt = this.sessions.forStatus(TestSessionStatus_1.SESSION_STATUS.SCHEDULED); | ||
@@ -52,3 +52,3 @@ const runningCount = Array.from(this.sessions.forStatus(TestSessionStatus_1.SESSION_STATUS.INITIALIZING, TestSessionStatus_1.SESSION_STATUS.STARTED)).length; | ||
} | ||
await this.runSession(testRun, value); | ||
this.runSession(testRun, value); | ||
} | ||
@@ -69,3 +69,2 @@ } | ||
try { | ||
// TODO: Select associated browser | ||
await session.browserLauncher.startSession(session, createSessionUrl_1.createSessionUrl(this.config, session, false)); | ||
@@ -72,0 +71,0 @@ // when the browser started, wait for session to ping back on time |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61130
753