Add manual test support to e2e test framework

This commit is contained in:
ConfusedPolarBear 2022-11-08 20:53:42 -06:00
parent cc01c7657d
commit f70971c4e2
2 changed files with 17 additions and 8 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"bufio"
"bytes"
"crypto/rand"
"encoding/hex"
@ -174,6 +175,13 @@ func main() {
5*time.Minute)
fmt.Print("\033[39;0m") // reset terminal text color
// Pause for any manual tests
if server.ManualTests {
fmt.Println(" [!] Pausing for manual tests")
reader := bufio.NewReader(os.Stdin)
reader.ReadString('\n')
}
// Setup base Selenium arguments
seleniumArgs = []string{
"-u", // force stdout to be unbuffered

View File

@ -19,6 +19,7 @@ type Server struct {
Password string `json:"password"`
Browsers []string `json:"browsers"`
Tests []string `json:"tests"`
ManualTests bool `json:"manual_tests"`
// These properties are set at runtime
Docker bool `json:"-"`