From b6f49d0899265a5b0bcf1b79d5bf11184d446816 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 29 Jan 2018 20:58:17 +0100 Subject: Modal content fix --- src/test/kotlin/test/pl/treksoft/kvision/modal/AlertSpec.kt | 2 +- src/test/kotlin/test/pl/treksoft/kvision/modal/ConfirmSpec.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/kotlin/test/pl/treksoft/kvision/modal/AlertSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/modal/AlertSpec.kt index 15ca9b50..d34bbb2b 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/modal/AlertSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/modal/AlertSpec.kt @@ -22,7 +22,7 @@ class AlertSpec : DomSpec { val title = document.getElementById("test")?.let { jQuery(it).find(".modal-title").html() } assertEquals("Alert caption", title, "Should render alert window with correct caption") val body = document.getElementById("test")?.let { jQuery(it).find(".modal-body").html() } - assertEquals("Alert content", body, "Should render alert window with correct content") + assertEquals("
Alert content
", body, "Should render alert window with correct content") val footer = document.getElementById("test")?.let { jQuery(it).find(".modal-footer").html() } assertEquals( "", diff --git a/src/test/kotlin/test/pl/treksoft/kvision/modal/ConfirmSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/modal/ConfirmSpec.kt index 0d3bbc72..06b71720 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/modal/ConfirmSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/modal/ConfirmSpec.kt @@ -22,7 +22,7 @@ class ConfirmSpec : DomSpec { val title = document.getElementById("test")?.let { jQuery(it).find(".modal-title").html() } assertEquals("Confirm caption", title, "Should render confirm window with correct caption") val body = document.getElementById("test")?.let { jQuery(it).find(".modal-body").html() } - assertEquals("Confirm content", body, "Should render confirm window with correct content") + assertEquals("
Confirm content
", body, "Should render confirm window with correct content") val buttons = document.getElementById("test")?.let { jQuery(it).find(".modal-footer").find("button") } assertEquals(2, buttons?.length, "Should render confirm window with two buttons") val button = document.getElementById("test")?.let { jQuery(it).find(".modal-footer").find("button")[0] } -- cgit