You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2021/10/20 17:30:45 UTC
[myfaces-tobago] branch tobago-5.x updated: test: buttonLink
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/tobago-5.x by this push:
new 0574499 test: buttonLink
0574499 is described below
commit 057449940c1ccc583afdcd8ff8517cec1ade9d62
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Wed Oct 20 19:29:59 2021 +0200
test: buttonLink
---
.../webapp/content/900-test/4000-button-link/Button_Link.test.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4000-button-link/Button_Link.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4000-button-link/Button_Link.test.js
index 5fa95fa..dc29061 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4000-button-link/Button_Link.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4000-button-link/Button_Link.test.js
@@ -119,7 +119,9 @@ it("Style must not be a dropdown item", function (done) {
const styleAsItemFn = querySelectorFn("#page\\:mainForm\\:dropdownWithStyle .dropdown-menu .dropdown-item > style");
const buttonFn = elementByIdFn("page:mainForm:dropdownWithStyle::command");
- expect(dropdownMenuFn()).not.toBeNull();
- expect(styleAsItemFn()).toBeNull();
- expect(buttonFn().offsetWidth).toEqual(200);
+ const test = new JasmineTestTool(done);
+ test.do(() => expect(dropdownMenuFn()).not.toBeNull());
+ test.do(() => expect(styleAsItemFn()).toBeNull());
+ test.do(() => expect(buttonFn().offsetWidth).toEqual(200));
+ test.start();
});