File tree Expand file tree Collapse file tree
src/test/kotlin/xyz/cssxsh/mirai/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ mirai {
5555 jvmTarget = JavaVersion .VERSION_11
5656 coreVersion = " 2.15.0-dev-120"
5757 consoleVersion = " 2.15.0-dev-120"
58- useTestConsoleFrontEnd = null
58+ if (System .getenv(" CI" ).toBoolean()) {
59+ useTestConsoleFrontEnd = null
60+ }
5961}
6062
6163tasks {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package xyz.cssxsh.mirai.test
33import kotlinx.coroutines.*
44import net.mamoe.mirai.console.plugin.jvm.*
55import net.mamoe.mirai.utils.*
6+ import org.openqa.selenium.OutputType
67import org.openqa.selenium.remote.*
78import xyz.cssxsh.mirai.selenium.*
89import xyz.cssxsh.mirai.selenium.data.*
@@ -131,8 +132,7 @@ internal class MiraiSeleniumPluginTest :
131132 ]
132133 }
133134 """ .trimIndent()
134- val content = driver.echarts(meta = EChartsMeta (option = option))
135- val (type, bytes) = data(url = content)
135+ val content = driver.echartsAs(meta = EChartsMeta (option = option), outputType = OutputType .FILE )
136136 }
137137 }
138138 }
You can’t perform that action at this time.
0 commit comments