|
20 | 20 | </annotations> |
21 | 21 | <before> |
22 | 22 | <!-- Deploy static content for all required locales --> |
23 | | - <magentoCLI command="setup:static-content:deploy -f nl_NL" stepKey="deployStaticContentNL"/> |
| 23 | + <!-- <magentoCLI command="setup:static-content:deploy -f nl_NL" stepKey="deployStaticContentNL"/> |
24 | 24 | <magentoCLI command="setup:static-content:deploy -f hi_IN" stepKey="deployStaticContentHI"/> |
25 | | - <magentoCLI command="setup:static-content:deploy -f de_DE" stepKey="deployStaticContentDE"/> |
| 25 | + <magentoCLI command="setup:static-content:deploy -f de_DE" stepKey="deployStaticContentDE"/> --> |
26 | 26 | <!-- Step1: Log in to admin --> |
27 | 27 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
28 | 28 | </before> |
|
59 | 59 | <waitForPageLoad stepKey="waitForFilterUS"/> |
60 | 60 | <generateDate date="+1 day" format="Y-m-d" stepKey="startDateUSRaw"/> |
61 | 61 | <generateDate date="+2 day" format="Y-m-d" stepKey="endDateUSRaw"/> |
62 | | - <executeJS function="return (new Date('{$startDateUSRaw}').toLocaleDateString('en-US', {day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedStartDateUSGrid"/> |
63 | | - <executeJS function="return (new Date('{$endDateUSRaw}').toLocaleDateString('en-US', {day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedEndDateUSGrid"/> |
| 62 | + <executeJS function="return (new Date('{$startDateUSRaw}T00:00:00Z').toLocaleDateString('en-US', {timeZone: 'UTC', day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedStartDateUSGrid"/> |
| 63 | + <executeJS function="return (new Date('{$endDateUSRaw}T00:00:00Z').toLocaleDateString('en-US', {timeZone: 'UTC', day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedEndDateUSGrid"/> |
64 | 64 | <grabTextFrom selector="{{AdminCartPriceRulesSection.gridStartDateByRuleName(CartPriceRuleWithMaximumQuantity1.name)}}" stepKey="actualStartDateUSGrid"/> |
65 | 65 | <grabTextFrom selector="{{AdminCartPriceRulesSection.gridEndDateByRuleName(CartPriceRuleWithMaximumQuantity1.name)}}" stepKey="actualEndDateUSGrid"/> |
66 | 66 | <!-- Verify start date and end date in grid --> |
|
112 | 112 | <click selector="{{AdminCartPriceRulesSection.searchButton}}" stepKey="clickSearchNL"/> |
113 | 113 | <waitForPageLoad stepKey="waitForFilterNL"/> |
114 | 114 | <!-- Verify start date and end date in grid --> |
115 | | - <executeJS function="return (new Date('{$startDateNLRaw}').toLocaleDateString('nl-NL', {day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedStartDateNLGrid"/> |
116 | | - <executeJS function="return (new Date('{$endDateNLRaw}').toLocaleDateString('nl-NL', {day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedEndDateNLGrid"/> |
| 115 | + <executeJS function="return (new Date('{$startDateNLRaw}T00:00:00Z').toLocaleDateString('nl-NL', {timeZone: 'UTC', day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedStartDateNLGrid"/> |
| 116 | + <executeJS function="return (new Date('{$endDateNLRaw}T00:00:00Z').toLocaleDateString('nl-NL', {timeZone: 'UTC', day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedEndDateNLGrid"/> |
117 | 117 | <grabTextFrom selector="{{AdminCartPriceRulesSection.gridStartDateByRuleName(CustomSalesRuleWithNoCouponCode.name)}}" stepKey="actualStartDateNLGrid"/> |
118 | 118 | <grabTextFrom selector="{{AdminCartPriceRulesSection.gridEndDateByRuleName(CustomSalesRuleWithNoCouponCode.name)}}" stepKey="actualEndDateNLGrid"/> |
119 | 119 | <assertStringContainsString stepKey="verifyStartDateNLInGrid"> |
|
153 | 153 | <click selector="{{AdminCartPriceRulesSection.searchButton}}" stepKey="clickSearchHI"/> |
154 | 154 | <waitForPageLoad stepKey="waitForFilterHI"/> |
155 | 155 | <!-- Verify start date and end date in grid --> |
156 | | - <executeJS function="return (new Date('{$startDateHIRaw}').toLocaleDateString('hi-IN', {day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedStartDateHindiGrid"/> |
157 | | - <executeJS function="return (new Date('{$endDateHIRaw}').toLocaleDateString('hi-IN', {day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedEndDateHindiGrid"/> |
| 156 | + <executeJS function="return (new Date('{$startDateHIRaw}T00:00:00Z').toLocaleDateString('hi-IN', {timeZone: 'UTC', day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedStartDateHindiGrid"/> |
| 157 | + <executeJS function="return (new Date('{$endDateHIRaw}T00:00:00Z').toLocaleDateString('hi-IN', {timeZone: 'UTC', day: 'numeric', month: 'short', year: 'numeric'}))" stepKey="expectedEndDateHindiGrid"/> |
158 | 158 | <grabTextFrom selector="{{AdminCartPriceRulesSection.gridStartDateByRuleName(TestCartPriceRule.name)}}" stepKey="actualStartDateHindiGrid"/> |
159 | 159 | <grabTextFrom selector="{{AdminCartPriceRulesSection.gridEndDateByRuleName(TestCartPriceRule.name)}}" stepKey="actualEndDateHindiGrid"/> |
160 | 160 | <assertStringContainsString stepKey="verifyStartDateHindiInGrid"> |
|
0 commit comments