Skip to content

Commit 20498b7

Browse files
committed
MQE-2214: Part 1 Docs Annual Review
1 parent b195677 commit 20498b7

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,13 @@ The path to where the MFTF modules mirror Magento modules.
221221
Example:
222222

223223
```conf
224-
TESTS_MODULE_PATH=~/magento2/dev/tests/acceptance/tests/functional/Magento/FunctionalTest
224+
TESTS_MODULE_PATH=~/magento2/dev/tests/acceptance/tests/functional/Magento
225225
```
226226

227227
### MODULE_ALLOWLIST
228228

229229
Use for a new module.
230-
When adding a new directory at `Magento/FunctionalTest`, add the directory name to `MODULE_ALLOWLIST` to enable MFTF to process it.
230+
When adding a new directory at `tests/functional/Magento`, add the directory name to `MODULE_ALLOWLIST` to enable MFTF to process it.
231231

232232
Example:
233233

docs/extending.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ Extend an [action group] to add or update [actions] in your module.
177177

178178
### Update an action
179179

180-
__Use case__: The `CountProductA` test counts the particular product.
180+
__Use case__: The `AssertAdminCountProductActionGroup` action group counts the particular product.
181181
Modify the action group to use another product.
182182

183183
> Action groups with "extends":
184184
185185
```xml
186186
<actionGroups>
187-
<actionGroup name="CountProductA">
187+
<actionGroup name="AssertAdminCountProductActionGroup">
188188
<arguments>
189189
<argument name="count" type="string"/>
190190
</arguments>
@@ -195,7 +195,7 @@ Modify the action group to use another product.
195195
</assertCount>
196196
</actionGroup>
197197

198-
<actionGroup name="CountProductB" extends="CountProductA">
198+
<actionGroup name="AssertAdminOtherCountProductActionGroup" extends="AssertAdminCountProductActionGroup">
199199
<grabMultiple selector="selectorForProductB" stepKey="grabProducts"/>
200200
</actionGroup>
201201
</actionGroups>
@@ -205,7 +205,7 @@ Modify the action group to use another product.
205205
206206
```xml
207207
<actionGroups>
208-
<actionGroup name="CountProductA">
208+
<actionGroup name="AssertAdminCountProductActionGroup">
209209
<arguments>
210210
<argument name="count" type="string"/>
211211
</arguments>
@@ -216,7 +216,7 @@ Modify the action group to use another product.
216216
</assertCount>
217217
</actionGroup>
218218

219-
<actionGroup name="CountProductB">
219+
<actionGroup name="AssertAdminOtherCountProductActionGroup">
220220
<arguments>
221221
<argument name="count" type="string"/>
222222
</arguments>
@@ -231,21 +231,21 @@ Modify the action group to use another product.
231231

232232
### Add an action
233233

234-
__Use case__: The `GetProductCount` action group returns the count of products.
235-
Add a new test `VerifyProductCount` that asserts the count of products:
234+
__Use case__: The `AdminGetProductCountActionGroup` action group returns the count of products.
235+
Add a new test `AssertAdminVerifyProductCountActionGroup` that asserts the count of products:
236236

237237
> Action groups with "extends":
238238
239239
```xml
240240
<actionGroups>
241-
<actionGroup name="GetProductCount">
241+
<actionGroup name="AdminGetProductCountActionGroup">
242242
<arguments>
243243
<argument name="productSelector" type="string"/>
244244
</arguments>
245245
<grabMultiple selector="{{productSelector}}" stepKey="grabProducts"/>
246246
</actionGroup>
247247

248-
<actionGroup name="VerifyProductCount" extends="GetProductCount">
248+
<actionGroup name="AssertAdminVerifyProductCountActionGroup" extends="AdminGetProductCountActionGroup">
249249
<arguments>
250250
<argument name="count" type="string"/>
251251
</arguments>
@@ -261,14 +261,14 @@ Add a new test `VerifyProductCount` that asserts the count of products:
261261
262262
```xml
263263
<actionGroups>
264-
<actionGroup name="GetProductCount">
264+
<actionGroup name="AdminGetProductCountActionGroup">
265265
<arguments>
266266
<argument name="productSelector" type="string"/>
267267
</arguments>
268268
<grabMultiple selector="{{productSelector}}" stepKey="grabProducts"/>
269269
</actionGroup>
270270

271-
<actionGroup name="VerifyProductCount">
271+
<actionGroup name="AssertAdminVerifyProductCountActionGroup">
272272
<arguments>
273273
<argument name="count" type="string"/>
274274
<argument name="productSelector" type="string"/>

docs/getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cd magento2/
4444
```
4545

4646
```bash
47-
git checkout 2.3-develop
47+
git checkout 2.4-develop
4848
```
4949

5050
Install the Magento application.
@@ -241,10 +241,10 @@ See more commands in [`codecept`][].
241241

242242
#### Run a simple test {#run-test}
243243

244-
To clean up the previously generated tests, and then generate and run a single test `AdminLoginTest`, run:
244+
To clean up the previously generated tests, and then generate and run a single test `AdminLoginSuccessfulTest`, run:
245245

246246
```bash
247-
vendor/bin/mftf run:test AdminLoginTest --remove
247+
vendor/bin/mftf run:test AdminLoginSuccessfulTest --remove
248248
```
249249

250250
See more commands in [`mftf`][].
@@ -315,7 +315,7 @@ composer remove magento/magento2-functional-testing-framework --dev -d <path to
315315
Generate and run a single test that will check your logging to the Magento Admin functionality:
316316

317317
```bash
318-
bin/mftf run:test AdminLoginTest
318+
bin/mftf run:test AdminLoginSuccessfulTest
319319
```
320320

321321
You can find the generated test at `dev/tests/functional/tests/MFTF/_generated/default/`.

0 commit comments

Comments
 (0)