Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update date-text column tests to pass on all browsers #1959

Merged
merged 11 commits into from
Mar 28, 2024

Conversation

mollykreis
Copy link
Contributor

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

  • I have updated the project documentation to reflect my changes or determined no changes are needed.

@mollykreis mollykreis requested a review from m-akinc March 25, 2024 16:53
@mollykreis
Copy link
Contributor Author

@m-akinc, will you buddy this PR for me?

@mollykreis mollykreis marked this pull request as ready for review March 28, 2024 14:11
@mollykreis mollykreis enabled auto-merge (squash) March 28, 2024 16:53
@mollykreis mollykreis merged commit 0fa5905 into main Mar 28, 2024
13 checks passed
@mollykreis mollykreis deleted the consistent-date-text-formating branch March 28, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disabled TableColumnDateText tests on WebKit due to date formatting differences
4 participants