From 31f7d0a4b8e54d75cb580822cc8899a7829b89b8 Mon Sep 17 00:00:00 2001
From: Rajab Natshah <rajabn@gmail.com>
Date: Mon, 23 Mar 2020 21:36:59 +0200
Subject: [PATCH] Issue #3120794: Update VarbaseContext for the Automated
 Functional Acceptance Testing group

---
 tests/features/bootstrap/VarbaseContext.php       | 15 +++++++++++++++
 ...ons-feature => 04-06-blog-permissions.feature} |  0
 ...entityqueue-testing-content-and-config.feature |  2 --
 3 files changed, 15 insertions(+), 2 deletions(-)
 rename tests/features/varbase/step2-apply-tests/04-content-structure/{04-06-blog-permissions-feature => 04-06-blog-permissions.feature} (100%)

diff --git a/tests/features/bootstrap/VarbaseContext.php b/tests/features/bootstrap/VarbaseContext.php
index 151290fb..5aabe2b7 100644
--- a/tests/features/bootstrap/VarbaseContext.php
+++ b/tests/features/bootstrap/VarbaseContext.php
@@ -1500,4 +1500,19 @@ JS;
     }
   }
 
+  /**
+  * @When /^(?:|I )switch to iframe "([^"]*)"$/
+  */
+  public function iSwitchToIframe($iFrameLocator) {
+    $this->getSession()->getDriver()->switchToIFrame($iFrameLocator);
+  }
+
+  /**
+  * @When /^(?:|I )switch to main frame$/
+  * @When /^(?:|I )switch to parent$/
+  */
+  public function iSwitchToParent() {
+    $this->getSession()->getDriver()->switchToIFrame(null);
+  }
+
 }
diff --git a/tests/features/varbase/step2-apply-tests/04-content-structure/04-06-blog-permissions-feature b/tests/features/varbase/step2-apply-tests/04-content-structure/04-06-blog-permissions.feature
similarity index 100%
rename from tests/features/varbase/step2-apply-tests/04-content-structure/04-06-blog-permissions-feature
rename to tests/features/varbase/step2-apply-tests/04-content-structure/04-06-blog-permissions.feature
diff --git a/tests/features/varbase/step2-apply-tests/05-content-management/05-00-add-default-entityqueue-testing-content-and-config.feature b/tests/features/varbase/step2-apply-tests/05-content-management/05-00-add-default-entityqueue-testing-content-and-config.feature
index c2623553..4aede6f7 100644
--- a/tests/features/varbase/step2-apply-tests/05-content-management/05-00-add-default-entityqueue-testing-content-and-config.feature
+++ b/tests/features/varbase/step2-apply-tests/05-content-management/05-00-add-default-entityqueue-testing-content-and-config.feature
@@ -7,7 +7,6 @@ Scenario: Create Test Content type
     And I wait
    Then I should see "Add content type"
    When I fill in "Test Content" for "Name"
-    And I fill in "test_content" for "Machine-readable name"
     And I press "Save and manage fields"
     And I wait
    Then I should see "The content type Test Content has been added."
@@ -22,7 +21,6 @@ Scenario: Add Entity Queue Test Queue and use Test Content type
     And I wait
    Then I should see "Add Entity Queue"
    When I fill in "Test Queue" for "Name"
-    And I fill in "test_queue" for "Machine-readable name"
     And I click "Entity settings"
     And I wait
    Then I should see "Content type"
-- 
GitLab