Skip to content

Commit 43c9cd0

Browse files
committed
Merge branch 'main' into @pkaramon/web-setup
2 parents b4aa331 + f6ed17e commit 43c9cd0

28 files changed

+381
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# Verifies that inside a code block, inline styles and rich features are
4+
# blocked in the toolbar. Code blocks do not support inline formatting,
5+
# automatic link detection, or mention insertion.
6+
- launchApp
7+
8+
- tapOn:
9+
id: "toggle-screen-button"
10+
11+
- tapOn:
12+
id: "editor-input"
13+
14+
- tapOn:
15+
id: "toolbar-code-block"
16+
17+
- inputText: "ABC example.com"
18+
19+
- assertVisible:
20+
id: "toolbar-bold"
21+
enabled: false
22+
23+
- assertVisible:
24+
id: "toolbar-italic"
25+
enabled: false
26+
27+
- assertVisible:
28+
id: "toolbar-underline"
29+
enabled: false
30+
31+
- assertVisible:
32+
id: "toolbar-strikethrough"
33+
enabled: false
34+
35+
- assertVisible:
36+
id: "toolbar-inline-code"
37+
enabled: false
38+
39+
- assertVisible:
40+
id: "toolbar-link"
41+
enabled: false
42+
43+
- assertVisible:
44+
id: "toolbar-mention"
45+
enabled: false
46+
47+
- runFlow:
48+
file: "../subflows/capture_or_assert_screenshot.yaml"
49+
env:
50+
SCREENSHOT_NAME: "codeblock_style_blocking"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# Visually validates rendering of block-level paragraph styles:
4+
# blockquote and code block, each with multiple lines.
5+
- launchApp
6+
7+
- tapOn:
8+
id: "toggle-screen-button"
9+
10+
- tapOn:
11+
id: "editor-input"
12+
13+
- tapOn:
14+
id: "toolbar-quote"
15+
- inputText: "Quote 1"
16+
- pressKey: Enter
17+
- inputText: "Quote 2"
18+
- pressKey: Enter
19+
- tapOn:
20+
id: "toolbar-quote"
21+
22+
- inputText: "Normal paragraph"
23+
- pressKey: Enter
24+
25+
- tapOn:
26+
id: "toolbar-code-block"
27+
- inputText: "Code 1"
28+
- pressKey: Enter
29+
- inputText: "Code 2"
30+
31+
- runFlow:
32+
file: "../subflows/capture_or_assert_screenshot.yaml"
33+
env:
34+
SCREENSHOT_NAME: "paragraph_styles_blocks"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# Visually validates rendering of all heading levels (H1–H6).
4+
- launchApp
5+
6+
- tapOn:
7+
id: "toggle-screen-button"
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-heading-1"
14+
- inputText: "H1"
15+
- pressKey: Enter
16+
17+
- tapOn:
18+
id: "toolbar-heading-2"
19+
- inputText: "H2"
20+
- pressKey: Enter
21+
22+
- tapOn:
23+
id: "toolbar-heading-3"
24+
- inputText: "H3"
25+
- pressKey: Enter
26+
27+
- tapOn:
28+
id: "toolbar-heading-4"
29+
- inputText: "H4"
30+
- pressKey: Enter
31+
32+
- tapOn:
33+
id: "toolbar-heading-5"
34+
- inputText: "H5"
35+
- pressKey: Enter
36+
37+
- tapOn:
38+
id: "toolbar-heading-6"
39+
- inputText: "H6"
40+
- tapOn:
41+
id: "size-max-button"
42+
43+
- runFlow:
44+
file: "../subflows/capture_or_assert_screenshot.yaml"
45+
env:
46+
SCREENSHOT_NAME: "paragraph_styles_headings"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# Visually validates rendering of all list types
4+
- launchApp
5+
6+
- tapOn:
7+
id: "toggle-screen-button"
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-ordered-list"
14+
- inputText: "First"
15+
- pressKey: Enter
16+
- inputText: "Second"
17+
- pressKey: Enter
18+
- tapOn:
19+
id: "toolbar-ordered-list"
20+
21+
- inputText: "Normal"
22+
- pressKey: Enter
23+
24+
- tapOn:
25+
id: "toolbar-unordered-list"
26+
- inputText: "First"
27+
- pressKey: Enter
28+
- inputText: "Second"
29+
- pressKey: Enter
30+
- tapOn:
31+
id: "toolbar-unordered-list"
32+
33+
- inputText: "Normal"
34+
- pressKey: Enter
35+
36+
- tapOn:
37+
id: "toolbar-checkbox-list"
38+
- inputText: "First"
39+
- pressKey: Enter
40+
- inputText: "Second"
41+
42+
- tapOn:
43+
id: "size-max-button"
44+
45+
- runFlow:
46+
file: "../subflows/capture_or_assert_screenshot.yaml"
47+
env:
48+
SCREENSHOT_NAME: "paragraph_styles_lists"
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
appId: swmansion.enriched.example
2+
# Tests basic scrollability
3+
---
4+
5+
- launchApp
6+
7+
- tapOn:
8+
id: "toggle-screen-button"
9+
10+
- tapOn:
11+
id: "editor-input"
12+
13+
- inputText: "Line one"
14+
- pressKey: Enter
15+
- inputText: "Line two"
16+
- pressKey: Enter
17+
- inputText: "Line three"
18+
- pressKey: Enter
19+
- inputText: "Line four"
20+
- pressKey: Enter
21+
- inputText: "Line five"
22+
- pressKey: Enter
23+
- inputText: "Line six"
24+
- pressKey: Enter
25+
- inputText: "Line seven"
26+
- pressKey: Enter
27+
- inputText: "Line eight"
28+
- pressKey: Enter
29+
- inputText: "Line nine"
30+
- pressKey: Enter
31+
- inputText: "Line ten"
32+
33+
- runFlow:
34+
file: "../subflows/capture_or_assert_screenshot.yaml"
35+
env:
36+
SCREENSHOT_NAME: "scroll_after_typing_long_content_bottom"
37+
38+
- tapOn:
39+
id: "focus-button"
40+
41+
- swipe:
42+
from:
43+
id: "editor-input"
44+
direction: DOWN
45+
46+
- runFlow:
47+
file: "../subflows/capture_or_assert_screenshot.yaml"
48+
env:
49+
SCREENSHOT_NAME: "scroll_after_typing_long_content_top"
50+
51+
- tapOn:
52+
id: "editor-input"
53+
point: "0%,0%"
54+
55+
- swipe:
56+
from:
57+
id: "editor-input"
58+
direction: UP
59+
60+
- runFlow:
61+
file: "../subflows/capture_or_assert_screenshot.yaml"
62+
env:
63+
SCREENSHOT_NAME: "scroll_after_typing_long_content_bottom"
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
appId: swmansion.enriched.example
2+
# Tests scrollability when content is set via setValue
3+
---
4+
- launchApp
5+
6+
- tapOn:
7+
id: "toggle-screen-button"
8+
9+
- runFlow:
10+
file: "../subflows/set_editor_value.yaml"
11+
env:
12+
VALUE: >-
13+
<html>
14+
<p>Line one</p>
15+
<p>Line two</p>
16+
<p>Line three</p>
17+
<p>Line four</p>
18+
<p>Line five</p>
19+
<p>Line six</p>
20+
<p>Line seven</p>
21+
<p>Line eight</p>
22+
<p>Line nine</p>
23+
<p>Line ten</p>
24+
</html>
25+
26+
# iOS starts at top - screenshot top, then swipe to bottom
27+
- runFlow:
28+
when:
29+
platform: iOS
30+
commands:
31+
- runFlow:
32+
file: "../subflows/capture_or_assert_screenshot.yaml"
33+
env:
34+
SCREENSHOT_NAME: "scrolling_set_value_top"
35+
- tapOn:
36+
id: "focus-button"
37+
- swipe:
38+
from:
39+
id: "editor-input"
40+
direction: UP
41+
- runFlow:
42+
file: "../subflows/capture_or_assert_screenshot.yaml"
43+
env:
44+
SCREENSHOT_NAME: "scrolling_set_value_bottom"
45+
46+
# Android starts at bottom - screenshot bottom, then swipe to top
47+
- runFlow:
48+
when:
49+
platform: Android
50+
commands:
51+
- runFlow:
52+
file: "../subflows/capture_or_assert_screenshot.yaml"
53+
env:
54+
SCREENSHOT_NAME: "scrolling_set_value_bottom"
55+
- tapOn:
56+
id: "focus-button"
57+
- swipe:
58+
from:
59+
id: "editor-input"
60+
direction: DOWN
61+
- runFlow:
62+
file: "../subflows/capture_or_assert_screenshot.yaml"
63+
env:
64+
SCREENSHOT_NAME: "scrolling_set_value_top"
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
appId: swmansion.enriched.example
2+
# Tests scrolling with mixed block formatting (lists, quotes)
3+
---
4+
- launchApp
5+
6+
- tapOn:
7+
id: "toggle-screen-button"
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-unordered-list"
14+
- inputText: "Bullet item one"
15+
- pressKey: Enter
16+
- inputText: "Bullet item two"
17+
- pressKey: Enter
18+
- inputText: "Bullet item three"
19+
- pressKey: Enter
20+
- pressKey: Enter
21+
22+
- tapOn:
23+
id: "toolbar-quote"
24+
- inputText: "Quoted line one"
25+
- pressKey: Enter
26+
- inputText: "Quoted line two"
27+
- pressKey: Enter
28+
- inputText: "Quoted line three"
29+
- pressKey: Enter
30+
- tapOn:
31+
id: "toolbar-quote"
32+
33+
- tapOn:
34+
id: "toolbar-ordered-list"
35+
- inputText: "Numbered item one"
36+
- pressKey: Enter
37+
- inputText: "Numbered item two"
38+
- pressKey: Enter
39+
- inputText: "Numbered item three"
40+
- pressKey: Enter
41+
- pressKey: Enter
42+
43+
- pressKey: Backspace
44+
45+
- inputText: "Plain text line one"
46+
- pressKey: Enter
47+
- inputText: "Plain text final"
48+
49+
- swipe:
50+
from:
51+
id: "editor-input"
52+
direction: DOWN
53+
54+
- runFlow:
55+
file: "../subflows/capture_or_assert_screenshot.yaml"
56+
env:
57+
SCREENSHOT_NAME: "scrolling_paragraph_styles_top"
58+
59+
- tapOn:
60+
id: "focus-button"
61+
62+
- tapOn:
63+
id: "editor-input"
64+
point: "0%,0%"
65+
66+
- swipe:
67+
from:
68+
id: "editor-input"
69+
direction: UP
70+
71+
- runFlow:
72+
file: "../subflows/capture_or_assert_screenshot.yaml"
73+
env:
74+
SCREENSHOT_NAME: "scrolling_paragraph_styles_bottom"
7.47 KB
Loading
20.3 KB
Loading
20 KB
Loading

0 commit comments

Comments
 (0)