Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions .maestro/enrichedInput/flows/custom_style_colors_visual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
appId: swmansion.enriched.example
---
# Validates custom colors on plain text, inline styles, and paragraph styles.
- launchApp

- tapOn:
id: 'toggle-screen-button'

- tapOn:
id: 'editor-input'

# Section 1: Plain text with colors

- tapOn:
id: 'toolbar-text-color'
- tapOn:
id: 'color-swatch-FF0000'
- inputText: 'Red text'
- tapOn:
id: 'toolbar-text-color'
- tapOn:
id: 'color-swatch-clear'
- inputText: ' '

- tapOn:
id: 'toolbar-bg-color'
- tapOn:
id: 'color-swatch-FFFF00'
- inputText: 'Yellow back'
- tapOn:
id: 'toolbar-bg-color'
- tapOn:
id: 'color-swatch-clear'
- inputText: ' '

- tapOn:
id: 'toolbar-text-color'
- tapOn:
id: 'color-swatch-FF0000'
- tapOn:
id: 'toolbar-bg-color'
- tapOn:
id: 'color-swatch-FFFF00'
- inputText: 'Red+Yellow'
- tapOn:
id: 'toolbar-text-color'
- tapOn:
id: 'color-swatch-clear'
- tapOn:
id: 'toolbar-bg-color'
- tapOn:
id: 'color-swatch-clear'
- inputText: ' '

# Section 2: Inline styles + color

- tapOn:
id: 'toolbar-bold'
- tapOn:
id: 'toolbar-text-color'
- tapOn:
id: 'color-swatch-FF0000'
- inputText: 'Bold red'
- tapOn:
id: 'toolbar-bold'
- tapOn:
id: 'toolbar-text-color'
- tapOn:
id: 'color-swatch-clear'
- inputText: ' '

- tapOn:
id: 'toolbar-italic'
- tapOn:
id: 'toolbar-bg-color'
- tapOn:
id: 'color-swatch-FFFF00'
- inputText: 'Italic yellow back'
- tapOn:
id: 'toolbar-italic'
- tapOn:
id: 'toolbar-bg-color'
- tapOn:
id: 'color-swatch-clear'
- inputText: ' '
- pressKey: Enter

# Section 3: Paragraph styles + color

- tapOn:
id: 'toolbar-heading-5'
- tapOn:
id: 'toolbar-text-color'
- tapOn:
id: 'color-swatch-FF0000'
- inputText: 'H5 red'
- pressKey: Enter
- tapOn:
id: 'toolbar-text-color'
- scroll
- tapOn:
id: 'color-swatch-clear'
- scrollUntilVisible:
element:
id: 'blur-button'
direction: UP

- tapOn:
id: 'toolbar-quote'
- tapOn:
id: 'toolbar-bg-color'
- scroll
- tapOn:
id: 'color-swatch-FFFF00'
- inputText: 'Quote yellow back'
- tapOn:
id: 'toolbar-bg-color'
- scroll
- tapOn:
id: 'color-swatch-clear'
- scrollUntilVisible:
element:
id: 'blur-button'
direction: UP

- runFlow:
file: '../subflows/capture_or_assert_screenshot.yaml'
env:
SCREENSHOT_NAME: 'custom_style_colors'
131 changes: 131 additions & 0 deletions .maestro/enrichedInput/flows/custom_style_fonts_visual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
appId: swmansion.enriched.example
---
# Validates custom font size and font family on plain text, inline styles, and paragraph styles.
- launchApp

- tapOn:
id: 'toggle-screen-button'

- tapOn:
id: 'editor-input'

# Section 1: Plain text with custom fonts

- tapOn:
id: 'toolbar-font-size'
- tapOn:
id: 'font-size-24'
- inputText: '24px plain'
- tapOn:
id: 'toolbar-font-size'
- tapOn:
id: 'font-size-clear'
- inputText: ' '

- tapOn:
id: 'toolbar-font-family'
- tapOn:
id: 'font-family-Nunito-Bold'
- inputText: 'Bold family'
- tapOn:
id: 'toolbar-font-family'
- tapOn:
id: 'font-family-clear'
- inputText: ' '

- tapOn:
id: 'toolbar-font-size'
- tapOn:
id: 'font-size-32'
- tapOn:
id: 'toolbar-font-family'
- tapOn:
id: 'font-family-Courier'
- inputText: '32 Courier'
- tapOn:
id: 'toolbar-font-size'
- tapOn:
id: 'font-size-clear'
- tapOn:
id: 'toolbar-font-family'
- tapOn:
id: 'font-family-clear'
- inputText: ' '

