Skip to content
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

Updated Behat Test. #1304

Merged
merged 1 commit into from
Sep 25, 2024
Merged
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
28 changes: 15 additions & 13 deletions tests/behat/features/paragraph.civictheme_promo.render.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Feature: Promo render
Scenario: CivicTheme page content type page can be viewed by anonymous with Promo light with vertical spacing without background
Given I am an anonymous user
And "field_c_n_components" in "civictheme_page" "node" with "title" of "[TEST] Page Promo test 1" has "civictheme_promo" paragraph:
| field_c_p_title | [TEST] Promo title |
| field_c_p_theme | light |
| field_c_p_content:value | [TEST] Content text |
| field_c_p_content:format | civictheme_rich_text |
| field_c_p_vertical_spacing | both |
| field_c_p_link | 0: [TEST] link 1 - 1: https://example.com/link1 |
| field_c_p_title | [TEST] Promo title |
| field_c_p_theme | light |
| field_c_p_content:value | [TEST] Content text |
| field_c_p_content:format | civictheme_rich_text |
| field_c_p_vertical_spacing | both |
| field_c_p_link | 0: [TEST] link 1 PromoTest - 1: https://example.com/link1 |

When I visit "civictheme_page" "[TEST] Page Promo test 1"
And I should see an ".ct-promo" element
Expand All @@ -28,19 +28,20 @@ Feature: Promo render
And I should see an ".ct-promo__title" element
And I should see an ".ct-promo__content" element
And the response should contain "[TEST] link 1"
And the response should contain "PromoTest"
And the response should contain "https://example.com/link1"

@api
Scenario: CivicTheme page content type page can be viewed by anonymous with promo dark without vertical space with background
Given I am an anonymous user
And "field_c_n_components" in "civictheme_page" "node" with "title" of "[TEST] Page Promo test 2" has "civictheme_promo" paragraph:
| field_c_p_title | [TEST] Promo title |
| field_c_p_theme | dark |
| field_c_p_content:value | [TEST] Content text |
| field_c_p_content:format | civictheme_rich_text |
| field_c_p_vertical_spacing | 0 |
| field_c_p_background | 1 |
| field_c_p_link | 0: [TEST] link 2 - 1: https://example.com/link2 |
| field_c_p_title | [TEST] Promo title |
| field_c_p_theme | dark |
| field_c_p_content:value | [TEST] Content text |
| field_c_p_content:format | civictheme_rich_text |
| field_c_p_vertical_spacing | 0 |
| field_c_p_background | 1 |
| field_c_p_link | 0: [TEST] link 2 PromoTest - 1: https://example.com/link2 |

When I visit "civictheme_page" "[TEST] Page Promo test 2"
And I should see an ".ct-promo" element
Expand All @@ -53,4 +54,5 @@ Feature: Promo render
And I should see an ".ct-promo__title" element
And I should see an ".ct-promo__content" element
And the response should contain "[TEST] link 2"
And the response should contain "PromoTest"
And the response should contain "https://example.com/link2"
Loading