-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZK-5475: select a date with time produces an invalid result under loc…
…ale pt
- Loading branch information
1 parent
7c71d50
commit 1d27a30
Showing
5 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
B101-ZK-5475.zul | ||
Purpose: | ||
Description: | ||
History: | ||
2024/9/18, Created by jumperchen | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
--> | ||
<zk> | ||
<label multiline="true"> | ||
1. The datebox should show the date "13 de junho de 2024 00:00:00". | ||
2. Please change "00:00:00" to "00:00:01" and then blur the datebox. | ||
3. If you see the date "13 de junho de 2024 00:00:01" in the datebox, the test is OK. Otherwise, any error happens it's a bug. | ||
</label> | ||
<datebox cols="30" format="d 'de' MMMM y HH:mm:ss" onCreate='self.valueInLocalDate = java.time.LocalDate.parse("2024-06-13")' locale="pt" /> | ||
</zk> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
zktest/src/test/java/org/zkoss/zktest/zats/test2/B101_ZK_5475Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* B101_ZK_5475Test.java | ||
Purpose: | ||
Description: | ||
History: | ||
2:48 PM 2024/9/18, Created by jumperchen | ||
Copyright (C) 2024 Potix Corporation. All Rights Reserved. | ||
*/ | ||
package org.zkoss.zktest.zats.test2; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import org.zkoss.test.webdriver.WebDriverTestCase; | ||
|
||
/** | ||
* @author jumperchen | ||
*/ | ||
public class B101_ZK_5475Test extends WebDriverTestCase { | ||
@Test | ||
public void test() { | ||
connect(); | ||
assertEquals("13 de junho 2024 00:00:00", jq(".z-datebox-input").val()); | ||
type(jq(".z-datebox-input"), "13 de junho 2024 00:00:01"); | ||
blur(jq(".z-datebox-input")); | ||
waitResponse(true); | ||
assertEquals(0, jq(".z-errorbox").length()); | ||
assertEquals("13 de junho 2024 00:00:01", jq(".z-datebox-input").val()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters