diff --git a/src/integration-test/groovy/rooms/CalculatorSpec.groovy b/src/integration-test/groovy/rooms/CalculatorSpec.groovy index 22a98cd..ccc33ce 100644 --- a/src/integration-test/groovy/rooms/CalculatorSpec.groovy +++ b/src/integration-test/groovy/rooms/CalculatorSpec.groovy @@ -13,6 +13,7 @@ class CalculatorSpec extends GebSpec { void "Basic calculation"() { when: + go '/?lang=en' go '/static/GradeCalculator.html' then: title == "Grade Calculator" diff --git a/src/integration-test/groovy/rooms/InPlaceCalculatorSpec.groovy b/src/integration-test/groovy/rooms/InPlaceCalculatorSpec.groovy index b4b8f27..edb10e7 100644 --- a/src/integration-test/groovy/rooms/InPlaceCalculatorSpec.groovy +++ b/src/integration-test/groovy/rooms/InPlaceCalculatorSpec.groovy @@ -60,7 +60,7 @@ class InPlaceCalculatorSpec extends GebSpec { def alertWasRaised = withAlert { $("form").en = 0.9 // erroneous $("form").exam = 3.0 // ok - $("input", type: "submit").click() // sadly needed as stimulus + $("input", type: "submit").click() // sadly needed as stimulus to trigger the onChange } then: "the in-place JS logic should kick in" $("#en").attr('class') == "error" diff --git a/src/main/resources/public/GradeCalculator.html b/src/main/resources/public/GradeCalculator.html index f92f6ea..f540fa3 100644 --- a/src/main/resources/public/GradeCalculator.html +++ b/src/main/resources/public/GradeCalculator.html @@ -5,30 +5,28 @@ Grade Calculator
-
- - -
-
- - -
-
- -
+ + + + +