From 552f096f53f0027fd90222274dd443e5c8112948 Mon Sep 17 00:00:00 2001
From: Tobias Reischmann <tobias.reischmann@wi.uni-muenster.de>
Date: Mon, 2 Sep 2019 18:30:40 +0200
Subject: [PATCH] Added @javascript tags to behat for filling autocomplete
 fields

---
 tests/behat/add_workflow.feature      | 1 +
 tests/behat/interaction_forms.feature | 2 +-
 tests/behat/manual_trigger.feature    | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/behat/add_workflow.feature b/tests/behat/add_workflow.feature
index 995d195..1c671bb 100644
--- a/tests/behat/add_workflow.feature
+++ b/tests/behat/add_workflow.feature
@@ -1,6 +1,7 @@
 @tool @tool_lifecycle
 Feature: Add a workflow definition
 
+  @javascript
   Scenario: Add a new workflow definition without steps
   For displaying the additional trigger settings the "Save changes" button is used.
     Given I log in as "admin"
diff --git a/tests/behat/interaction_forms.feature b/tests/behat/interaction_forms.feature
index e800be2..005c83e 100644
--- a/tests/behat/interaction_forms.feature
+++ b/tests/behat/interaction_forms.feature
@@ -1,4 +1,4 @@
-@tool @tool_lifecycle
+@tool @tool_lifecycle @javascript
 Feature: Add a workflow with a manual trigger and a duplicate step and test the interaction as a teacher
 
   Background:
diff --git a/tests/behat/manual_trigger.feature b/tests/behat/manual_trigger.feature
index 9fd041e..ebae396 100644
--- a/tests/behat/manual_trigger.feature
+++ b/tests/behat/manual_trigger.feature
@@ -16,6 +16,7 @@ Feature: Add a manual trigger and test view and actions as a teacher
       | teacher1 | C2 | editingteacher |
       | teacher1 | C3 | teacher |
 
+  @javascript
   Scenario: Test displayed action tools for different capabilities
     Given I log in as "admin"
     # Allow teacher role to view courses in life cycle view
@@ -48,6 +49,7 @@ Feature: Add a manual trigger and test view and actions as a teacher
     And I should see the tool "Delete course" in the "Course 2" row of the "tool_lifecycle_remaining" table
     And I should not see the tool "Delete course" in the "Course 3" row of the "tool_lifecycle_remaining" table
 
+  @javascript
   Scenario: Manually trigger backup and course deletion
     Given I log in as "admin"
     And I navigate to "Life Cycle > Workflow Settings" in site administration
-- 
GitLab