From d703c7cc0172fa292e2157bcc307a4f3c4c2fa42 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Wed, 4 Mar 2020 14:00:51 +0100 Subject: [PATCH] Regression test contest active window --- docker/oef_regression_test/docker-compose.yaml | 1 + regression_test/regression_test.go | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docker/oef_regression_test/docker-compose.yaml b/docker/oef_regression_test/docker-compose.yaml index bacfe0ba..2c582262 100644 --- a/docker/oef_regression_test/docker-compose.yaml +++ b/docker/oef_regression_test/docker-compose.yaml @@ -42,6 +42,7 @@ services: - "4444:4444" - "5900:5900" volumes: + - /etc/localtime:/etc/localtime:ro - /dev/shm:/dev/shm volumes: diff --git a/regression_test/regression_test.go b/regression_test/regression_test.go index d9be1f1c..467b9cd3 100644 --- a/regression_test/regression_test.go +++ b/regression_test/regression_test.go @@ -317,12 +317,14 @@ func (t *testSuite) TestContestActiveWindow() { panic(err) } - err = findElement("#contest_date").Click() - if err != nil { - panic(err) - } + err = findElement("#contest_description").SendKeys("Gara per la categoria JUNIOR") - err = findElement(".datetime-edit-field").SendKeys("04032020") + err = findElement("#contest_date").SendKeys("2020-04-03") + err = findElement("#contest_start_time").SendKeys("14:00") + err = findElement("#contest_end_time").SendKeys("15:00") + err = findElement("#contest_duration").SendKeys("45") + + err = findElement(".btn-primary").Click() t.True(true)