Closed jilu1 closed 4 years ago
changes look good. Had a couple of questions -
changes look good. Had a couple of questions -
- What is the reasoning behind accessing actions in other custom modules from MagentoWebDriver? Can it live in a parent class that all other custom modules extend?
An alternative solution is use a base module that all our modules extend but I think that's too overkill. MagentoWebDriver is for sure used in Suite to handling sessions.
- How do I use actions outside of MagentoWebDriver in a Helper? Can that use case be included in a verification test?
I think helpers can access anything if they want to. Tests to show how helps use actions from other modules if needed is not in scope of this story.
changes look good. Had a couple of questions -
- What is the reasoning behind accessing actions in other custom modules from MagentoWebDriver? Can it live in a parent class that all other custom modules extend?
An alternative solution is use a base module that all our modules extend but I think that's too overkill. MagentoWebDriver is for sure used in Suite to handling sessions. Sounds good.
- How do I use actions outside of MagentoWebDriver in a Helper? Can that use case be included in a verification test?
I think helpers can access anything if they want to. Tests to show how helps use actions from other modules if needed is not in scope of this story. looks like
$this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver')
is used in Helper classes and suites. Since actions are moved out of this class, maybe a similar mechanism of accessing container will be useful in case of Helpers too.
Description
Fixed Issues (if relevant)
Contribution checklist