You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2020/12/10 08:05:27 UTC
[myfaces-tobago] branch master updated: Fix: UI Test
This is an automated email from the ASF dual-hosted git repository.
lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/master by this push:
new fa80b8c Fix: UI Test
fa80b8c is described below
commit fa80b8ccca1c2efd446f827328a2f24c4547c832
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Thu Dec 10 09:04:56 2020 +0100
Fix: UI Test
---
.../src/main/webapp/content/10-intro/Intro.test.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/Intro.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/Intro.test.js
index 72a2a3d..1a2309c 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/Intro.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/Intro.test.js
@@ -19,9 +19,9 @@ import {querySelectorFn} from "/script/tobago-test.js";
import {JasmineTestTool} from "/tobago/test/tobago-test-tool.js";
it("First section title is 'Intro'", function (done) {
- let titleOfFirstSectionHeader = querySelectorFn(".tobago-section-header > h1 > span");
+ let titleOfFirstSectionHeader = querySelectorFn("tobago-section h1");
let test = new JasmineTestTool(done);
- test.do(() => expect(titleOfFirstSectionHeader().textContent).toEqual("Intro"));
+ test.do(() => expect(titleOfFirstSectionHeader().textContent.trim()).toEqual("Intro"));
test.start();
});