Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertStoreGroupOnStoreViewForm.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Backend\Test\Page\Adminhtml\StoreIndex;
10 use Magento\Backend\Test\Page\Adminhtml\StoreNew;
12 use Magento\Mtf\Constraint\AbstractConstraint;
13 
18 class AssertStoreGroupOnStoreViewForm extends AbstractConstraint
19 {
28  public function processAssert(StoreIndex $storeIndex, StoreNew $storeNew, StoreGroup $storeGroup)
29  {
30  $storeGroupName = $storeGroup->getName();
31  $storeIndex->open()->getGridPageActions()->addStoreView();
32  \PHPUnit\Framework\Assert::assertTrue(
33  $storeNew->getStoreForm()->isStoreVisible($storeGroupName),
34  'Store Group \'' . $storeGroupName . '\' is not present on StoreView Form in Store dropdown.'
35  );
36  }
37 
43  public function toString()
44  {
45  return 'Store Group is visible on StoreView Form in Store dropdown.';
46  }
47 }
processAssert(StoreIndex $storeIndex, StoreNew $storeNew, StoreGroup $storeGroup)
taxRateField this edit on("click.mselect-delete", ".mselect-delete", function() { if(!confirm('<?=/*@escapeNotVerified */__( 'Do you really want to delete this tax rate?') ?>')) { return;} var that=$(this), select=that.closest('.mselect-list').prev(), rateValue=that.parent().find( 'input[type="checkbox"]').val();$( 'body').trigger( 'processStart');var ajaxOptions={ type:'POST', data:{ tax_calculation_rate_id:rateValue, form_key:$( 'input[name="form_key"]').val() }, dataType:'json', url:'<?=/*@escapeNotVerified */$block->getTaxRateDeleteUrl() ?>', success:function(result, status) { $( 'body').trigger( 'processStop');if(result.success) { that.parent().remove();select.find( 'option').each(function() { if(this.value===rateValue) { $(this).remove();} });select.trigger( 'change.hiddenSelect');} else { if(result.error_message) alert({ content:result.error_message });else alert({ content:'<?=/*@escapeNotVerified */__( 'An error occurred') ?>' });} }, error:function() { $( 'body').trigger( 'processStop');alert({ content:'<?=/*@escapeNotVerified */__( 'An error occurred') ?>' });} };$.ajax(ajaxOptions);}) .on( 'click.mselectAdd'
Definition: edit.phtml:164