add upgrade to firefox installation and refactor FirefoxKtTest
This commit is contained in:
parent
d59154ddf6
commit
2393844ef4
2 changed files with 9 additions and 6 deletions
|
@ -38,4 +38,5 @@ fun Prov.installFirefox() = task {
|
|||
)
|
||||
|
||||
aptInstall("firefox")
|
||||
cmd("apt upgrade -y firefox", sudo = true)
|
||||
}
|
||||
|
|
|
@ -9,13 +9,15 @@ internal class FirefoxKtTest {
|
|||
|
||||
@ExtensiveContainerTest
|
||||
fun installFirefox() {
|
||||
defaultTestContainer().session {
|
||||
// when
|
||||
val res = defaultTestContainer().installFirefox()
|
||||
val res = installFirefox()
|
||||
|
||||
// then
|
||||
assertTrue(res.success)
|
||||
|
||||
val ffIsInstalled = defaultTestContainer().isPackageInstalled("firefox")
|
||||
val ffIsInstalled = isPackageInstalled("firefox")
|
||||
assertTrue(ffIsInstalled)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue