-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update date-text column tests to pass on all browsers (#1959)
# Pull Request ## 🤨 Rationale Resolves #1940 ## 👩💻 Implementation Added a page object function to get the expected cell text for a given value/locale combination. The function internally uses `Intl.DateTimeFormat` to determine the expected text, so that it will always return the correct value for a given browser. With this change, the tests still test all the column, cell, and group row formatting code without actually testing the nuances of the string returned from `Intl.DateTimeFormat`. ## 🧪 Testing Ran the tests for the date-text column in WebKit on my machine (Windows 10) and on the pipeline to verify they pass on both. ## ✅ Checklist <!--- Review the list and put an x in the boxes that apply or ~~strike through~~ around items that don't (along with an explanation). --> - [ ] I have updated the project documentation to reflect my changes or determined no changes are needed.
- Loading branch information
1 parent
25d8d8d
commit 0fa5905
Showing
4 changed files
with
64 additions
and
38 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@ni-nimble-components-26aadfad-c24c-4ad0-ae8e-e75769665e95.json
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,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Update date-text column tests to pass on all browsers", | ||
"packageName": "@ni/nimble-components", | ||
"email": "20542556+mollykreis@users.noreply.github.com", | ||
"dependentChangeType": "patch" | ||
} |
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
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