From 35ea0d9c34374b54d2e2be1c4faafda656a1b9fb Mon Sep 17 00:00:00 2001 From: Michelle Date: Tue, 26 Jun 2018 07:27:31 -0400 Subject: [PATCH] Updated methods for exposing and clicking react-hidden links --- tests/acceptance/EditExistingNewsletterCest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/EditExistingNewsletterCest.php b/tests/acceptance/EditExistingNewsletterCest.php index ad9fcf9ef5..049b58c0f0 100644 --- a/tests/acceptance/EditExistingNewsletterCest.php +++ b/tests/acceptance/EditExistingNewsletterCest.php @@ -40,9 +40,9 @@ class EditExistingNewsletterCest { $I->waitForText('Standard newsletter', 5, '[data-automation-id="listing_item_1"]'); // step 5 - Edit this newsletter - //$I->executeJS('jQuery(".row-actions").show()'); - $I->moveMouseOver(['css' => '.mailpoet_listing_table > tbody:nth-child(2) > tr:nth-child(2) > td:nth-child(2) > div:nth-child(2) > div:nth-child(1) > span:nth-child(2)', '[data-automation-id="listing_item_1"]']); - $I->click('Edit' , \Codeception\Util\Locator::elementAt('//table/tr', -1)); + $I->moveMouseOver(['css' => '.mailpoet_listing_table *[data-automation-id="listing_item_1"]']); + $I->makeScreenshot('after_mouse_over'); + $I->click('Edit', ['css' => '.mailpoet_listing_table *[data-automation-id="listing_item_1"]']); $I->waitForElement($title_element); } }