Skip to content
Snippets Groups Projects
Commit 752fb2fa authored by Vadim Zubovich's avatar Vadim Zubovich
Browse files

MTO-92: [Variation] Check Shipping Amount if not base currency

- Added method
parent ff15af83
No related merge requests found
......@@ -7,7 +7,7 @@
namespace Magento\Cms\Test\Block;
/**
* Messages block.
* Store front messages block.
*/
class Messages extends \Magento\Ui\Test\Block\Messages
{
......
......@@ -17,6 +17,6 @@
<block name="currencyBlock" class="Magento\Directory\Test\Block\Currency\Switcher" locator=".switcher.currency" strategy="css selector" />
<block name="cmsPageBlock" class="Magento\Cms\Test\Block\Page" locator=".page-main" strategy="css selector" />
<block name="widgetView" class="Magento\Widget\Test\Block\WidgetView" locator=".widget" strategy="css selector" />
<block name="messagesBlock" class="Magento\Backend\Test\Block\Messages" locator=".messages" strategy="css selector"/>
<block name="messagesBlock" class="Magento\Cms\Test\Block\Messages" locator=".messages" strategy="css selector"/>
</page>
</config>
......@@ -42,6 +42,13 @@ class Messages extends Block
*/
protected $noticeMessage = '[data-ui-id$=message-notice]';
/**
* Warning message selector.
*
* @var string
*/
protected $warningMessage = '[data-ui-id$=message-warning]';
/**
* Wait for success message.
*
......@@ -140,4 +147,15 @@ class Messages extends Block
$this->waitForElementVisible($this->noticeMessage);
return $this->_rootElement->find($this->noticeMessage)->getText();
}
/**
* Get warning message which is present on the page.
*
* @return string
*/
public function getWarningMessage()
{
$this->waitForElementVisible($this->warningMessage);
return $this->_rootElement->find($this->warningMessage)->getText();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment