From 70c1bfb84593279e056b02325468854fabff0b1d Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Mon, 27 Nov 2017 08:09:25 +0300 Subject: [PATCH] Adding atom tests for handling text-transform property --- javascript/atoms/test/text_test.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/javascript/atoms/test/text_test.html b/javascript/atoms/test/text_test.html index 2f8c0d0b90185..2b8e2251bb772 100644 --- a/javascript/atoms/test/text_test.html +++ b/javascript/atoms/test/text_test.html @@ -255,6 +255,15 @@ }); } + function testGetVisibleTextShouldHandleTextTransformProperty() { + var text = getVisibleTextByElementId("capitalized"); + assertEquals("Hello, World! Bla-bla-BLA", text); + text = getVisibleTextByElementId("lowercased"); + assertEquals("hello, world! bla-bla-bla", text); + text = getVisibleTextByElementId("uppercased"); + assertEquals("HELLO, WORLD! BLA-BLA-BLA", text); + } + function getVisibleTextByElementId(id) { var e = bot.locators.findElement({id: id}); return bot.dom.getVisibleText(e); @@ -388,5 +397,11 @@ This line has a bunch of ze​ro-width‎ characters‏ in it. +
+ Hello, world! bla-bla-BLA
+ Hello, world! bla-bla-BLA
+ Hello, world! bla-bla-BLA
+
+