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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove flaky date input calendar snapshot test #6769

Merged
merged 2 commits into from Jun 1, 2023
Merged

Conversation

mayagbarnes
Copy link
Collaborator

@mayagbarnes mayagbarnes commented Jun 1, 2023

馃摎 Context

Flaky/Blocking test fix - st.date_input - renders the calendar component correctly

Removes the snapshot test for the empty date range st.date_input calendar (which always shows the current month/year) as it will break at least monthly - see below. We have 7 additional st.date_input calendar snapshot tests that cover both dark & light theme, so I don't think its removal impacts coverage.

Also added additional safeguard against GH Actions CI edge case where multiple calendars periodically passed to .matchImageSnapshot causing a .trigger error message (see error run here for example)

date_input_calendar_2-dark diff

@kmcgrady kmcgrady merged commit c411fc2 into develop Jun 1, 2023
42 checks passed
tconkling pushed a commit to tconkling/streamlit that referenced this pull request Jun 1, 2023
* Fix flaky date input snapshot test

* Fix trigger error edge case
sfc-gh-tconkling pushed a commit that referenced this pull request Jun 1, 2023
* Fix: Remove flaky date input calendar snapshot test (#6769)

* Fix flaky date input snapshot test

* Fix trigger error edge case

* Fix typo in data_editor docstring and deprecation msg: `edited_rows` -> `edited_cells` (#6770)

* Fix typo in data_editor warning: `edited_rows` -> `edited_cells`

* Fix same typo in deprecation warning

---------

Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>

* Up version to 1.23.0

---------

Co-authored-by: Maya Barnes <63436329+mayagbarnes@users.noreply.github.com>
Co-authored-by: Snehan Kekre <snehan.minerva@gmail.com>
Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>
@mayagbarnes mayagbarnes deleted the date-input-fix branch June 2, 2023 18:24
tconkling added a commit to tconkling/streamlit that referenced this pull request Jun 6, 2023
* develop:
  Remove tensorflow and pytorch from test requirements (streamlit#6807)
  Fix readme links (streamlit#6800)
  Update PR template to be simpler and more approachable (streamlit#6679)
  README updated with links to docs (streamlit#6780)
  Refactor: withHostCommunication -> HostCommunicationManager (streamlit#6746)
  Add python 3.11 to classifiers list. (streamlit#6786)
  Release/1.23.1 (streamlit#6777)
  We depend on typing-extensions 4.0.1 (streamlit#6776)
  Release/1.23.0 (streamlit#6773)
  Fix typo in data_editor docstring and deprecation msg: `edited_rows` -> `edited_cells` (streamlit#6770)
  Fix: Remove flaky date input calendar snapshot test (streamlit#6769)
  Fix 3218, patch pydantic in_ipython function (streamlit#6664)
  Upgrade react-range to fix memory usage of sliders (streamlit#6764)
  Make st.write pretty-print dataclasses using st.help (streamlit#6750)
  Replace curly with straightquotes in docstring examples (streamlit#6757)
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request Dec 20, 2023
* Fix flaky date input snapshot test

* Fix trigger error edge case
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request Dec 20, 2023
* Fix: Remove flaky date input calendar snapshot test (streamlit#6769)

* Fix flaky date input snapshot test

* Fix trigger error edge case

* Fix typo in data_editor docstring and deprecation msg: `edited_rows` -> `edited_cells` (streamlit#6770)

* Fix typo in data_editor warning: `edited_rows` -> `edited_cells`

* Fix same typo in deprecation warning

---------

Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>

* Up version to 1.23.0

---------

Co-authored-by: Maya Barnes <63436329+mayagbarnes@users.noreply.github.com>
Co-authored-by: Snehan Kekre <snehan.minerva@gmail.com>
Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Mar 22, 2024
* Fix flaky date input snapshot test

* Fix trigger error edge case
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Mar 22, 2024
* Fix: Remove flaky date input calendar snapshot test (streamlit#6769)

* Fix flaky date input snapshot test

* Fix trigger error edge case

* Fix typo in data_editor docstring and deprecation msg: `edited_rows` -> `edited_cells` (streamlit#6770)

* Fix typo in data_editor warning: `edited_rows` -> `edited_cells`

* Fix same typo in deprecation warning

---------

Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>

* Up version to 1.23.0

---------

Co-authored-by: Maya Barnes <63436329+mayagbarnes@users.noreply.github.com>
Co-authored-by: Snehan Kekre <snehan.minerva@gmail.com>
Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
* Fix flaky date input snapshot test

* Fix trigger error edge case
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
* Fix: Remove flaky date input calendar snapshot test (streamlit#6769)

* Fix flaky date input snapshot test

* Fix trigger error edge case

* Fix typo in data_editor docstring and deprecation msg: `edited_rows` -> `edited_cells` (streamlit#6770)

* Fix typo in data_editor warning: `edited_rows` -> `edited_cells`

* Fix same typo in deprecation warning

---------

Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>

* Up version to 1.23.0

---------

Co-authored-by: Maya Barnes <63436329+mayagbarnes@users.noreply.github.com>
Co-authored-by: Snehan Kekre <snehan.minerva@gmail.com>
Co-authored-by: Ken McGrady <ken.mcgrady@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants