Skip to content

Commit fceb17f

Browse files
committed
MQE-1711: Switch between Developer mode and Production mode takes long time and the test end up time out
fixed static checks + unit tests, added documentation.
1 parent 16e1f03 commit fceb17f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dev/tests/verification/Resources/ActionGroupWithStepKeyReferences.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ActionGroupWithStepKeyReferencesCest
4545
$I->fillField($action1); // stepKey: action1ActionGroup
4646
$I->comment("Invocation stepKey will be appended in non stepKey instances");
4747
$action3ActionGroup = $I->executeJS($action3ActionGroup); // stepKey: action3ActionGroup
48-
$action4ActionGroup = $I->magentoCLI($action4ActionGroup, "\"stuffHere\""); // stepKey: action4ActionGroup
48+
$action4ActionGroup = $I->magentoCLI($action4ActionGroup, "\"stuffHere\"", 60); // stepKey: action4ActionGroup
4949
$I->comment($action4ActionGroup);
5050
$date = new \DateTime();
5151
$date->setTimestamp(strtotime("{$action5}"));

docs/test/actions.md

+1
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,7 @@ Attribute|Type|Use|Description
12621262
---|---|---|---
12631263
`command`|string |optional| CLI command to be executed in Magento environment.
12641264
`arguments`|string |optional| Unescaped arguments to be passed in with the CLI command.
1265+
`timeout`|string|optional| Number of seconds CLI command can run without outputting anything.
12651266
`stepKey`|string|required| A unique identifier of the action.
12661267
`before`|string|optional| `stepKey` of action that must be executed next.
12671268
`after`|string|optional| `stepKey` of preceding action.

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ public function fillSecretField($field, $value)
673673
* Function used to create data that contains sensitive credentials in a <createData> <field> override.
674674
* The data is decrypted immediately prior to data creation to avoid exposure in console or log.
675675
*
676-
* @param string $command
677-
* @param null $arguments
678-
* @param null $timeout
676+
* @param string $command
677+
* @param null $arguments
678+
* @param null $timeout
679679
* @throws TestFrameworkException
680680
* @return string
681681
*/

0 commit comments

Comments
 (0)