Skip to content

Commit cece338

Browse files
committed
Added 2.2 docs
1 parent 7114744 commit cece338

26 files changed

+680
-2398
lines changed

best-practices.md

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
mftf-release: 2.3.0
3-
redirect_from: /guides/v2.3/magento-functional-testing-framework/2.3/best-practices.html
2+
mftf-release: 2.2.0
3+
redirect_from: /guides/v2.2/magento-functional-testing-framework/2.2/best-practices.html
44
---
55

66
# Best practices
@@ -16,31 +16,6 @@ Check out our best practices below to ensure you're getting the absolute most ou
1616
Add additional explanation in comments if needed.
1717
2. Provide default values for the arguments that apply to your most common case scenarios.
1818

19-
## `actionGroups` vs `extends`
20-
21-
Use an action group to wraps a set of actions to reuse them multiple times.
22-
23-
Use an [extension] when a test or action group needs to be repeated with the exception of a few steps.
24-
25-
### When to use `extends`
26-
27-
Use `extends` in your new test or action group when at least one of the following conditions is applicable to your case:
28-
29-
1. You want to keep the original test without any modifications.
30-
2. You want to create a new test that follows the same path as the original test.
31-
3. You want a new action group that behaves similarly to the existing action group, but you do not want to change the functionality of the original action group.
32-
33-
### When to avoid `extends`
34-
35-
Do not use `extends` in the following conditions:
36-
1. You want to change the functionality of the test or action group and do not need to run the original version.
37-
2. You plan to merge the base test or action group.
38-
39-
The following pattern is used when merging with `extends`:
40-
1. The original test is merged.
41-
2. The extended test is created from the merged original test.
42-
3. The extended test is merged.
43-
4419
## Annotation
4520

4621
1. Use [annotations] in a test.
@@ -144,19 +119,18 @@ Since the configurable product module could be disabled, this approach is more r
144119

145120
<!-- Link definitions -->
146121

122+
[Action group]: test/action-groups.html
147123
[`<after>`]: test/actions.html#before-and-after
124+
[annotations]: test/annotations.html
148125
[`<before>`]: test/actions.html#before-and-after
149126
[`<comment>`]: test/actions.html#comment
150127
[`<createData>`]: test/actions.html#createdata
151128
[`<deleteData>`]: test/actions.html#deletedata
152-
[`<wait>`]: test/actions.html#wait
153-
[`<waitForElement>`]: test/actions.html#waitforelement
154-
[`<waitForElementVisible>`]: test/actions.html#waitforelementvisible
155-
[`<waitForLoadingMaskToDisappear>`]: test/actions.html#waitforloadingmasktodisappear
156-
[Action group]: test/action-groups.html
157-
[annotations]: test/annotations.html
158129
[entity]: data.html
159-
[extension]: extending.html
160130
[merging]: merging.html
161131
[parameterized selectors]: section/parameterized-selectors.html
162132
[sections]: section.html
133+
[`<wait>`]: test/actions.html#wait
134+
[`<waitForElement>`]: test/actions.html#waitforelement
135+
[`<waitForElementVisible>`]: test/actions.html#waitforelementvisible
136+
[`<waitForLoadingMaskToDisappear>`]: test/actions.html#waitforloadingmasktodisappear

commands/codeception.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
---
2-
mftf-release: 2.3.0
3-
redirect_from: /guides/v2.3/magento-functional-testing-framework/2.3/commands/codeception.html
2+
mftf-release: 2.0.2
3+
redirect_from: /guides/v2.2/magento-functional-testing-framework/2.2/codeception.html
44
---
55

6-
# CLI commands: vendor/bin/codecept
6+
# Codeception commands
77

88
_This topic was updated due to the {{page.mftf-release}} MFTF release._
99
{: style="text-align: right"}
1010

1111
{:.bs-callout .bs-callout-warning}
1212
We do not recommend using Codeception commands directly as they can break the MFTF basic workflow.
13-
All the Codeception commands you need are wrapped using the [`mftf` tool][].
13+
All the Codeception commands you need are wrapped using Robo.
1414

15-
To run the Codeception testing framework commands directly, change your directory to `dev/tests/acceptance`.
15+
See the [list of Robo commands](robo.html). If you'd like to run the Codeception tests directly without using Robo, run:
1616

17-
## Usage examples
17+
```bash
18+
vendor/bin/codecept run functional
19+
```
20+
21+
## Examples
1822

19-
Run all the generated tests:
23+
Run all tests in `dev/tests/acceptance/tests/functional/Magento/FunctionalTest`:
2024

2125
```bash
2226
vendor/bin/codecept run functional
2327
```
2428

25-
Run all tests without the `<group value="skip"/>` [annotation](../test/annotations.html):
29+
Run all tests without the `<group value="skpip"/>` [annotation](../test/annotations.html):
2630

2731
```bash
2832
vendor/bin/codecept run functional --skip-group skip
@@ -84,8 +88,3 @@ Full reference:
8488
--no-ansi Disable ANSI output.
8589
--no-interaction (-n) Do not ask any interactive question.
8690
```
87-
88-
89-
<!-- Link definitions -->
90-
91-
[`mftf` tool]: mftf.html

0 commit comments

Comments
 (0)