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 2026/04/02 08:30:49 UTC

(myfaces-tobago) branch main updated: test: delete Jasmine test after migration to Playwright

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/main by this push:
     new 5e1f0b6576 test: delete Jasmine test after migration to Playwright
5e1f0b6576 is described below

commit 5e1f0b6576e1ea740261cb3d1ff2354f240a07d6
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Thu Apr 2 10:20:47 2026 +0200

    test: delete Jasmine test after migration to Playwright
---
 .../webapp/content/010-input/40-date/Date.test.js  | 60 ----------------------
 1 file changed, 60 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/010-input/40-date/Date.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/010-input/40-date/Date.test.js
deleted file mode 100644
index 5ecd7671f8..0000000000
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/010-input/40-date/Date.test.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import {elementByIdFn, querySelectorFn} from "/script/tobago-test.js";
-import {JasmineTestTool} from "/tobago/test/tobago-test-tool.js";
-
-it("inputfield with label", function (done) {
-  const labelFn = querySelectorFn("#page\\:mainForm\\:dNormal > label");
-  const dateFieldFn = querySelectorFn("#page\\:mainForm\\:dNormal\\:\\:field");
-  const sputnik = "1969-07-20";
-  const other = "1999-12-31";
-
-  const test = new JasmineTestTool(done);
-  test.do(() => expect(labelFn().textContent).toBe("Date"));
-  test.do(() => expect(dateFieldFn().value).toBe(sputnik));
-  test.do(() => dateFieldFn().value = other);
-  test.do(() => expect(dateFieldFn().value).toBe(other));
-  test.start();
-});
-
-it("submit", function (done) {
-  const dateFieldFn = elementByIdFn("page:mainForm:formSubmit:input::field");
-  const outputFn = querySelectorFn("#page\\:mainForm\\:formSubmit\\:output .form-control-plaintext");
-  const submitFn = elementByIdFn("page:mainForm:formSubmit:button");
-
-  const test = new JasmineTestTool(done);
-  test.setup(() => outputFn().textContent === "2016-05-22", () => dateFieldFn().value = "2016-05-22", "click", submitFn);
-  test.do(() => expect(outputFn().textContent).toBe("2016-05-22"));
-  test.do(() => dateFieldFn().value = "1952-07-29");
-  test.event("click", submitFn, () => outputFn().textContent === "1952-07-29");
-  test.do(() => expect(outputFn().textContent).toBe("1952-07-29"));
-  test.start();
-});
-
-it("ajax", function (done) {
-  const dateFieldFn = elementByIdFn("page:mainForm:ajaxinput::field");
-  const outputFn = querySelectorFn("#page\\:mainForm\\:outputfield .form-control-plaintext");
-
-  const test = new JasmineTestTool(done);
-  test.setup(() => outputFn().textContent === "", () => dateFieldFn().value = "", "change", dateFieldFn);
-  test.do(() => expect(outputFn().textContent).toBe(""));
-  test.do(() => dateFieldFn().value = "1857-03-04");
-  test.event("change", dateFieldFn, () => outputFn().textContent === "1857-03-04");
-  test.do(() => expect(outputFn().textContent).toBe("1857-03-04"));
-  test.start();
-});