forked from streamlit/streamlit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate st_progress to playwright (streamlit#8325)
- Loading branch information
1 parent
c60e6e5
commit 4dbc82b
Showing
27 changed files
with
30 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+351 Bytes
...ght/__snapshots__/linux/st_progress_test/st_progress-0[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+567 Bytes
...ight/__snapshots__/linux/st_progress_test/st_progress-0[dark_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+404 Bytes
...right/__snapshots__/linux/st_progress_test/st_progress-0[dark_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+348 Bytes
...ht/__snapshots__/linux/st_progress_test/st_progress-0[light_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+586 Bytes
...ght/__snapshots__/linux/st_progress_test/st_progress-0[light_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+396 Bytes
...ight/__snapshots__/linux/st_progress_test/st_progress-0[light_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.09 KB
...ght/__snapshots__/linux/st_progress_test/st_progress-1[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.2 KB
...ight/__snapshots__/linux/st_progress_test/st_progress-1[dark_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.05 KB
...right/__snapshots__/linux/st_progress_test/st_progress-1[dark_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.02 KB
...ht/__snapshots__/linux/st_progress_test/st_progress-1[light_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.2 KB
...ght/__snapshots__/linux/st_progress_test/st_progress-1[light_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.98 KB
...ight/__snapshots__/linux/st_progress_test/st_progress-1[light_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.65 KB
...ght/__snapshots__/linux/st_progress_test/st_progress-2[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.1 KB
...ight/__snapshots__/linux/st_progress_test/st_progress-2[dark_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.42 KB
...right/__snapshots__/linux/st_progress_test/st_progress-2[dark_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.63 KB
...ht/__snapshots__/linux/st_progress_test/st_progress-2[light_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.05 KB
...ght/__snapshots__/linux/st_progress_test/st_progress-2[light_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.41 KB
...ight/__snapshots__/linux/st_progress_test/st_progress-2[light_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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,30 @@ | ||
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2024) | ||
# | ||
# Licensed 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. | ||
|
||
from playwright.sync_api import Page, expect | ||
|
||
from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_run | ||
|
||
|
||
def test_progress_renders_properly( | ||
themed_app: Page, assert_snapshot: ImageCompareFunction | ||
): | ||
progress_bars = themed_app.get_by_test_id("stProgress") | ||
expect(progress_bars.get_by_role("progressbar").nth(0)).to_have_attribute( | ||
"aria-valuenow", "50" | ||
) | ||
for i in range(len(progress_bars.all())): | ||
assert_snapshot( | ||
themed_app.get_by_test_id("stProgress").nth(i), name=f"st_progress-{i}" | ||
) |
Binary file removed
BIN
-364 Bytes
frontend/cypress/snapshots/linux/2x/st_progress.spec.js/progresbar-0-dark.snap.png
Binary file not shown.
Binary file removed
BIN
-361 Bytes
frontend/cypress/snapshots/linux/2x/st_progress.spec.js/progresbar-0.snap.png
Binary file not shown.
Binary file removed
BIN
-18.5 KB
frontend/cypress/snapshots/linux/2x/st_progress.spec.js/progresbar-1-dark.snap.png
Binary file not shown.
Binary file removed
BIN
-18.5 KB
frontend/cypress/snapshots/linux/2x/st_progress.spec.js/progresbar-1.snap.png
Binary file not shown.
Binary file removed
BIN
-5.72 KB
frontend/cypress/snapshots/linux/2x/st_progress.spec.js/progresbar-2-dark.snap.png
Binary file not shown.
Binary file removed
BIN
-5.71 KB
frontend/cypress/snapshots/linux/2x/st_progress.spec.js/progresbar-2.snap.png
Binary file not shown.