Skip to content

Commit 9a32456

Browse files
committed
B2B-2130: [AWS S3] Test Fails when Checking Persistent Welcome Message
- Fixing flaky test
1 parent e8c31f5 commit 9a32456

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Persistent/Test/Mftf/Test/StorefrontCorrectWelcomeMessageAfterCustomerIsLoggedOutTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949

5050
<!--Check customer name and last name in welcome message-->
5151
<seeInCurrentUrl url="{{StorefrontCustomerDashboardPage.url}}" stepKey="seeCustomerAccountPageUrl"/>
52-
<see userInput="Welcome, $$createCustomer.firstname$$ $$createCustomer.lastname$$!"
52+
<waitForText userInput="Welcome, $$createCustomer.firstname$$ $$createCustomer.lastname$$!"
5353
selector="{{StorefrontHeaderSection.welcomeMessage}}"
5454
stepKey="seeLoggedInCustomerWelcomeMessage"/>
5555
<!--Logout and check default welcome message-->
5656
<actionGroup ref="CustomerLogoutStorefrontByMenuItemsActionGroup" stepKey="storefrontCustomerLogout"/>
5757
<actionGroup ref="AssertStorefrontCustomerLogoutSuccessPageActionGroup" stepKey="seeCustomerSignOutPageUrl"/>
58-
<see userInput="Default welcome msg!"
58+
<waitForText userInput="Default welcome msg!"
5959
selector="{{StorefrontHeaderSection.welcomeMessage}}"
6060
stepKey="seeDefaultWelcomeMessage"/>
6161

@@ -65,14 +65,14 @@
6565
</actionGroup>
6666
<!--Check customer name and last name in welcome message-->
6767
<seeInCurrentUrl url="{{StorefrontCustomerDashboardPage.url}}" stepKey="seeCustomerAccountPageUrl1"/>
68-
<see userInput="Welcome, $$createCustomerForPersistent.firstname$$ $$createCustomerForPersistent.lastname$$!"
68+
<waitForText userInput="Welcome, $$createCustomerForPersistent.firstname$$ $$createCustomerForPersistent.lastname$$!"
6969
selector="{{StorefrontHeaderSection.welcomeMessage}}"
7070
stepKey="seeLoggedInCustomerWelcomeMessage1"/>
7171

7272
<!--Logout and check persistent customer welcome message-->
7373
<actionGroup ref="CustomerLogoutStorefrontByMenuItemsActionGroup" stepKey="storefrontCustomerLogout1"/>
7474
<actionGroup ref="AssertStorefrontCustomerLogoutSuccessPageActionGroup" stepKey="seeCustomerSignOutPageUrl1"/>
75-
<see userInput="Welcome, $$createCustomerForPersistent.firstname$$ $$createCustomerForPersistent.lastname$$! Not you?"
75+
<waitForText userInput="Welcome, $$createCustomerForPersistent.firstname$$ $$createCustomerForPersistent.lastname$$! Not you?"
7676
selector="{{StorefrontHeaderSection.welcomeMessage}}"
7777
stepKey="seePersistentWelcomeMessage"/>
7878
<dontSee userInput="Not you? Not you?"

0 commit comments

Comments
 (0)