diff --git a/behat.yml b/behat.yml index 9bc9cd4..d8ab63a 100644 --- a/behat.yml +++ b/behat.yml @@ -55,7 +55,8 @@ default: drupal_root: web drush: root: web - region_map: + regions: + primary_tabs: '#block-drevops-primary-local-tasks' header_top_1: '.ct-header__content-top1' header_top_2: '.ct-header__content-top2' header_top_3: '.ct-header__content-top3' @@ -84,10 +85,11 @@ default: selectors: login_form_selector: 'form#user-login,form#user-login-form' logged_in_selector: 'body.logged-in,body.user-logged-in' - message_selector: '.messages,.ct-message' - error_message_selector: '.messages.error,.messages.messages--error,.ct-message.ct-message--error' - success_message_selector: '.messages.status,.messages.messages--status,.ct-message.ct-message--info' - warning_message_selector: '.messages.warning,.messages.messages--warning,.ct-message.ct-message--warning' + messages: + default: '.messages,.ct-message' + error: '.messages.error,.messages.messages--error,.ct-message.ct-message--error' + success: '.messages.status,.messages.messages--status,.ct-message.ct-message--info' + warning: '.messages.warning,.messages.messages--warning,.ct-message.ct-message--warning' # Capture HTML and PNG screenshots on demand and on failure. DrevOps\BehatScreenshotExtension: diff --git a/composer.json b/composer.json index 92ec1e2..fe719d2 100644 --- a/composer.json +++ b/composer.json @@ -62,10 +62,11 @@ "dealerdirect/phpcodesniffer-composer-installer": "^1.2.0", "drevops/behat-format-progress-fail": "^1.4", "drevops/behat-screenshot": "^2.3", - "drevops/behat-steps": "^3.7.0", + "drevops/behat-steps": "^3.8.0", "drevops/phpcs-standard": "^0.7.0", "drupal/coder": "^9@alpha", - "drupal/drupal-extension": "^5.3.3", + "drupal/drupal-driver": "^3.0@alpha", + "drupal/drupal-extension": "^6.0@alpha", "ergebnis/composer-normalize": "^2.51.0", "lullabot/mink-selenium2-driver": "^1.7.4", "lullabot/php-webdriver": "^2.0.7", diff --git a/composer.lock b/composer.lock index b76d71e..62d59d9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ba9d258c4c5afb2cf01af5ef5fb501f8", + "content-hash": "d82d13a96a6b1ed401e33ac8beb428a9", "packages": [ { "name": "asm89/stack-cors", @@ -9340,16 +9340,16 @@ }, { "name": "symfony/http-client", - "version": "v6.4.36", + "version": "v6.4.37", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "1baea3a592ec5ee1f58de6548a034268d4946db6" + "reference": "d40d3ac56e549056fedfb257fa58395b74cf964d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/1baea3a592ec5ee1f58de6548a034268d4946db6", - "reference": "1baea3a592ec5ee1f58de6548a034268d4946db6", + "url": "https://api.github.com/repos/symfony/http-client/zipball/d40d3ac56e549056fedfb257fa58395b74cf964d", + "reference": "d40d3ac56e549056fedfb257fa58395b74cf964d", "shasum": "" }, "require": { @@ -9414,7 +9414,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v6.4.36" + "source": "https://github.com/symfony/http-client/tree/v6.4.37" }, "funding": [ { @@ -9434,7 +9434,7 @@ "type": "tidelift" } ], - "time": "2026-03-23T20:48:09+00:00" + "time": "2026-04-29T06:37:06+00:00" }, { "name": "symfony/http-client-contracts", @@ -12824,23 +12824,24 @@ }, { "name": "drevops/behat-steps", - "version": "3.7.0", + "version": "3.8.0", "source": { "type": "git", "url": "https://github.com/drevops/behat-steps.git", - "reference": "8cb9394703e54facdd1ceabb56d37b1f494d6145" + "reference": "94bdbfbe89bb4c58c5e9a3a7d2824fe6b8fe3520" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/drevops/behat-steps/zipball/8cb9394703e54facdd1ceabb56d37b1f494d6145", - "reference": "8cb9394703e54facdd1ceabb56d37b1f494d6145", + "url": "https://api.github.com/repos/drevops/behat-steps/zipball/94bdbfbe89bb4c58c5e9a3a7d2824fe6b8fe3520", + "reference": "94bdbfbe89bb4c58c5e9a3a7d2824fe6b8fe3520", "shasum": "" }, "require": { "behat/behat": "^3.14", "behat/mink": ">=1.11", - "behat/mink-selenium2-driver": ">=1.7", - "drupal/drupal-extension": "^5.3.1", + "drupal/drupal-driver": "^3.0@alpha", + "drupal/drupal-extension": "^6.0@alpha", + "lullabot/mink-selenium2-driver": "^1.7.4", "php": ">=8.2" }, "require-dev": { @@ -12904,7 +12905,7 @@ "type": "patreon" } ], - "time": "2026-04-10T10:37:49+00:00" + "time": "2026-05-04T00:42:45+00:00" }, { "name": "drevops/phpcs-standard", @@ -13038,51 +13039,59 @@ }, { "name": "drupal/drupal-driver", - "version": "v2.4.3", + "version": "v3.0.0-alpha1", "source": { "type": "git", "url": "https://github.com/jhedstrom/DrupalDriver.git", - "reference": "71a97a34bb35fedc53f84ebd20b45074127ada8c" + "reference": "4d36be7d434aceb2a61cda11dbe95261b0f64633" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jhedstrom/DrupalDriver/zipball/71a97a34bb35fedc53f84ebd20b45074127ada8c", - "reference": "71a97a34bb35fedc53f84ebd20b45074127ada8c", + "url": "https://api.github.com/repos/jhedstrom/DrupalDriver/zipball/4d36be7d434aceb2a61cda11dbe95261b0f64633", + "reference": "4d36be7d434aceb2a61cda11dbe95261b0f64633", "shasum": "" }, "require": { - "drupal/core-utility": "^8.4 || ^9 || ^10 || ^11", - "php": ">=7.4", - "symfony/dependency-injection": "^2.6 || ^3.0 || ^4.4 || ^6 || ^7.1", - "symfony/process": "^2.5 || ^3.0 || ^4.4 || ^6 || ^7" - }, - "conflict": { - "drupal/core": ">=8.0 <9.3" + "drupal/core-utility": "^10 || ^11", + "php": "^8.2", + "symfony/dependency-injection": "^6.4 || ^7", + "symfony/process": "^6.4 || ^7" }, "require-dev": { + "behat/mink": "^1.11", "composer/installers": "^2.1", - "dms/phpunit-arraysubset-asserts": "^0.4.0 || ^0.5.0", + "drevops/phpcs-standard": "^0.7.0", + "drupal/address": "^2.0.4", "drupal/coder": "~8.3.0", - "drupal/core-composer-scaffold": "^8.4 || ^9 || ^10 || ^11", - "drupal/core-recommended": "^8.4 || ^9 || ^10 || ^11", - "drupal/mailsystem": "^4.4 || 4.x-dev", - "drush-ops/behat-drush-endpoint": "*", + "drupal/commerce": "^3.0", + "drupal/core-composer-scaffold": "^11.2", + "drupal/core-recommended": "^11.2", + "drupal/mailsystem": "^4.4", + "drupal/name": "^1.2", + "drupal/supported_image": "^1", + "drupal/time_field": "^2.2.1", "ergebnis/composer-normalize": "^2.50", - "mockery/mockery": "^1.5", - "palantirnet/drupal-rector": "^0.20", + "mglaman/phpstan-drupal": "^2.0", + "mikey179/vfsstream": "^1.6.11", + "palantirnet/drupal-rector": "^0.21.1", "php-parallel-lint/php-parallel-lint": "^1.0", - "phpspec/phpspec": "^2.0 || ^4.0 || ^6.1 || ^7.5 || dev-main", - "phpunit/phpunit": "^6.0 || ^7.0 || ^9 || ^10", - "symfony/phpunit-bridge": "^6.1" + "phpspec/prophecy-phpunit": "^2", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^10.5.19 || ^11.5.3", + "rector/rector": "^1 || ^2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3.x-dev" + "dev-master": "3.0.x-dev" }, "drupal-scaffold": { "locations": { "web-root": "drupal/" + }, + "file-mapping": { + "[project-root]/.gitattributes": false } }, "installer-paths": { @@ -13108,6 +13117,11 @@ { "name": "Jonathan Hedstrom", "email": "jhedstrom@gmail.com" + }, + { + "name": "Alex Skrypnyk", + "email": "alex@drevops.com", + "role": "Maintainer" } ], "description": "A collection of reusable Drupal drivers", @@ -13119,7 +13133,7 @@ ], "support": { "issues": "https://github.com/jhedstrom/DrupalDriver/issues", - "source": "https://github.com/jhedstrom/DrupalDriver/tree/v2.4.3" + "source": "https://github.com/jhedstrom/DrupalDriver/tree/v3.0.0-alpha1" }, "funding": [ { @@ -13127,20 +13141,20 @@ "type": "github" } ], - "time": "2026-03-17T07:51:15+00:00" + "time": "2026-05-03T23:50:40+00:00" }, { "name": "drupal/drupal-extension", - "version": "v5.3.3", + "version": "v6.0.0-alpha1", "source": { "type": "git", "url": "https://github.com/jhedstrom/drupalextension.git", - "reference": "e7e47a7e12d0fac048f9914ab65af5b4aef26096" + "reference": "e51a624c3777c3bafaedc165bcac82b2724ba4ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jhedstrom/drupalextension/zipball/e7e47a7e12d0fac048f9914ab65af5b4aef26096", - "reference": "e7e47a7e12d0fac048f9914ab65af5b4aef26096", + "url": "https://api.github.com/repos/jhedstrom/drupalextension/zipball/e51a624c3777c3bafaedc165bcac82b2724ba4ae", + "reference": "e51a624c3777c3bafaedc165bcac82b2724ba4ae", "shasum": "" }, "require": { @@ -13148,7 +13162,7 @@ "behat/gherkin": "^4.13", "behat/mink": "^1.12", "behat/mink-browserkit-driver": "^2.1.0", - "drupal/drupal-driver": "^2.4.3", + "drupal/drupal-driver": "^3.0.0-alpha1", "friends-of-behat/mink-extension": "^2.7.1", "lullabot/mink-selenium2-driver": "^1.7.4", "php": ">=8.2", @@ -13161,8 +13175,9 @@ "composer/installers": "^2.3", "dantleech/gherkin-lint": "^0.2.3", "dflydev/dot-access-data": "^3.0.3", + "drevops/behat-phpserver": "^2.3", "drevops/behat-screenshot": "^2.2", - "drevops/phpcs-standard": "^0.6.2", + "drevops/phpcs-standard": "^0.7.0", "drupal/coder": "^8.3.27", "drupal/core": "^11", "drupal/core-composer-scaffold": "^11", @@ -13177,7 +13192,6 @@ "league/container": "^4.2", "masterminds/html5": "^2.8", "php-parallel-lint/php-parallel-lint": "^1.4", - "phpspec/phpspec": "^7.0 || ^8.0", "phpstan/phpstan": "^2.1", "phpunit/php-code-coverage": "^11.0 || ^12.0", "phpunit/phpunit": "^10.5 || ^11.0", @@ -13201,7 +13215,7 @@ "type": "behat-extension", "extra": { "branch-alias": { - "dev-master": "5.1.x-dev" + "dev-main": "6.0.x-dev" }, "drupal-scaffold": { "locations": { @@ -13254,7 +13268,6 @@ }, "autoload": { "psr-0": { - "Drupal\\Drupal": "src/", "Drupal\\Exception": "src/", "Drupal\\MinkExtension": "src/", "Drupal\\DrupalExtension": "src/" @@ -13297,7 +13310,7 @@ ], "support": { "issues": "https://github.com/jhedstrom/drupalextension/issues", - "source": "https://github.com/jhedstrom/drupalextension/tree/v5.3.3" + "source": "https://github.com/jhedstrom/drupalextension/tree/v6.0.0-alpha1" }, "funding": [ { @@ -13305,7 +13318,7 @@ "type": "github" } ], - "time": "2026-04-15T23:04:31+00:00" + "time": "2026-05-04T00:14:01+00:00" }, { "name": "ergebnis/composer-normalize", @@ -17008,28 +17021,27 @@ }, { "name": "symfony/browser-kit", - "version": "v7.4.8", + "version": "v8.0.8", "source": { "type": "git", "url": "https://github.com/symfony/browser-kit.git", - "reference": "41850d8f8ddef9a9cd7314fa9f4902cf48885521" + "reference": "f5a28fca785416cf489dd579011e74c831100cc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/browser-kit/zipball/41850d8f8ddef9a9cd7314fa9f4902cf48885521", - "reference": "41850d8f8ddef9a9cd7314fa9f4902cf48885521", + "url": "https://api.github.com/repos/symfony/browser-kit/zipball/f5a28fca785416cf489dd579011e74c831100cc3", + "reference": "f5a28fca785416cf489dd579011e74c831100cc3", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3", - "symfony/dom-crawler": "^6.4|^7.0|^8.0" + "php": ">=8.4", + "symfony/dom-crawler": "^7.4|^8.0" }, "require-dev": { - "symfony/css-selector": "^6.4|^7.0|^8.0", - "symfony/http-client": "^6.4|^7.0|^8.0", - "symfony/mime": "^6.4|^7.0|^8.0", - "symfony/process": "^6.4|^7.0|^8.0" + "symfony/css-selector": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0" }, "type": "library", "autoload": { @@ -17057,7 +17069,7 @@ "description": "Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/browser-kit/tree/v7.4.8" + "source": "https://github.com/symfony/browser-kit/tree/v8.0.8" }, "funding": [ { @@ -17077,7 +17089,7 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-03-30T15:14:47+00:00" }, { "name": "symfony/config", @@ -17160,16 +17172,16 @@ }, { "name": "symfony/css-selector", - "version": "v7.4.8", + "version": "v7.4.9", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "b055f228a4178a1d6774909903905e3475f3eac8" + "reference": "b75663ed96cf4756e28e3105476f220f92886cc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/b055f228a4178a1d6774909903905e3475f3eac8", - "reference": "b055f228a4178a1d6774909903905e3475f3eac8", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/b75663ed96cf4756e28e3105476f220f92886cc4", + "reference": "b75663ed96cf4756e28e3105476f220f92886cc4", "shasum": "" }, "require": { @@ -17205,7 +17217,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v7.4.8" + "source": "https://github.com/symfony/css-selector/tree/v7.4.9" }, "funding": [ { @@ -17225,7 +17237,7 @@ "type": "tidelift" } ], - "time": "2026-03-24T13:12:05+00:00" + "time": "2026-04-18T13:18:21+00:00" }, { "name": "symfony/dom-crawler", @@ -17595,6 +17607,8 @@ "drupal/cloudflare": 10, "drupal/coder": 15, "drupal/config_update": 15, + "drupal/drupal-driver": 15, + "drupal/drupal-extension": 15, "drupal/entity_clone": 10, "drupal/entity_usage": 10, "drupal/webform": 10, diff --git a/tests/behat/bootstrap/FeatureContext.php b/tests/behat/bootstrap/FeatureContext.php index 6cebe5f..07cf908 100644 --- a/tests/behat/bootstrap/FeatureContext.php +++ b/tests/behat/bootstrap/FeatureContext.php @@ -9,7 +9,6 @@ use DrevOps\BehatSteps\CookieTrait; use DrevOps\BehatSteps\DateTrait; -use DrevOps\BehatSteps\Drupal\BigPipeTrait; use DrevOps\BehatSteps\Drupal\BlockTrait; use DrevOps\BehatSteps\Drupal\ContentBlockTrait; use DrevOps\BehatSteps\Drupal\ContentTrait; @@ -43,7 +42,6 @@ */ class FeatureContext extends DrupalContext { - use BigPipeTrait; use BlockTrait; use ContentBlockTrait; use ContentTrait; diff --git a/tests/behat/features/behat.feature b/tests/behat/features/behat.feature index ab0ddbf..6adff80 100644 --- a/tests/behat/features/behat.feature +++ b/tests/behat/features/behat.feature @@ -15,9 +15,9 @@ Feature: Behat configuration @api Scenario: Drush integration works Given I run drush "status" - Then drush output should contain "Drupal version" + Then the drush output should contain "Drupal version" When I run drush "core:status --field=bootstrap" - Then drush output should contain "Successful" + Then the drush output should contain "Successful" @api Scenario: Region map configured correctly @@ -52,7 +52,7 @@ Feature: Behat configuration @api Scenario: Messages and login selectors configured correctly - Given users: + Given the following users: | name | mail | roles | | test | test@example.com | administrator | And I am an anonymous user diff --git a/tests/behat/features/content_moderation_container.feature b/tests/behat/features/content_moderation_container.feature index 6b66a4f..a3876c1 100644 --- a/tests/behat/features/content_moderation_container.feature +++ b/tests/behat/features/content_moderation_container.feature @@ -7,7 +7,7 @@ Feature: Content moderation block container class @api Scenario: Moderation block has container class Given I am logged in as a user with the "administrator" role - And "civictheme_page" content: + And the following "civictheme_page" content: | title | moderation_state | field_c_n_hide_sidebar | | Test Page Draft | draft | 1 | When I visit the "civictheme_page" content page with the title "Test Page Draft" diff --git a/tests/behat/features/entity_clone.feature b/tests/behat/features/entity_clone.feature index 9e127d0..8564f19 100644 --- a/tests/behat/features/entity_clone.feature +++ b/tests/behat/features/entity_clone.feature @@ -1,4 +1,4 @@ -@p1 @entity_clone @user_roles +@p1 @bigpipe @entity_clone @user_roles Feature: Entity Clone permissions for Content Author role As a site owner @@ -20,16 +20,16 @@ Feature: Entity Clone permissions for Content Author role @api Scenario: Content Author can clone CivicTheme Page content Given I am logged in as a user with the "Content Author" role - And "civictheme_page" content: + And the following "civictheme_page" content: | title | field_c_n_summary | status | | Test CivicTheme Clone Page | Test page for cloning | 1 | When I go to "admin/content" Then I should see the link "Test CivicTheme Clone Page" When I click "Test CivicTheme Clone Page" - Then I should see the link "Clone" + Then I should see the link "Clone" in the "primary_tabs" region - When I click "Clone" + When I click "Clone" in the "primary_tabs" region Then I should see "Clone Content" When I press "Clone" diff --git a/tests/behat/features/feed.feature b/tests/behat/features/feed.feature index 22a95ac..e05edc9 100644 --- a/tests/behat/features/feed.feature +++ b/tests/behat/features/feed.feature @@ -6,10 +6,10 @@ Feature: Automated list RSS feed So that I can stay updated on new content Background: - Given "civictheme_topics" terms: + Given the following "civictheme_topics" terms: | name | | [TEST] Feed Topic | - And "civictheme_page" content: + And the following "civictheme_page" content: | title | moderation_state | field_c_n_topics | | [TEST] Feed Article One | published | [TEST] Feed Topic | | [TEST] Feed Article Two | published | [TEST] Feed Topic | diff --git a/tests/behat/features/metatags.feature b/tests/behat/features/metatags.feature index 24d6135..eef949d 100644 --- a/tests/behat/features/metatags.feature +++ b/tests/behat/features/metatags.feature @@ -7,7 +7,7 @@ Feature: Page content metatags @api Scenario: CivicTheme page content type contains default metatags - Given civictheme_page content: + Given the following civictheme_page content: | title | status | field_c_n_summary | | Test Metatags Page | 1 | This is a test summary for metatags testing | When I visit the "civictheme_page" content page with the title "Test Metatags Page" diff --git a/tests/behat/features/paragraph_civictheme_manual_list_fields.feature b/tests/behat/features/paragraph_civictheme_manual_list_fields.feature index 4a32719..7407961 100644 --- a/tests/behat/features/paragraph_civictheme_manual_list_fields.feature +++ b/tests/behat/features/paragraph_civictheme_manual_list_fields.feature @@ -8,9 +8,9 @@ Feature: Manual list fields And I fill in "Title" with "[TEST] Page fields" When I press "Add Manual list" - And I see the text "Content" + And I should see the text "Content" - And I see the text "List items" + And I should see the text "List items" And should see a "[name='field_c_n_components_0_subform_field_c_p_list_items_civictheme_event_card_add_more']" element And should see a "[name='field_c_n_components_0_subform_field_c_p_list_items_civictheme_event_card_ref_add_more']" element And should see a "[name='field_c_n_components_0_subform_field_c_p_list_items_civictheme_navigation_card_add_more']" element @@ -22,44 +22,44 @@ Feature: Manual list fields And should see a "[name='field_c_n_components_0_subform_field_c_p_list_items_civictheme_subject_card_add_more']" element And should see a "[name='field_c_n_components_0_subform_field_c_p_list_items_civictheme_subject_card_ref_add_more']" element - And I see the text "Title" + And I should see the text "Title" And should see a "[name='field_c_n_components[0][subform][field_c_p_title][0][value]']" element - And should not see a "[name='field_c_n_components[0][subform][field_c_p_title][0][value]]'].required" element + And should not see a "[name='field_c_n_components[0][subform][field_c_p_title][0][value]'].required" element And should not see a "[name='field_c_n_components[0][subform][field_c_p_title][0][value]'][disabled]" element - And I see the text "Content" + And I should see the text "Content" And should see a "[name='field_c_n_components[0][subform][field_c_p_content][0][value]']" element And should not see a "[name='field_c_n_components[0][subform][field_c_p_content][0][value]'].required" element And should not see a "[name='field_c_n_components[0][subform][field_c_p_content][0][value]'][disabled]" element - And I see the text "Link above" + And I should see the text "Link above" And should see a "[name='field_c_n_components[0][subform][field_c_p_list_link_above][0][uri]']" element And should see a "[name='field_c_n_components[0][subform][field_c_p_list_link_above][0][title]']" element - And I see the text "Link below" + And I should see the text "Link below" And should see a "[name='field_c_n_components[0][subform][field_c_p_list_link_below][0][uri]']" element And should see a "[name='field_c_n_components[0][subform][field_c_p_list_link_below][0][title]']" element - And I see the text "Appearance" + And I should see the text "Appearance" - And I see the text "Theme" + And I should see the text "Theme" And should see a "[name='field_c_n_components[0][subform][field_c_p_theme]']" element - And I see the text "Vertical spacing" + And I should see the text "Vertical spacing" And should see a "[name='field_c_n_components[0][subform][field_c_p_vertical_spacing]']" element And should see a ".field--name-field-c-n-vertical-spacing .required" element And should not see a "[name='field_c_n_components[0][subform][field_c_p_vertical_spacing]'][disabled]" element - And I see the text "Background" + And I should see the text "Background" And should see a "[name='field_c_n_components[0][subform][field_c_p_background][value]']" element - And I see the text "Column count" + And I should see the text "Column count" And should see a "[name='field_c_n_components[0][subform][field_c_p_list_column_count]']" element And should see a "[name='field_c_n_components[0][subform][field_c_p_list_column_count]'].required" element And should not see a "[name='field_c_n_components[0][subform][field_c_p_list_column_count]'][disabled]" element - And I see the text "Fill width in the last row" + And I should see the text "Fill width in the last row" And should see a "[name='field_c_n_components[0][subform][field_c_p_list_fill_width][value]']" element - And I see the text "Layout" + And I should see the text "Layout" And should see a "[name='field_c_n_components[0][subform][field_p_list_layout]']" element diff --git a/tests/behat/features/paragraph_civictheme_manual_list_render.feature b/tests/behat/features/paragraph_civictheme_manual_list_render.feature index b811b6c..471762e 100644 --- a/tests/behat/features/paragraph_civictheme_manual_list_render.feature +++ b/tests/behat/features/paragraph_civictheme_manual_list_render.feature @@ -10,12 +10,12 @@ Feature: Manual list render | name | field_c_m_image | | [TEST] CivicTheme Image | image.jpg | - And "civictheme_page" content: + And the following "civictheme_page" content: | title | status | | [TEST] Page Manual list content | 1 | | [TEST] Referenced Page | 1 | - And "civictheme_event" content: + And the following "civictheme_event" content: | title | status | | [TEST] Referenced Event | 1 | @@ -28,29 +28,33 @@ Feature: Manual list render | field_c_p_list_fill_width | 0 | | field_p_list_layout | spotlight | And the following fields for the paragraph "civictheme_promo_card" exist in the field "field_c_p_list_items" within the "civictheme_manual_list" "paragraph" identified by the field "field_c_p_title" and the value "[TEST] Manual list title": - | field_c_p_title | Card title 1 | - | field_c_p_summary | Card summary 1 | - | field_c_p_link | 0: Test link 1 - 1: https://example.com/link1 | - | field_c_p_image | [TEST] CivicTheme Image | - | field_c_p_theme | light | + | field_c_p_title | Card title 1 | + | field_c_p_summary | Card summary 1 | + | field_c_p_link:title | Test link 1 | + | field_c_p_link:uri | https://example.com/link1 | + | field_c_p_image | [TEST] CivicTheme Image | + | field_c_p_theme | light | And the following fields for the paragraph "civictheme_promo_card" exist in the field "field_c_p_list_items" within the "civictheme_manual_list" "paragraph" identified by the field "field_c_p_title" and the value "[TEST] Manual list title": - | field_c_p_title | Card title 2 | - | field_c_p_summary | Card summary 2 | - | field_c_p_link | 0: Test link 2 - 1: https://example.com/link2 | - | field_c_p_image | [TEST] CivicTheme Image | - | field_c_p_theme | light | + | field_c_p_title | Card title 2 | + | field_c_p_summary | Card summary 2 | + | field_c_p_link:title | Test link 2 | + | field_c_p_link:uri | https://example.com/link2 | + | field_c_p_image | [TEST] CivicTheme Image | + | field_c_p_theme | light | And the following fields for the paragraph "civictheme_promo_card" exist in the field "field_c_p_list_items" within the "civictheme_manual_list" "paragraph" identified by the field "field_c_p_title" and the value "[TEST] Manual list title": - | field_c_p_title | Card title 3 | - | field_c_p_summary | Card summary 3 | - | field_c_p_link | 0: Test link 3 - 1: https://example.com/link3 | - | field_c_p_image | [TEST] CivicTheme Image | - | field_c_p_theme | dark | + | field_c_p_title | Card title 3 | + | field_c_p_summary | Card summary 3 | + | field_c_p_link:title | Test link 3 | + | field_c_p_link:uri | https://example.com/link3 | + | field_c_p_image | [TEST] CivicTheme Image | + | field_c_p_theme | dark | And the following fields for the paragraph "civictheme_promo_card" exist in the field "field_c_p_list_items" within the "civictheme_manual_list" "paragraph" identified by the field "field_c_p_title" and the value "[TEST] Manual list title": - | field_c_p_title | Card title 4 | - | field_c_p_summary | Card summary 4 | - | field_c_p_link | 0: Test link 4 - 1: https://example.com/link4 | - | field_c_p_image | [TEST] CivicTheme Image | - | field_c_p_theme | light | + | field_c_p_title | Card title 4 | + | field_c_p_summary | Card summary 4 | + | field_c_p_link:title | Test link 4 | + | field_c_p_link:uri | https://example.com/link4 | + | field_c_p_image | [TEST] CivicTheme Image | + | field_c_p_theme | light | When I visit the "civictheme_page" content page with the title "[TEST] Page Manual list content" Then I should see the text "[TEST] Manual list title" diff --git a/tests/behat/features/paragraph_divider_render.feature b/tests/behat/features/paragraph_divider_render.feature index c6cb700..f84c836 100644 --- a/tests/behat/features/paragraph_divider_render.feature +++ b/tests/behat/features/paragraph_divider_render.feature @@ -10,7 +10,7 @@ Feature: Divider render | name | field_c_m_image | | [TEST] DO Image | image.jpg | - And "civictheme_page" content: + And the following "civictheme_page" content: | title | status | | [TEST] Page Divider test 1 | 1 | | [TEST] Page Divider test 2 | 1 | diff --git a/tests/behat/features/scheduled_transitions.feature b/tests/behat/features/scheduled_transitions.feature index decb5d7..c5e230d 100644 --- a/tests/behat/features/scheduled_transitions.feature +++ b/tests/behat/features/scheduled_transitions.feature @@ -10,7 +10,7 @@ Feature: Scheduled Transitions functionality for content roles So that I can efficiently manage content publishing workflows Background: - Given "civictheme_page" content: + Given the following "civictheme_page" content: | title | field_c_n_summary | status | | Test Page for Transitions | Test page for scheduled trans | 1 | diff --git a/tests/behat/features/search.feature b/tests/behat/features/search.feature index 9bda237..69fe0fa 100644 --- a/tests/behat/features/search.feature +++ b/tests/behat/features/search.feature @@ -11,7 +11,7 @@ Feature: Search API @api Scenario: User searches for Page content - Given civictheme_page content: + Given the following civictheme_page content: | title | status | field_c_n_summary | | [TEST] Search result 1 firstuniquestring | 1 | Summary 1 firstuniquestringsummary | | [TEST] Search result 2 seconduniquestring | 1 | Summary 2 seconduniquestringsummary |