File tree Expand file tree Collapse file tree 8 files changed +27
-12
lines changed
src/Magento/FunctionalTestingFramework Expand file tree Collapse file tree 8 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 5
5
- \Magento\FunctionalTestingFramework\Helper\Acceptance
6
6
config :
7
7
\Magento\FunctionalTestingFramework\Module\MagentoWebDriver :
8
- browser : chrome
9
- window_size : maximize
8
+ browser : ' chrome'
9
+ capabilities :
10
+ chromeOptions :
11
+ args : ["--start-maximized", "--disable-extensions", "--enable-automation"]
Original file line number Diff line number Diff line change 5
5
- \Magento\FunctionalTestingFramework\Helper\Acceptance
6
6
config :
7
7
\Magento\FunctionalTestingFramework\Module\MagentoWebDriver :
8
- browser : firefox
8
+ browser : ' firefox'
9
+ restart : true
9
10
window_size : maximize
Original file line number Diff line number Diff line change
1
+ # `headless` environment config goes here
2
+ modules :
3
+ enabled :
4
+ - \Magento\FunctionalTestingFramework\Module\MagentoWebDriver
5
+ - \Magento\FunctionalTestingFramework\Helper\Acceptance
6
+ config :
7
+ \Magento\FunctionalTestingFramework\Module\MagentoWebDriver :
8
+ browser : ' chrome'
9
+ window_size : false
10
+ capabilities :
11
+ chromeOptions :
12
+ args : ["--headless", "--disable-gpu", "--disable-extensions"]
13
+ binary : " /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
Original file line number Diff line number Diff line change 5
5
- \Magento\FunctionalTestingFramework\Helper\Acceptance
6
6
config :
7
7
\Magento\FunctionalTestingFramework\Module\MagentoWebDriver :
8
- browser : phantomjs
8
+ browser : ' phantomjs'
Original file line number Diff line number Diff line change 205
205
<item name =" /config/cest" xsi : type =" string" >name</item >
206
206
<item name =" /config/cest/test" xsi : type =" string" >name</item >
207
207
<item name =" /config/cest/test/actionGroup/argument" xsi : type =" string" >name</item >
208
- <item name =" /config/cest/test/createData/required-entity" xsi : type =" string" >persistedKey </item >
208
+ <item name =" /config/cest/test/createData/required-entity" xsi : type =" string" >createDataKey </item >
209
209
<item name="/config/cest/test/(acceptPopup|actionGroup|amOnPage|amOnUrl|appendField|assertArraySubset|attachFile|cancelPopup|checkOption|click|clickWithLeftButton|clickWithRightButton|closeTab|createData|deleteData|dontSee|dontSeeCheckboxIsChecked|dontSeeCookie|dontSeeCurrentUrlEquals|dontSeeCurrentUrlMatches|dontSeeElement|dontSeeElementInDOM|dontSeeInCurrentUrl|dontSeeInField|dontSeeInPageSource|dontSeeInSource|dontSeeInTitle|dontSeeLink|dontSeeOptionIsSelected|doubleClick|dragAndDrop|entity|executeJS|fillField|formatMoney|grabAttributeFrom|grabCookie|grabFromCurrentUrl|grabMultiple|grabPageSource|grabTextFrom|grabValueFrom|loadSessionSnapshot|loginAsAdmin|makeScreenshot|maximizeWindow|moveBack|moveForward|moveMouseOver|openNewTab|pauseExecution|performOn|pressKey|reloadPage|resetCookie|resizeWindow|scrollTo|searchAndMultiSelectOption|see|seeCheckboxIsChecked|seeCookie|seeCurrentUrlEquals|seeCurrentUrlMatches|seeElement|seeElementInDOM|seeInCurrentUrl|seeInField|seeInFormFields|seeInPageSource|seeInPopup|seeInSource|seeInTitle|seeLink|seeNumberOfElements|seeOptionIsSelected|selectOption|setCookie|switchToIFrame|switchToNextTab|switchToPreviousTab|switchToWindow|typeInPopup|uncheckOption|unselectOption|wait|waitForAjaxLoad|waitForElement|waitForElementChange|waitForElementNotVisible|waitForElementVisible|waitForJS|waitForLoadingMaskToDisappear|waitForPageLoad|waitForText)" xsi:type="string">mergeKey</item>
210
210
</argument >
211
211
<argument name =" fileName" xsi : type =" string" >*Cest.xml</argument >
221
221
<item name="/config/cest/after/(acceptPopup|actionGroup|amOnPage|amOnUrl|appendField|assertArraySubset|attachFile|cancelPopup|checkOption|click|clickWithLeftButton|clickWithRightButton|closeTab|createData|deleteData|dontSee|dontSeeCheckboxIsChecked|dontSeeCookie|dontSeeCurrentUrlEquals|dontSeeCurrentUrlMatches|dontSeeElement|dontSeeElementInDOM|dontSeeInCurrentUrl|dontSeeInField|dontSeeInPageSource|dontSeeInSource|dontSeeInTitle|dontSeeLink|dontSeeOptionIsSelected|doubleClick|dragAndDrop|entity|executeJS|fillField|formatMoney|grabAttributeFrom|grabCookie|grabFromCurrentUrl|grabMultiple|grabPageSource|grabTextFrom|grabValueFrom|loadSessionSnapshot|loginAsAdmin|makeScreenshot|maximizeWindow|moveBack|moveForward|moveMouseOver|openNewTab|pauseExecution|performOn|pressKey|reloadPage|resetCookie|resizeWindow|scrollTo|searchAndMultiSelectOption|see|seeCheckboxIsChecked|seeCookie|seeCurrentUrlEquals|seeCurrentUrlMatches|seeElement|seeElementInDOM|seeInCurrentUrl|seeInField|seeInFormFields|seeInPageSource|seeInPopup|seeInSource|seeInTitle|seeLink|seeNumberOfElements|seeOptionIsSelected|selectOption|setCookie|switchToIFrame|switchToNextTab|switchToPreviousTab|switchToWindow|typeInPopup|uncheckOption|unselectOption|wait|waitForAjaxLoad|waitForElement|waitForElementChange|waitForElementNotVisible|waitForElementVisible|waitForJS|waitForLoadingMaskToDisappear|waitForPageLoad|waitForText)" xsi:type="string">mergeKey</item>
222
222
<item name =" /config/cest/test" xsi : type =" string" >name</item >
223
223
<item name =" /config/cest" xsi : type =" string" >name</item >
224
- <item name =" /config/cest/test/createData/required-entity" xsi : type =" string" >persistedKey </item >
225
- <item name =" /config/cest/before/createData/required-entity" xsi : type =" string" >persistedKey </item >
226
- <item name =" /config/cest/after/createData/required-entity" xsi : type =" string" >persistedKey </item >
224
+ <item name =" /config/cest/test/createData/required-entity" xsi : type =" string" >createDataKey </item >
225
+ <item name =" /config/cest/before/createData/required-entity" xsi : type =" string" >createDataKey </item >
226
+ <item name =" /config/cest/after/createData/required-entity" xsi : type =" string" >createDataKey </item >
227
227
<item name =" /config/cest/test/actionGroup/argument" xsi : type =" string" >name</item >
228
228
</argument >
229
229
<argument name =" numericArrays" xsi : type =" array" >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
3
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" testSchema.xsd" >
4
- <actionGroup name =" sampleReusableActions" defaultEntity = " testEntity " >
4
+ <actionGroup name =" sampleReusableActions" >
5
5
<arguments >
6
6
<argument name =" product" defaultValue =" _defaultProduct" />
7
7
<argument name =" category" defaultValue =" _defaultCategory" />
Original file line number Diff line number Diff line change 38
38
</xs : element >
39
39
</xs : choice >
40
40
<xs : attribute type =" xs:string" name =" name" use =" required" />
41
- <xs : attribute type =" xs:string" name =" defaultEntity" />
42
41
</xs : complexType >
43
42
<xs : complexType name =" annotationsType" >
44
43
<xs : choice minOccurs =" 0" maxOccurs =" unbounded" >
379
378
<xs : complexType name =" requiredEntityType" >
380
379
<xs : simpleContent >
381
380
<xs : extension base =" xs:string" >
382
- <xs : attribute type =" xs:string" name =" persistedKey " use =" required" />
381
+ <xs : attribute type =" xs:string" name =" createDataKey " use =" required" />
383
382
<xs : attribute type =" xs:boolean" name =" remove" default =" false" />
384
383
<xs : attribute type =" xs:string" name =" before" />
385
384
<xs : attribute type =" xs:string" name =" after" />
Original file line number Diff line number Diff line change 18
18
class TestGenerator
19
19
{
20
20
21
- const REQUIRED_ENTITY_REFERENCE = 'persistedKey ' ;
21
+ const REQUIRED_ENTITY_REFERENCE = 'createDataKey ' ;
22
22
23
23
/**
24
24
* Path to the export dir.
You can’t perform that action at this time.
0 commit comments