Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
DeleteProductAttributeEntityTest Class Reference
Inheritance diagram for DeleteProductAttributeEntityTest:

Public Member Functions

 testDeleteProductAttribute (CatalogProductAttribute $attribute, CatalogProductAttributeIndex $attributeIndex, CatalogProductAttributeNew $attributeNew)
 

Data Fields

const MVP = 'yes'
 

Detailed Description

Preconditions:

  1. Attribute is created.

Test Flow:

  1. Log in as default admin user.
  2. Go to Stores > Attributes > Product.
  3. Search product attribute in grid by given data.
  4. Click on the required product attribute.
  5. Click on the "Delete Attribute" button.
  6. Perform all assertions.

@group Product_Attributes @ZephyrId MAGETWO-24998

Definition at line 29 of file DeleteProductAttributeEntityTest.php.

Member Function Documentation

◆ testDeleteProductAttribute()

testDeleteProductAttribute ( CatalogProductAttribute  $attribute,
CatalogProductAttributeIndex  $attributeIndex,
CatalogProductAttributeNew  $attributeNew 
)

Run DeleteProductAttributeEntity test.

Parameters
CatalogProductAttribute$attribute
CatalogProductAttributeIndex$attributeIndex
CatalogProductAttributeNew$attributeNew
Returns
void

Definition at line 43 of file DeleteProductAttributeEntityTest.php.

47  {
48  //Precondition
49  $attribute->persist();
50 
51  //Steps
52  $attributeIndex->open();
53  $attributeIndex->getGrid()->searchAndOpen(['frontend_label' => $attribute->getFrontendLabel()]);
54  $attributeNew->getPageActions()->delete();
55  $attributeNew->getModalBlock()->acceptAlert();
56  }

Field Documentation

◆ MVP

const MVP = 'yes'

Definition at line 32 of file DeleteProductAttributeEntityTest.php.


The documentation for this class was generated from the following file: