Skip to content

Commit aae1a89

Browse files
fix: restore test files
1 parent 718befd commit aae1a89

20 files changed

Lines changed: 793 additions & 2 deletions

.github/workflows/e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
with:
126126
name: e2e-ios-artifacts
127127
path: |
128-
.maestro/screenshots/**/*_diff.png
128+
.maestro/screenshots/ios/*_diff.png
129129
130130
e2e-android:
131131
needs: [changes]
@@ -188,4 +188,4 @@ jobs:
188188
with:
189189
name: e2e-android-artifacts
190190
path: |
191-
.maestro/screenshots/android/.maestro/screenshots/android/*_diff.png
191+
.maestro/screenshots/android/*_diff.png
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# PR #257 - fix: handle style conflicts during automatic links detection
4+
- launchApp
5+
6+
- tapOn:
7+
id: "toggle-screen-button"
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-code-block"
14+
15+
- inputText: "Hello example.com"
16+
17+
- assertVisible:
18+
id: "toolbar-link"
19+
enabled: false
20+
21+
- runFlow:
22+
file: "../subflows/capture_or_assert_screenshot.yaml"
23+
env:
24+
SCREENSHOT_NAME: "codeblock_no_link_detection"
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: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# PR #306 - fix: handle conflicts between paragraphs
4+
- launchApp
5+
6+
- tapOn:
7+
id: "toggle-screen-button"
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-code-block"
14+
- inputText: "Code text"
15+
- pressKey: Enter
16+
17+
- tapOn:
18+
id: "toolbar-code-block"
19+
- tapOn:
20+
id: "toolbar-heading-1"
21+
- inputText: "H1"
22+
23+
# Position cursor at start of H1 line
24+
- tapOn:
25+
id: "editor-input"
26+
point: "5%,75%"
27+
28+
- pressKey: Backspace
29+
30+
- runFlow:
31+
when:
32+
platform: "android"
33+
commands:
34+
- pressKey: Backspace
35+
- inputText: " "
36+
37+
- tapOn:
38+
id: "editor-input"
39+
point: "75%, 50%"
40+
41+
- pressKey: Enter
42+
- tapOn:
43+
id: "toolbar-code-block"
44+
45+
- tapOn:
46+
id: "toolbar-inline-code"
47+
- inputText: "Inline code"
48+
49+
- tapOn:
50+
id: "editor-input"
51+
point: "5%, 75%"
52+
53+
- pressKey: Backspace
54+
- inputText: " "
55+
56+
- runFlow:
57+
file: "../subflows/capture_or_assert_screenshot.yaml"
58+
env:
59+
SCREENSHOT_NAME: "conflicting_paragraph_merge"
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
appId: swmansion.enriched.example
2+
---
3+
- launchApp
4+
5+
- tapOn:
6+
id: "toggle-screen-button"
7+
8+
- assertVisible:
9+
id: "editor-input"
10+
11+
- assertVisible:
12+
id: "focus-button"
13+
- assertVisible:
14+
id: "blur-button"
15+
- assertVisible:
16+
id: "set-value-button"
17+
18+
19+
- assertVisible:
20+
id: "toolbar-bold"
21+
- assertVisible:
22+
id: "toolbar-italic"
23+
- assertVisible:
24+
id: "toolbar-underline"
25+
- assertVisible:
26+
id: "toolbar-strikethrough"
27+
- assertVisible:
28+
id: "toolbar-inline-code"
29+
- assertVisible:
30+
id: "toolbar-heading-1"
31+
- assertVisible:
32+
id: "toolbar-heading-2"
33+
- assertVisible:
34+
id: "toolbar-heading-3"
35+
- assertVisible:
36+
id: "toolbar-heading-4"
37+
- assertVisible:
38+
id: "toolbar-heading-5"
39+
- assertVisible:
40+
id: "toolbar-heading-6"
41+
- assertVisible:
42+
id: "toolbar-quote"
43+
- assertVisible:
44+
id: "toolbar-code-block"
45+
- assertVisible:
46+
id: "toolbar-image"
47+
- assertVisible:
48+
id: "toolbar-link"
49+
- assertVisible:
50+
id: "toolbar-mention"
51+
- assertVisible:
52+
id: "toolbar-unordered-list"
53+
- assertVisible:
54+
id: "toolbar-ordered-list"
55+
- assertVisible:
56+
id: "toolbar-checkbox-list"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
appId: swmansion.enriched.example
2+
tags:
3+
- android-only
4+
---
5+
# PR #284 - fix: parsing empty elements
6+
- launchApp
7+
- tapOn:
8+
id: "toggle-screen-button"
9+
10+
- runFlow:
11+
file: "../subflows/set_editor_value.yaml"
12+
env:
13+
VALUE: >
14+
<html>
15+
<p>A</p>
16+
<p>B</p>
17+
<p><b>A</b></p>
18+
<p><b>B</b></p>
19+
<ul>
20+
<li><b>A</b></li>
21+
<li><b>B</b></li>
22+
<li><b>C</b></li>
23+
<li><b></b></li>
24+
</ul>
25+
<br>
26+
</html>
27+
28+
- tapOn:
29+
id: "size-max-button"
30+
31+
- runFlow:
32+
file: "../subflows/capture_or_assert_screenshot.yaml"
33+
env:
34+
SCREENSHOT_NAME: "empty_element_parsing"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# PR #462 - fix(android): parsing initial HTML
4+
# Verifies that setting an HTML defaultValue with headings renders correctly
5+
# without duplicate or extra tags being inserted.
6+
- launchApp
7+
8+
- tapOn:
9+
id: "toggle-screen-button"
10+
11+
- runFlow:
12+
file: "../subflows/set_editor_value.yaml"
13+
env:
14+
VALUE: "<html><h1>Hello</h1><h2>World</h2><p>!!!</p></html>"
15+
16+
- tapOn:
17+
id: "size-max-button"
18+
19+
- runFlow:
20+
file: "../subflows/capture_or_assert_screenshot.yaml"
21+
env:
22+
SCREENSHOT_NAME: "initial_html_parsing"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# PR #370 - fix: reapplying spans
4+
- launchApp
5+
6+
- tapOn:
7+
id: "toggle-screen-button"
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-bold"
14+
- inputText: "Bold"
15+
16+
- tapOn:
17+
id: "toolbar-bold"
18+
- inputText: " regular"
19+
20+
- tapOn:
21+
id: "toolbar-quote"
22+
23+
- tapOn:
24+
id: "toolbar-quote"
25+
26+
- runFlow:
27+
file: "../subflows/capture_or_assert_screenshot.yaml"
28+
env:
29+
SCREENSHOT_NAME: "inline_styles_survive_block_toggle"
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+
- launchApp
4+
5+
- tapOn:
6+
id: "toggle-screen-button"
7+
8+
- tapOn:
9+
id: "editor-input"
10+
11+
- inputText: "Plain "
12+
13+
- tapOn:
14+
id: "toolbar-bold"
15+
- inputText: "bold"
16+
- tapOn:
17+
id: "toolbar-bold"
18+
- inputText: " "
19+
20+
- tapOn:
21+
id: "toolbar-italic"
22+
- inputText: "italic"
23+
- tapOn:
24+
id: "toolbar-italic"
25+
- inputText: " "
26+
27+
- tapOn:
28+
id: "toolbar-underline"
29+
- inputText: "underline"
30+
- tapOn:
31+
id: "toolbar-underline"
32+
- inputText: " "
33+
34+
- tapOn:
35+
id: "toolbar-strikethrough"
36+
- inputText: "strike-through"
37+
- tapOn:
38+
id: "toolbar-strikethrough"
39+
- inputText: " "
40+
41+
- tapOn:
42+
id: "toolbar-inline-code"
43+
- inputText: "code"
44+
- tapOn:
45+
id: "toolbar-inline-code"
46+
47+
- runFlow:
48+
file: "../subflows/capture_or_assert_screenshot.yaml"
49+
env:
50+
SCREENSHOT_NAME: "inline_styles"
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# PR #401 - fix(Android): newline insertion in lists
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+
15+
- runFlow:
16+
when:
17+
platform: android
18+
commands:
19+
- inputText: "XXXXXXXXXXXXXXXXXXXXXXXX"
20+
- tapOn:
21+
id: "editor-input"
22+
point: "50%,50%"
23+
# iOS places the cursor on word boundaries by default. Precisely positioning
24+
# the cursor would require a press-and-drag gesture, which Maestro does not
25+
# support. As a workaround we type two words, tap between them (snapping to
26+
# the word boundary/space), then delete the space so we end up with a
27+
# continuous word and the cursor in the middle.
28+
- runFlow:
29+
when:
30+
platform: ios
31+
commands:
32+
- inputText: "XXXXXXXXXXX XXXXXXXXXXXXX"
33+
- tapOn:
34+
id: "editor-input"
35+
point: "50%,50%"
36+
- pressKey: Backspace
37+
38+
39+
- pressKey: Enter
40+
41+
- runFlow:
42+
file: "../subflows/capture_or_assert_screenshot.yaml"
43+
env:
44+
SCREENSHOT_NAME: "list_newline_insertion"

0 commit comments

Comments
 (0)