# Section 2: Inline styles + custom fonts

- tapOn:
id: 'toolbar-bold'
- tapOn:
id: 'toolbar-font-size'
- tapOn:
id: 'font-size-20'
- inputText: 'Bold 20px'
- tapOn:
id: 'toolbar-bold'
- tapOn:
id: 'toolbar-font-size'
- tapOn:
id: 'font-size-clear'
- inputText: ' '

- tapOn:
id: 'toolbar-italic'
- tapOn:
id: 'toolbar-font-family'
- tapOn:
id: 'font-family-Nunito-Italic'
- inputText: 'Italic family'
- tapOn:
id: 'toolbar-italic'
- tapOn:
id: 'toolbar-font-family'
- tapOn:
id: 'font-family-clear'
- inputText: ' '

- tapOn:
id: 'toolbar-inline-code'
- tapOn:
id: 'toolbar-font-family'
- scroll
- tapOn:
id: 'font-family-CascadiaCode-Bold'
- scrollUntilVisible:
element:
id: 'blur-button'
direction: UP
- inputText: 'Code bold'
- tapOn:
id: 'toolbar-inline-code'
- tapOn:
id: 'toolbar-font-family'
- scroll
- tapOn:
id: 'font-family-clear'
- scrollUntilVisible:
element:
id: 'blur-button'
direction: UP
- inputText: ' '
- pressKey: Enter

# Section 3: Paragraph styles + custom fonts

- tapOn:
id: 'toolbar-quote'
- tapOn:
id: 'toolbar-font-family'
- scroll
- tapOn:
id: 'font-family-CascadiaCode-Regular'
- inputText: 'Quote code family'
- scrollUntilVisible:
element:
id: 'blur-button'
direction: UP

- runFlow:
file: '../subflows/capture_or_assert_screenshot.yaml'
env:
SCREENSHOT_NAME: 'custom_style_fonts'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions .maestro/enrichedText/flows/custom_style_colors_visual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
appId: swmansion.enriched.example
---
# Validates that custom style colors are displayed correctly
- launchApp

- tapOn:
id: 'toggle-screen-button'

- tapOn:
id: 'toggle-enriched-text-screen-button'

- runFlow:
file: '../subflows/set_enriched_text_value.yaml'
env:
VALUE: >
<html>
<p><span style="color: #FF5733;">Standard 6-digit Hex text</span></p>
<p><span style="background-color: #000000; color: #FFFFFF;">White text on black background</span></p>
<p><span style="background-color: #00FF0040;">25% transparent green background</span></p>
<p><span style="color: #0000FF80;">50% transparent blue text</span></p>
<p><span style="color: #F00;">Red 3-digit shorthand text</span></p>
<h6><span style="background-color: #0F0; color: #000;">Black text on green</span></h6>
</html>

- runFlow:
file: '../subflows/capture_or_assert_screenshot.yaml'
env:
SCREENSHOT_NAME: 'custom_style_colors_visual'
29 changes: 29 additions & 0 deletions .maestro/enrichedText/flows/custom_style_fonts_visual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
appId: swmansion.enriched.example
---
# Validates that custom style fonts are displayed correctly
- launchApp

- tapOn:
id: 'toggle-screen-button'

- tapOn:
id: 'toggle-enriched-text-screen-button'

- runFlow:
file: '../subflows/set_enriched_text_value.yaml'
env:
VALUE: >
<html>
<p>Regular family</p>
<p><span style="font-size: 24px;">24px plain</span></p>
<p><span style="font-family: Nunito-Bold;">Bold family</span></p>
<p><span style="font-size: 32px; font-family: Courier;">32 Courier</span></p>
<p><b><span style="font-size: 20px;">Bold 20px</span></b> <i><span style="font-family: Nunito-Italic;">Italic family</span></i> <code><span style="font-family: CascadiaCode-Bold;">Code bold</span></code></p>
<h5><span style="font-size: 40px;">H5 40px</span></h5>
<blockquote><p><span style="font-family: CascadiaCode-Regular;">Quote code family</span></p></blockquote>
</html>

- runFlow:
file: '../subflows/capture_or_assert_screenshot.yaml'
env:
SCREENSHOT_NAME: 'custom_style_fonts_visual'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .playwright/screenshots/inline-styles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading