-
Notifications
You must be signed in to change notification settings - Fork 654
Owen/v1 integration tests #5634
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
Closed
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
62e90f2
add CupertinoCheckbox test
OwenMcDonnell e361fff
add CupertinoRadio test
OwenMcDonnell f9aed35
add CupertinoSlider test
OwenMcDonnell e48a4a8
add CupertinoSwitch test and fix slider image names
OwenMcDonnell 42f4025
add CupertinoTextfield test
OwenMcDonnell 86cfb4a
Merge remote-tracking branch 'origin/main' into owen/v1-integration-t…
OwenMcDonnell 536f344
add Radio test, update .appveyor.yml
OwenMcDonnell 39888e2
add RangeSlider test
OwenMcDonnell f34a952
fix .appveyor.yml spelling error
OwenMcDonnell 7048481
add SearchBar test
OwenMcDonnell bea4382
add Slider tests
OwenMcDonnell 3685a9a
modify CupertinoTextfield test
OwenMcDonnell 8b886dc
Merge remote-tracking branch 'origin/main' into owen/v1-integration-t…
OwenMcDonnell 1f4fc85
add markdown and progress bar test
OwenMcDonnell e3dd128
remove cupertino prefix in control examples
OwenMcDonnell 1a2e928
make new example for textfield bg image
OwenMcDonnell df81bad
make new example for textfield bg image
OwenMcDonnell 9392f90
compare textfield focus methods
OwenMcDonnell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,38 @@ | ||
| import flet as ft | ||
|
|
||
|
|
||
| def main(page: ft.Page): | ||
| def handle_button_click(e: ft.Event[ft.ElevatedButton]): | ||
| message.value = f"Your favorite color is: {group.value}" | ||
| page.update() | ||
|
|
||
| page.add( | ||
| ft.Text("Select your favorite color:"), | ||
| group := ft.RadioGroup( | ||
| content=ft.Column( | ||
| controls=[ | ||
| ft.CupertinoRadio( | ||
| value="red", | ||
| label="Red", | ||
| active_color=ft.Colors.RED_200, | ||
| inactive_color=ft.Colors.RED_600, | ||
| ), | ||
| ft.CupertinoRadio( | ||
| value="green", | ||
| label="Green", | ||
| fill_color=ft.Colors.GREEN, | ||
| ), | ||
| ft.CupertinoRadio( | ||
| value="blue", | ||
| label="Blue", | ||
| active_color=ft.Colors.BLUE, | ||
| ), | ||
| ] | ||
| ) | ||
| ), | ||
| ft.ElevatedButton(content="Submit", on_click=handle_button_click), | ||
| message := ft.Text(), | ||
| ) | ||
|
|
||
|
|
||
| ft.run(main) |
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
sdk/python/examples/controls/cupertino_text_field/background_image.py
This file contains hidden or 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,18 @@ | ||
| import flet as ft | ||
|
|
||
|
|
||
| async def main(page: ft.Page): | ||
| page.theme_mode = ft.ThemeMode.LIGHT | ||
| page.add( | ||
| ctf := ft.CupertinoTextField( | ||
| label="Textfield Label", | ||
| label_style=ft.TextStyle(italic=True, weight=ft.FontWeight.BOLD), | ||
| bgcolor=ft.Colors.BLUE_GREY, | ||
| image=ft.DecorationImage( | ||
| src_base64="/9j/4QDeRXhpZgAASUkqAAgAAAAGABIBAwABAAAAAQAAABoBBQABAAAAVgAAABsBB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x72yC08kNX0Nisb6Mm7Sm3xJQxI0KumMqo+idy/kz4CRdoR7EDgbTEb0W2KFhR+hI6HX0NV2MCoaMfYdQ1s0kEmvBU3wXG2h1K4Hb8PQz5CMN7UIrrAq6MT1r6e4HatZ89jVv8Asl3GtR39NY/sZaVJCfgVOuUbux6OoJX2VDafDIUY0OFDaS7yiXwf3ZUaYBNVSfS6LJOtNbjMiPThkCarjYxLX3FMjssS72FHUrXYNwvGxH+xCpY/YdPjYRN0XqVDX/yFWTTj9MhROScjVGoURkMGCGDBXEZghgj4hCDkN8lnkDnxCcJwwxfz10joHCcJeE/h5Avc3+xt6HuPaaBnkIY2xzbHPjHhFKN+BD2ZNHwNXgU7X8DG2jbMfhP6SDaG9IatENLLBrsaZmyYc8mOR6A5spUeWeQNz5D24UUowYYfwmBhhdeo2P7HrP7bqiKtORtjESmgwDmxNDBLWngIngASEduA04bI2eP4ElhLwEpPJ6G5Sb3OdIn6mj/yfv8A8iEIQhCcQhCEIT8P/9k=" | ||
| ), | ||
| ) | ||
| ) | ||
|
|
||
|
|
||
| ft.run(main) |
14 changes: 14 additions & 0 deletions
14
sdk/python/examples/controls/cupertino_text_field/label_focus.py
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please remove "cupertino_" from the file name.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And also, please check the docs of this control, to make sure this example gets displayed. |
This file contains hidden or 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,14 @@ | ||
| import flet as ft | ||
|
|
||
|
|
||
| async def main(page: ft.Page): | ||
| page.theme_mode = ft.ThemeMode.LIGHT | ||
| page.add( | ||
| ctf := ft.CupertinoTextField( | ||
| label="Textfield Label", | ||
| ) | ||
| ) | ||
| await ctf.focus() | ||
|
|
||
|
|
||
| ft.run(main) |
File renamed without changes.
This file contains hidden or 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
Binary file added
BIN
+32.7 KB
...let/integration_tests/controls/golden/macos/cupertino_checkbox/checkboxes_0.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
+32.7 KB
...let/integration_tests/controls/golden/macos/cupertino_checkbox/checkboxes_1.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
+8.62 KB
...ges/flet/integration_tests/controls/golden/macos/cupertino_radio/basic_blue.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
+8.58 KB
...ages/flet/integration_tests/controls/golden/macos/cupertino_radio/basic_red.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.64 KB
...ages/flet/integration_tests/controls/golden/macos/cupertino_radio/checkmark.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
+11 KB
...flet/integration_tests/controls/golden/macos/cupertino_slider/slider_middle.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
+11 KB
.../flet/integration_tests/controls/golden/macos/cupertino_slider/slider_start.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
+15.5 KB
...es/flet/integration_tests/controls/golden/macos/cupertino_switch/switch_off.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
+15.7 KB
...ges/flet/integration_tests/controls/golden/macos/cupertino_switch/switch_on.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.66 KB
...ages/flet/integration_tests/controls/golden/macos/cupertino_textfield/basic.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
+8.48 KB
...ges/flet/integration_tests/controls/golden/macos/cupertino_textfield/filled.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
+7.18 KB
...ages/flet/integration_tests/controls/golden/macos/cupertino_textfield/label.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
+42.7 KB
...integration_tests/controls/golden/macos/cupertino_textfield/label_and_image.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
+115 KB
...ython/packages/flet/integration_tests/controls/golden/macos/markdown/basic1.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
+140 KB
...ython/packages/flet/integration_tests/controls/golden/macos/markdown/basic2.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
+185 Bytes
...on/packages/flet/integration_tests/controls/golden/macos/progress_bar/basic.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.7 KB
sdk/python/packages/flet/integration_tests/controls/golden/macos/radio/one.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.7 KB
sdk/python/packages/flet/integration_tests/controls/golden/macos/radio/three.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.6 KB
sdk/python/packages/flet/integration_tests/controls/golden/macos/radio/two.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
+8.41 KB
.../packages/flet/integration_tests/controls/golden/macos/range_slider/default.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
+9.76 KB
...kages/flet/integration_tests/controls/golden/macos/range_slider/slider_move.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.6 KB
...thon/packages/flet/integration_tests/controls/golden/macos/range_slider/tap.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
+2.37 KB
sdk/python/packages/flet/integration_tests/controls/golden/macos/slider/basic.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
+2.61 KB
...ackages/flet/integration_tests/controls/golden/macos/slider/range_and_label.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions
64
sdk/python/packages/flet/integration_tests/controls/test_cupertino_checkbox.py
This file contains hidden or 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,64 @@ | ||
| import pytest | ||
|
|
||
| import flet as ft | ||
| import flet.testing as ftt | ||
|
|
||
|
|
||
| @pytest.mark.asyncio(loop_scope="module") | ||
| async def test_styled_cupertino_checkboxes(flet_app: ftt.FletTestApp, request): | ||
| cbs = ft.Column( | ||
| controls=[ | ||
| ft.CupertinoCheckbox( | ||
| label="Cupertino Checkbox tristate", | ||
| value=True, | ||
| tristate=True, | ||
| check_color=ft.Colors.GREY_900, | ||
| fill_color={ | ||
| ft.ControlState.HOVERED: ft.Colors.PINK_200, | ||
| ft.ControlState.PRESSED: ft.Colors.LIME_ACCENT_200, | ||
| ft.ControlState.SELECTED: ft.Colors.DEEP_ORANGE_200, | ||
| ft.ControlState.DEFAULT: ft.Colors.TEAL_200, | ||
| }, | ||
| key="tristate", | ||
| ), | ||
| ft.CupertinoCheckbox( | ||
| label="Cupertino Checkbox circle border", | ||
| value=True, | ||
| shape=ft.CircleBorder(), | ||
| key="circleborder", | ||
| ), | ||
| ft.CupertinoCheckbox( | ||
| label="Cupertino Checkbox label position", | ||
| value=True, | ||
| label_position=ft.LabelPosition.LEFT, | ||
| key="labelposition", | ||
| ), | ||
| ] | ||
| ) | ||
| flet_app.page.enable_screenshots = True | ||
| flet_app.page.window.width = 400 | ||
| flet_app.page.window.height = 600 | ||
| flet_app.page.controls = [cbs] | ||
| flet_app.page.update() | ||
| await flet_app.tester.pump_and_settle() | ||
|
|
||
| # normal state | ||
| flet_app.assert_screenshot( | ||
| "checkboxes_0", | ||
| await flet_app.page.take_screenshot( | ||
| pixel_ratio=flet_app.screenshots_pixel_ratio | ||
| ), | ||
| ) | ||
|
|
||
| # checked state | ||
| await flet_app.tester.tap(await flet_app.tester.find_by_key("tristate")) | ||
| await flet_app.tester.tap(await flet_app.tester.find_by_key("circleborder")) | ||
| await flet_app.tester.tap(await flet_app.tester.find_by_key("labelposition")) | ||
|
|
||
| await flet_app.tester.pump_and_settle() | ||
| flet_app.assert_screenshot( | ||
| "checkboxes_1", | ||
| await flet_app.page.take_screenshot( | ||
| pixel_ratio=flet_app.screenshots_pixel_ratio | ||
| ), | ||
| ) |
58 changes: 58 additions & 0 deletions
58
sdk/python/packages/flet/integration_tests/controls/test_cupertino_radio.py
This file contains hidden or 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,58 @@ | ||
| import pytest | ||
|
|
||
| import flet as ft | ||
| import flet.testing as ftt | ||
|
|
||
| rs: list[ft.CupertinoRadio] = [ | ||
| ft.CupertinoRadio( | ||
| value="red", | ||
| label="Red", | ||
| active_color=ft.Colors.RED_600, | ||
| inactive_color=ft.Colors.RED_200, | ||
| key="red", | ||
| ), | ||
| ft.CupertinoRadio( | ||
| value="green", | ||
| label="Green", | ||
| fill_color=ft.Colors.GREEN, | ||
| key="green", | ||
| ), | ||
| ft.CupertinoRadio( | ||
| value="blue", | ||
| label="Blue", | ||
| active_color=ft.Colors.BLUE, | ||
| key="blue", | ||
| ), | ||
| ] | ||
|
|
||
| rg = ft.RadioGroup( | ||
| content=ft.Column( | ||
| controls=rs, | ||
| ), | ||
| value="red", | ||
| ) | ||
|
|
||
|
|
||
| @pytest.mark.asyncio(loop_scope="module") | ||
| async def test_basic_red(flet_app: ftt.FletTestApp, request): | ||
| await flet_app.assert_control_screenshot(request.node.name, rg) | ||
|
|
||
|
|
||
| @pytest.mark.asyncio(loop_scope="module") | ||
| async def test_basic_blue(flet_app: ftt.FletTestApp, request): | ||
| rg.value = "blue" | ||
| await flet_app.assert_control_screenshot( | ||
| request.node.name, | ||
| rg, | ||
| ) | ||
|
|
||
|
|
||
| @pytest.mark.asyncio(loop_scope="module") | ||
| async def test_checkmark(flet_app: ftt.FletTestApp, request): | ||
| for c in rs: | ||
| c.use_checkmark_style = True | ||
| rg.update() | ||
| await flet_app.assert_control_screenshot( | ||
| request.node.name, | ||
| rg, | ||
| ) |
40 changes: 40 additions & 0 deletions
40
sdk/python/packages/flet/integration_tests/controls/test_cupertino_slider.py
This file contains hidden or 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,40 @@ | ||
| import pytest | ||
|
|
||
| import flet as ft | ||
| import flet.testing as ftt | ||
|
|
||
|
|
||
| @pytest.mark.asyncio(loop_scope="module") | ||
| async def test_cupertino_slider(flet_app: ftt.FletTestApp, request): | ||
| sl = ft.CupertinoSlider( | ||
| divisions=20, | ||
| min=0, | ||
| max=100, | ||
| active_color=ft.Colors.PURPLE, | ||
| thumb_color=ft.Colors.PURPLE, | ||
| ) | ||
|
|
||
| flet_app.page.enable_screenshots = True | ||
| flet_app.page.window.width = 400 | ||
| flet_app.page.window.height = 600 | ||
| flet_app.page.controls = [sl] | ||
| flet_app.page.update() | ||
| await flet_app.tester.pump_and_settle() | ||
|
|
||
| await flet_app.tester.pump_and_settle() | ||
| flet_app.assert_screenshot( | ||
| "slider_start", | ||
| await flet_app.page.take_screenshot( | ||
| pixel_ratio=flet_app.screenshots_pixel_ratio | ||
| ), | ||
| ) | ||
|
|
||
| sl.value = 50.0 | ||
| flet_app.page.update() | ||
| await flet_app.tester.pump_and_settle() | ||
| flet_app.assert_screenshot( | ||
| "slider_middle", | ||
| await flet_app.page.take_screenshot( | ||
| pixel_ratio=flet_app.screenshots_pixel_ratio | ||
| ), | ||
| ) |
37 changes: 37 additions & 0 deletions
37
sdk/python/packages/flet/integration_tests/controls/test_cupertino_switch.py
This file contains hidden or 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,37 @@ | ||
| import pytest | ||
|
|
||
| import flet as ft | ||
| import flet.testing as ftt | ||
|
|
||
|
|
||
| @pytest.mark.asyncio(loop_scope="module") | ||
| async def test_cupertino_switch(flet_app: ftt.FletTestApp, request): | ||
| sw = ft.CupertinoSwitch( | ||
| label="Cupertino Switch", | ||
| value=True, | ||
| ) | ||
|
|
||
| flet_app.page.enable_screenshots = True | ||
| flet_app.page.window.width = 400 | ||
| flet_app.page.window.height = 600 | ||
| flet_app.page.controls = [sw] | ||
| flet_app.page.update() | ||
| await flet_app.tester.pump_and_settle() | ||
|
|
||
| flet_app.assert_screenshot( | ||
| "switch_on", | ||
| await flet_app.page.take_screenshot( | ||
| pixel_ratio=flet_app.screenshots_pixel_ratio | ||
| ), | ||
| ) | ||
|
|
||
| sw.value = False | ||
| await flet_app.tester.pump_and_settle() | ||
|
FeodorFitsner marked this conversation as resolved.
|
||
| flet_app.page.update() | ||
| await flet_app.tester.pump_and_settle() | ||
| flet_app.assert_screenshot( | ||
| "switch_off", | ||
| await flet_app.page.take_screenshot( | ||
| pixel_ratio=flet_app.screenshots_pixel_ratio | ||
| ), | ||
| ) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove "cupertino_" from the file name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And also, please check the docs of this control, to make sure this example gets displayed.