Skip to content

Commit 5b5bbbc

Browse files
committed
Components upgrade
2 parents c38d87e + 4a353df commit 5b5bbbc

File tree

10 files changed

+95
-460
lines changed

10 files changed

+95
-460
lines changed

CHANGELOG.md

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
Magento Functional Testing Framework Changelog
22
================================================
33

4+
5.0.3
5+
---------
6+
### Fixes
7+
* Allowed additional actions to read from credentials file to fix page builder failures.
8+
* Added support for chrome 131
9+
10+
5.0.2
11+
---------
12+
### Fixes
13+
* Removed support for chrome 131
14+
15+
5.0.1
16+
---------
17+
### Enhancement
18+
* Provided support for chrome 131
19+
20+
5.0.0
21+
---------
22+
### Enhancements
23+
* Provided support for PHP 8.4
24+
* Dropped the support for PHP 8.1
25+
* Removed unwanted dependent packages
26+
* Removed the dependency of codeception/module-sequence and implemented internal adjustments to address PHP 8.4 deprecations.
27+
28+
4.8.3
29+
---------
30+
### Enhancements
31+
* Bumped aws/aws-sdk-php package to 3.323.4
32+
* Bumped composer/composer to 2.8.1
33+
* Bumped laminas/laminas-diactoros to 3.4.1
34+
* Bumped nikic/php-parser to 5.3.1
35+
* Bumped squizlabs/php_codesniffer to 3.10.3
36+
* Remove any unused files remaining after upgrading Codeception.
37+
438
4.8.2
539
---------
640
### Enhancements
@@ -35,16 +69,16 @@ Magento Functional Testing Framework Changelog
3569
4.7.2
3670
---------
3771
### Enhancements
38-
* Fail static test when introduced filename does not equal the MFTF object name
72+
* Fail static test when introduced filename does not equal the MFTF object name
3973
contained within.
4074

4175
4.7.1
4276
---------
4377
### Enhancements
4478
* Bumped all symfony dependencies to `^6.0
45-
* Removed abandoned package codacy/coverage
79+
* Removed abandoned package codacy/coverage
4680
* Removed abandoned package sebastian/phpcpd
47-
* Bumped monolog/monolog to ^3.0
81+
* Bumped monolog/monolog to ^3.0
4882
* Bumped nikic/php-parser to ^5.0
4983

5084
4.7.0

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento2-functional-testing-framework",
33
"description": "Magento2 Functional Testing Framework",
44
"type": "library",
5-
"version": "4.8.2",
5+
"version": "5.0.3",
66
"license": "AGPL-3.0",
77
"keywords": ["magento", "automation", "functional", "testing"],
88
"config": {

composer.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/unit/Magento/FunctionalTestFramework/Test/Util/ActionMergeUtilTest.php

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function testInvalidSecretFunctions(): void
284284
{
285285
$this->expectException(TestReferenceException::class);
286286
$this->expectExceptionMessage(
287-
'You cannot reference secret data outside of the fillField, magentoCLI and createData actions'
287+
'You cannot reference secret data outside of the fillField, magentoCLI, seeInField and createData actions'
288288
);
289289

290290
$actionObjectOne = new ActionObject(
@@ -307,4 +307,31 @@ public static function tearDownAfterClass(): void
307307
{
308308
TestLoggingUtil::getInstance()->clearMockLoggingUtil();
309309
}
310+
311+
/**
312+
* Verify that a <seeInField> action is replaced by <seeInSecretField> when secret _CREDS are referenced.
313+
*
314+
* @return void
315+
* @throws TestReferenceException
316+
* @throws XmlException
317+
*/
318+
public function testValidSeeInSecretFieldFunction(): void
319+
{
320+
$actionObjectOne = new ActionObject(
321+
'actionKey1',
322+
'seeInField',
323+
['userInput' => '{{_CREDS.username}}', 'requiredCredentials' => 'username']
324+
);
325+
$actionObject = [$actionObjectOne];
326+
327+
$actionMergeUtil = new ActionMergeUtil('actionMergeUtilTest', 'TestCase');
328+
$result = $actionMergeUtil->resolveActionSteps($actionObject);
329+
330+
$expectedValue = new ActionObject(
331+
'actionKey1',
332+
'seeInSecretField',
333+
['userInput' => '{{_CREDS.username}}','requiredCredentials' => 'username']
334+
);
335+
$this->assertEquals($expectedValue, $result['actionKey1']);
336+
}
310337
}

dev/tests/verification/Resources/BasicFunctionalTest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class BasicFunctionalTestCest
170170
$I->seeElementInDOM(".functionalTestSelector"); // stepKey: seeElementInDOMKey1
171171
$I->seeInCurrentUrl("/functionalUrl"); // stepKey: seeInCurrentUrlKey1
172172
$I->seeInField(".functionalTestSelector", "someInput"); // stepKey: seeInFieldKey1
173+
$I->seeInSecretField(".functionalTestSelector", $I->getSecret("someKey")); // stepKey: seeInFieldKey2
173174
$I->seeInPageSource("Home Page"); // stepKey: seeInPageSourceKey1
174175
$I->seeInPageSource("<h1 class=\"page-title\">"); // stepKey: seeInPageSourceKey2
175176
$I->seeInPopup("someInput"); // stepKey: seeInPopupKey1

dev/tests/verification/TestModule/Test/BasicFunctionalTest/BasicFunctionalTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
<seeElementInDOM selector=".functionalTestSelector" stepKey="seeElementInDOMKey1"/>
109109
<seeInCurrentUrl url="/functionalUrl" stepKey="seeInCurrentUrlKey1"/>
110110
<seeInField selector=".functionalTestSelector" userInput="someInput" stepKey="seeInFieldKey1" />
111+
<seeInField selector=".functionalTestSelector" userInput="{{_CREDS.someKey}}" stepKey="seeInFieldKey2" />
111112
<seeInPageSource html="Home Page" stepKey="seeInPageSourceKey1"/>
112113
<seeInPageSource html="&#60;h1 class&#61;&#34;page-title&#34;&#62;" stepKey="seeInPageSourceKey2"/>
113114
<seeInPopup userInput="someInput" stepKey="seeInPopupKey1"/>

0 commit comments

Comments
 (0)