We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b84dbf commit 560e189Copy full SHA for 560e189
src/jvmTest/kotlin/ZenikaIntegrationTests.kt
@@ -39,14 +39,14 @@ class ZenikaIntegrationTests : LocalIntegrationTestBase() {
39
fun httpTabEndpoints_basic() {
40
runBlockingWithTimeout {
41
val chrome = chromeHttp()
42
- val originalTabCount = chrome.targets().size
+ chrome.closeAllTargets()
43
44
val newTab = chrome.newTab()
45
assertEquals("about:blank", newTab.url.trimEnd('/'))
46
- assertTargetCount(originalTabCount + 1, chrome.targets())
+ assertTargetCount(1, chrome.targets())
47
chrome.closeTab(newTab.id)
48
49
- assertTargetCount(originalTabCount, chrome.targets())
+ assertTargetCount(0, chrome.targets())
50
chrome.newTab()
51
52
chrome.closeAllTargets()
0 commit comments