add upgrade to firefox installation and refactor FirefoxKtTest

This commit is contained in:
az 2023-04-21 15:57:50 +02:00
parent d59154ddf6
commit 2393844ef4
2 changed files with 9 additions and 6 deletions

View file

@ -38,4 +38,5 @@ fun Prov.installFirefox() = task {
) )
aptInstall("firefox") aptInstall("firefox")
cmd("apt upgrade -y firefox", sudo = true)
} }

View file

@ -9,13 +9,15 @@ internal class FirefoxKtTest {
@ExtensiveContainerTest @ExtensiveContainerTest
fun installFirefox() { fun installFirefox() {
// when defaultTestContainer().session {
val res = defaultTestContainer().installFirefox() // when
val res = installFirefox()
// then // then
assertTrue(res.success) assertTrue(res.success)
val ffIsInstalled = defaultTestContainer().isPackageInstalled("firefox") val ffIsInstalled = isPackageInstalled("firefox")
assertTrue(ffIsInstalled) assertTrue(ffIsInstalled)
}
} }
} }