Skip to content

Instantly share code, notes, and snippets.

@Odepax
Created July 7, 2018 15:26
Show Gist options
  • Save Odepax/f43caabddf48adf51bb5a9ddbd19d6ba to your computer and use it in GitHub Desktop.
Save Odepax/f43caabddf48adf51bb5a9ddbd19d6ba to your computer and use it in GitHub Desktop.
Who said manual testing couldn't be automated?
package io.github.odepax.another.webapp
import org.junit.jupiter.api.Test
import java.util.Calendar
class FrontEndDesignTests {
private val months = 60 * 60 * 24 * 30
@Test
fun `displays correctly on all platforms`() {
assertManuallyTested(
lastTimeTested = Calendar.Builder().setDate(2018, 7, 7).build(),
expiresIn = 3 * months,
checkList = arrayOf(
"Check on any desktop",
"Check on Windows Phone",
"Check on Android",
"Check on iOS"
)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment