From c2b276608ef810de6626feb0aa933e6c474f2f5f Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Mon, 2 Dec 2024 12:16:57 -0500
Subject: [PATCH] ISTWCMS-7160: updating testListParity to see if it can pass

---
 acceptance/WcmsTestsBlocksListingsCest.php | 25 +++++++++++-----------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/acceptance/WcmsTestsBlocksListingsCest.php b/acceptance/WcmsTestsBlocksListingsCest.php
index d8f8d7b..7628ad3 100644
--- a/acceptance/WcmsTestsBlocksListingsCest.php
+++ b/acceptance/WcmsTestsBlocksListingsCest.php
@@ -447,26 +447,26 @@ class WcmsTestsBlocksListingsCest {
 
       // Navigate to layout builder.
       $i->amOnPage('/testpage/layout');
-      $i->waitforText('Edit layout for testpage');
+      $i->waitforText('Edit layout for testpage', 30);
 
       // Add an automatic list block.
       $i->click('Add block');
-      $i->waitForText('Choose a block');
+      $i->waitForText('Choose a block', 30);
       $i->click('Automatic list');
-      $i->waitForText('Configure block');
+      $i->waitForText('Configure block', 30);
       $i->fillField('input[name="settings[label]"]', 'title');
       $i->selectOption('settings[content_type]', $content_type);
 
       // Create a block id and add the block.
       $i->fillField('input[name="settings[layout_builder_id]"]', 'automatic' . $machine_name);
       $i->click('Add block');
-      $i->waitForElement('.uw-admin-label');
+      $i->waitForElement('.uw-admin-label', 30);
 
       // Add an manual list block.
       $i->click('Add block');
-      $i->waitForText('Choose a block');
+      $i->waitForText('Choose a block', 30);
       $i->click('Manual list');
-      $i->waitForText('Configure block');
+      $i->waitForText('Configure block', 30);
       $i->fillField('input[name="settings[label]"]', 'title');
       $i->selectOption('settings[content_type]', $content_type);
       $i->fillField('input[name="settings[' . $machine_name . '][items_fieldset][' . $machine_name . '_ids][0][id]"]', 'test' . $machine_name);
@@ -474,11 +474,12 @@ class WcmsTestsBlocksListingsCest {
       // Create a block id and add the block.
       $i->fillField('input[name="settings[layout_builder_id]"]', 'manual' . $machine_name);
       $i->click('Add block');
-      $i->waitForText('Edit layout for testpage');
+      $i->waitForText('Edit layout for testpage', 30);
 
       // Save the layout.
+      $i->scrollTo(['css' => 'input[value="Save layout"]'], 100, 0);
       $i->click('Save layout');
-      $i->waitForText('The layout override has been saved.');
+      $i->waitForText('The layout override has been saved.', 30);
 
       // Create a reference image using the automatic list.
       // Since there is no existing image with the name $machine_name,
@@ -1196,12 +1197,12 @@ class WcmsTestsBlocksListingsCest {
     $i->click('Remove');
     $i->waitForElementNotVisible('.layout-builder__region');
     $i->click('.layout-builder__link--add');
-    $i->waitForText('One column');
+    $i->waitForText('One column', 30);
     $i->click('One column');
-    $i->waitForText('Configure section');
-    $i->waitForText('Add section');
+    $i->waitForText('Configure section', 30);
+    $i->waitForText('Add section', 30);
     $i->click('input[value="Add section"]');
-    $i->waitForText('Add block');
+    $i->waitForText('Add block', 30);
   }
 
   /**
-- 
GitLab