From 888048d74159d3e79ff28fa8b7d07ff2eb4be391 Mon Sep 17 00:00:00 2001
From: Adrian Lorenc <adrian.lorenc@gmail.com>
Date: Fri, 21 Feb 2025 08:54:02 +0100
Subject: [PATCH] ISAICP-9470: Add behat tests.

---
 .../features/solution/solution.member.feature | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 tests/features/solution/solution.member.feature

diff --git a/tests/features/solution/solution.member.feature b/tests/features/solution/solution.member.feature
new file mode 100644
index 0000000000..438c0dc53e
--- /dev/null
+++ b/tests/features/solution/solution.member.feature
@@ -0,0 +1,31 @@
+@api @group-a
+Feature: Content Creation Permissions
+  As a group member,
+  I want to have content creation permissions based on the solution's settings,
+  So that I can add content when allowed.
+
+  Scenario Outline: Content creation availability based on solution settings
+    And solution content:
+      | title               | content creation   |
+      | ResolveTech Systems | <content creation> |
+
+    Given I am logged in as a member of the "ResolveTech Systems" solution
+    And I go to the "ResolveTech Systems" solution
+    Then I <expected> see the plus button menu
+
+    Examples:
+      | content creation         | expected   |
+      | registered users         | should     |
+      | facilitators and authors | should not |
+
+  @javascript
+  Scenario: A member can add a layout to new content
+    And solution content:
+      | title               | content creation |
+      | NexaFix Innovations | registered users |
+
+    Given I am logged in as a member of the "NexaFix Innovations" solution
+    And I go to the "NexaFix Innovations" solution
+    When I click "Add news" in the plus button menu
+    And I click "Add layout"
+    And a modal should open
-- 
GitLab