Please enable cookies in your web browser to continue.
\r\n
\r\n
Cookies are short pieces of data that are sent to your computer when you visit a website. On later visits, this data is then returned to that website. Cookies allow us to recognize you automatically whenever you visit our site so that we can personalize your experience and provide you with better service. We also use cookies (and similar browser data, such as Flash cookies) for fraud prevention and other purposes. If your web browser is set to refuse cookies from our website, you will not be able to complete a purchase or take advantage of certain features of our website, such as storing items in your Shopping Cart or receiving personalized recommendations. As a result, we strongly encourage you to configure your web browser to accept cookies from our website.
Please enable cookies in your web browser to continue.
\r\n
\r\n
Cookies are short pieces of data that are sent to your computer when you visit a website. On later visits, this data is then returned to that website. Cookies allow us to recognize you automatically whenever you visit our site so that we can personalize your experience and provide you with better service. We also use cookies (and similar browser data, such as Flash cookies) for fraud prevention and other purposes. If your web browser is set to refuse cookies from our website, you will not be able to complete a purchase or take advantage of certain features of our website, such as storing items in your Shopping Cart or receiving personalized recommendations. As a result, we strongly encourage you to configure your web browser to accept cookies from our website.
-
-Before you install Magento 2, make sure your system meets or exceeds the following requirements:
-
-* Operating systems
-
- Linux distributions such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and so on
-
-* Composer (latest stable version)
-* Apache 2.2 or later
-* PHP 5.4.11 or 5.5.x
-* Required PHP extensions:
-
- * PDO/MySQL
- * mbstring
- * mcrypt
- * mhash
- * simplexml
- * curl
- * gd2, ImageMagick 6.3.7 (or later) or both
- * soap
-
-* MySQL 5.6.x
-* Mail Transfer Agent (MTA) or an SMTP server
-* Optional but recommended:
-
- * php_xdebug2.2.0 or later (development environments only; can have an adverse effect on performance)
- * PHPUnit (as a command-line tool) 4.1 or later
-
-
Composer and Magento
-
-We now use Composer to install the Magento 2 software. Composer enables us to manage Magento 2, extensions, and their dependencies.
+The installation instructions that used to be here are now published on our GitHub site. Use the information on this page to get started or go directly to the guide.
-Composer provides you with the following advantages:
+
New to Magento? Need some help?
+If you're not sure about the following, you probably need a little help before you start installing the Magento software:
-* Enables you to reuse third-party libraries without bundling them with source code
-* Component-based architecture with robust dependency management
-* Manages dependencies to reduce extension conflicts and compatibility issues
-* Versioned dependencies
-* Semantic versioning
-* Supports PHP Framework Interoperability standards
+* Is the Magento software installed already?
+* What's a terminal, command prompt, or Secure Shell (ssh)?
+* Where's my Magento server and how do I access it?
+* What's PHP?
+* What's Apache?
+* What's MySQL?
-We'll have more information soon on how developers can use Composer to package extensions to distribute to Magento merchants and to other developers.
+
Step 1: Verify your prerequisites
-
High-level installation roadmap
-
-Following is a brief overview of how to install the Magento 2 software.
-
-
Step 1: Verify your prerequisites
-
-Use the following table to verify you have the correct prerequisites to install the Magento 2 software.
+Use the following table to verify you have the correct prerequisites to install the Magento software.
@@ -75,772 +26,34 @@ Use the following table to verify you have the correct prerequisites to install
-
-Unless otherwise noted, all commands in this Readme must be entered as a user with `root` privileges and permission to write to the web server docroot. Depending on your system, that might mean you must use different user accounts or add users to the web server user group—provided that group has sufficient privileges.
-
-Installing software on Linux typically requires `root` privileges. You should generally not install the Magento 2 software in the web server docroot using `root` privileges; however, that is up to you.
-
-
Prerequisites
-
-This section discusses how to install software required to install Magento 2.
-
-See one of the following sections:
-
-* Before you begin
-* Apache
-* PHP
-* MySQL
-
-
-
Before you begin
-
-Before you install Magento, you must do all of the following:
-
-* Set up one or more hosts that meet the Magento 2 system requirements.
-* Make sure you can back up your entire system at various points during the installation so you can roll back in the event of issues.
-
-
Apache
-
-
Installing Apache on Ubuntu
-
-
Install Apache using the guidelines on the Ubuntu site.
Apache 2.4: The Apache 2.4 documentation.
-Note that in Apache 2.4, the server's default site configuration file is /etc/apache2/sites-available/000-default.conf
-For example, you can add the following to the bottom of 000-default.conf:
-
<Directory "/var/www">
-AllowOverride [value from Apache site]
-</Directory>
-Note: You must change the value of AllowOverride in the directive for the directory to which you expect to install the Magento software. For example, to install in the web server docroot, edit the directive in <Directory /var/www>.
-
-
Restart Apache: service apache2 restart
-
-
Installing Apache on CentOS
-
-1. Install Apache:
-
- `yum -y install httpd`
-
- For additional information, see the Apache site.
-
-2. Enable server rewrites.
-
- **Note**: You must change the value of Allow Override in the directive for the directory to which you expect to install the Magento software. For example, to install in the web server docroot, edit the directive in <Directory "/var/www/html">.
-
-2. Set the type of directives that can be used in `.htaccess`. Magento uses `.htaccess` for redirects. Apache documentation.
-
-3. Restart Apache: `service httpd restart`
-
-
MySQL
-
-
Installing MySQL on Ubuntu
-
-1. Install MySQL on Ubuntu 12 or Ubuntu 14.
-2. Configure the database instance.
-
-
-
-2. Start MySQL.
-
- `service mysqld start`
-
-3. Set a password for the root user and set other security-related options. Enter the following command and follow the prompts on your screen to complete the configuration.
-
- `mysql_secure_installation`
-
-
Configuring the Magento database instance
-
-This section discusses how to create a new database instance for Magento. Although a new database instance is recommended, you can optionally install Magento into an existing database instance.
-
-To configure a MySQL database instance:
-
-1. Log in to your database server as any user.
-2. Enter the following command to get to a MySQL command prompt:
-
- `mysql -u root -p`
-
-3. Enter the MySQL `root` user's password when prompted.
-4. Enter the following commands in the order shown to create a database instance named `magento` with user name `magento`:
-
create database magento;
-GRANT ALL ON magento.* TO magento@localhost IDENTIFIED BY 'magento';
-
-5. Enter `exit` to quit the command prompt.
-
-
PHP
-
-Magento 2 requires PHP 5.4.11 or later or PHP 5.5.x.
-
-**Note**: Magento 2 does *not* support PHP 5.6.
-
-
PHP 5.5 or 5.4 on Ubuntu
-
-
Install PHP 5.5 on Ubuntu 14
-
-To install PHP 5.5 on Ubuntu 14:
-
-1. Enter the following command:
-
- `apt-get -y install php5`
-
-2. Verify the PHP version by entering `php -v`. Messages similar to the following should display:
-
-
PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep 4 2014 06:56:34)
- Copyright (c) 1997-2014 The PHP Group
- Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
- with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
-
-
Install PHP 5.5 on Ubuntu 12
-
-1. Use the following commands from dev-metal:
-
-
-
-To upgrade to PHP 5.4 on Ubuntu:
-
-1. Use the instructions on phpave.
-2. After upgrading, verify the PHP version by entering `php -v`. Messages similar to the following should display:
-
-
-
-There is a known issue in Ubuntu 14 with the `mcrypt` PHP extension. To work around the issue, see askubuntu.
-
-
PHP 5.5 or 5.4 on CentOS
-
-PHP 5.3 is the default PHP version on CentOS distributions. Upgrade to PHP 5.4 using a repository like remi.
-
-The following resources are also available:
-
-* kb.parallels
-* stackoverflow
-* remi repository
-
-To verify if PHP is installed already, enter `php -v`. If PHP is *not* installed, install it by entering the following command:
-
-
yum -y install php php-xml
-
-
PHP 5.5 on CentOS
-
-To upgrade to PHP 5.5:
-
-There is more than one way to upgrade CentOS 6.5 to PHP 5.5; the following is a suggestion only. Consult a reference for additional options.
-
-Enter the following commands in the order shown.
-
-
-
-Enter the following command to install required PHP extensions:
-
-`yum -y --enablerepo=remi install php-xml php-mcrypt.x86_64 gd gd-devel php-gd php-mysql`
-
-
Setting the PHP timezone (all operating systems)
-
-Before you install Magento, you might need to set the system time zone for PHP; otherwise, errors like the following display during the installation and time-related operations like cron might not work:
-
-`PHP Warning: date(): It is not safe to rely on the system's timezone settings.` [more messages follow]
-
-To set your time zone:
-
-1. Locate your server's time zone in the available time zone settings.
-2. Locate `php.ini` by entering the following command:
-
- `php -i | grep "Loaded Configuration File"`
-
- Typical locations follow:
-
- Ubuntu: `/etc/php5/cli/php.ini`
-
- CentOS: `/etc/php.ini`
-
-3. Open `php.ini` in a text editor.
-
-4. Locate the following setting and uncomment it if necessary:
-
- `date.timezone =`
-
-5. Add the time zone setting you found in step 1.
-6. Save your changes to `php.ini` and exit the text editor.
-
-
Setting the PHP memory limit (all operating systems)
-
-Increase `memory_limit` in `php.ini` to at least 512MB for normal operation or 2GB for testing:
-
-1. Open one of the following in a text editor:
-
- * Ubuntu: `/etc/php5/apache2/php.ini`
- * CentOS: `/etc/php.ini`
-2. Change `memory_limit` to:
-
- `memory_limit = 512M` or more for normal operation
-
- `memory_limit = 2G` or more for testing
-
-3. Save your changes and exit the text editor.
-
-4. Restart Apache:
-
- Ubuntu: `service apache2 restart`
-
- CentOS: `service httpd restart`
-
-
-
Installing Composer
-
-To install Composer:
-
-1. Change to or create an empty directory on your Magento server.
-
-2. Enter the following commands:
-
-
-
-To clone the Magento 2 GitHub repository:
-
-1. Change to your web server's docroot directory.
-
- Typically, for Ubuntu, it's `/var/www` and for CentOS it's `/var/www/html`.
-
-2. Enter any of the following commands as a user with privileges to write to the web server docroot:
-
- To clone using HTTPS, use either of the following:
-
- `git clone https://github.com/magento/magento2.git`
-
- `git clone https://[your github.com user name]:[password]@github.com/magento/magento2.git`
-
- To clone using SSH: `git clone git@github.com:magento/magento2.git`
-
-3. Wait for the repository to clone on your server.
-
-**Note**: If you get an error that includes `Permission denied (publickey)`, see Troubleshooting.
-
-
Setting file system permissions and ownership before you install
-
-To make sure the installation completes successfully, we suggest the following file system permissions and ownership:
-
-* All files and directories owned by the web server user
-* Certain directories must be writable
-
-
Finding the web server user
-
-To find the web server user, enter one of the following commands:
-
-* Ubuntu: `ps -ef | grep apache2`
-* CentOS: `grep User /etc/httpd/conf/httpd.conf`
-
-
Pre-installation permissions and ownership
-
-Before the installation, set the following permissions:
-
-* All directories have 700 permissions `(drwx------)`.
-
- 700 permissions give full control (that is, read/write/execute) to the owner and no permissions to anyone else.
-
-* All files have 600 permissions `(-rw-------)`.
-
- 600 permissions mean the owner can read and write but other users have no permissions.
-
-
Setting permissions and ownership
-
-1. To set ownership, enter the following commands as a user with `root` privileges:
-
-
cd [your Magento installation directory]
- chown -R [web server user name] .
-
- CentOS example:
-
-
cd /var/www/html/magento2
- chown -R apache .
-
- Ubuntu example:
-
-
cd /var/www/magento2
- chown -R www-data .
-
-2. Set file and directory permissions:
-
-
find . -type d -exec chmod 700 {} \;
- find . -type f -exec chmod 600 {} \;
-
-
Getting started with your installation
-
-After you complete the tasks discussed in the preceding section, update Composer and run the installer:
-
-1. Log in to your Magento server as a user with `root` privileges.
-2. Change to the Magento 2 installation directory. For example,
-
- `cd /var/www/html/magento2`
-
- **Note**: On Ubuntu, you might have to use the `sudo -s` or equivalent command to access this directory.
-
-3. As user with privileges to write to the web server docroot, enter `composer install`
-
- This command updates package dependencies and can take a few minutes to complete.
-
-4. Change to the Magento 2 `setup` subdirectory and enter `composer install`.
-
-**Note**: You must run `composer install` from *both* directories.
-
-
Running the Magento 2 installer
-
-This section discusses how to run the command-line installer for Magento 2.
-
-**Note**: You must install Magento from its `setup` subdirectory.
-
-The installer is designed to be run multiple times if necessary so you can:
-
-* Provide different values
-
- For example, after you configure your web server for Secure Sockets Layer (SSL), you can run the installer to set SSL options.
-* Correct mistakes in previous installations
-* Install Magento in a different database instance
-
-**Note**: By default, the installer doesn't overwrite the Magento database if you install the Magento software in the same database instance. You can use the optional clean_database parameter to change this behavior.
-
-**Note**: If you get errors during the installation, see Troubleshooting.
-
-Before you begin, you can run the following commands to find values for some required options:
-
-
The following table discusses the meanings of installation option names and values. An example is provided in Sample localhost installation.
-
-
-
-
-
Name
-
Value
-
Required?
-
-
-
base_url
-
Base URL to use to access your Magento Admin and storefront in the format http[s]://[host or ip]/[your Magento base dir]/.
-
Note: The scheme (http:// or https://) and a trailing slash are both required.
-
[your Magento base dir] is the docroot-relative path in which to install the Magento 2 software. Depending on how you set up your web server and virtual hosts, the path might be magento2 or it might be blank.
-
To access Magento on localhost, you can use either http://localhost/[your Magento base dir]/ or http://127.0.0.1/[your Magento base dir]/.
-
-
Yes
-
-
-
backend_frontname
-
Path to access the Magento Admin. This path is appended to Base URL.
-For example, if Base URL is http://www.example.com and Admin Path is admin, the Admin Panel's URL is http://www.example.com/admin—provided you configured your web server for server rewrites.
-
Yes
-
-
-
-
db_host
-
Use any of the following:
-
The database server's fully qualified host name or IP address.
-
localhost if your database serve is on the same host as your web server.
-
UNIX socket; for example, /var/run/mysqld/mysqld.sock
-
Note: You can optionally specify the database server port in its host name like www.example.com:9000
-
-
Yes
-
-
-
db_name
-
Name of the Magento database instance in which you want to install the Magento database tables.
-
Yes
-
-
-
db_user
-
User name of the Magento database instance owner.
-
Yes
-
-
-
db_pass
-
Magento database instance owner's password.
-
No
-
-
-
db_prefix
-
Use only if you're installing the Magento database tables in a database instance that has Magento tables in it already.
-
In that case, use a prefix to identify the Magento tables for this installation. Some customers have more than one Magento instance running on a server with all tables in the same database.
-
This option enables those customers to share the database server with more than one Magento installation.
-
No
-
-
-
admin_firstname
-
Magento administrator user's first name.
-
Yes
-
-
-
admin_lastname
-
Magento administrator user's last name.
-
Yes
-
-
-
admin_email
-
Magento administrator user's e-mail address.
-
Yes
-
-
-
admin_username
-
Magento administrator user name.
-
Yes
-
-
-
admin_password
-
Magento administrator user password.
-
Yes
-
-
-
language
-
Language code to use in the Admin and storefront. (If you have not done so already, you can view the list of language codes by entering php -f index.php help languages from the setup directory.)
-
Yes
-
-
-
currency
-
Default currency to use in the storefront. (If you have not done so already, you can view the list of currencies by entering php -f index.php help currencies from the setup directory.)
-
Yes
-
-
-
timezone
-
Default time zone to use in the Admin and storefront. (If you have not done so already, you can view the list of time zones by entering php -f index.php help timezones from the setup directory.)
-
Yes
-
-
-
use_secure
-
1 enables the use of Secure Sockets Layer (SSL) in all URLs (both Admin and storefront). Make sure your web server supports SSL before you select this option.
-
0 disables the use of SSL with Magento. In this case, all other secure URL options are assumed to also be 0.
-
No
-
-
-
base_secure_url
-
1 means SSL is preferred in Magento URLs designed to use it (for example, the checkout page). Make sure your web server supports SSL before you select this option.
-
0 means SSL is not used.
-
No
-
-
-
-
use_secure_admin
-
1 means you use SSL to access the Magento Admin. Make sure your web server supports SSL before you select this option.
-
0 means you do not use SSL with the Admin.
-
No
-
-
-
admin_use_security_key
-
1 causes the Magento software to use a randomly generated key value to access pages in the Magento Admin and in forms. These key values help prevent cross-site script forgery attacks.
-
0 disables the use of the key.
-
No
-
-
-
session_save
-
Use any of the following:
-
files to store session data in the file system. File-based session storage is appropriate unless the Magento file system access is slow or you have a clustered database.
-
db.files to store session data in the database. Choose database storage if you have a clustered database; otherwise, there might not be much benefit over file-based storage.
-
No
-
-
-
key
-
If you have one, specify a key to encrypt sensitive data in the Magento database. (This includes passwords and personally identifiable customer information.) If you don't have one, Magento generates one for you.
-
No
-
-
-
cleanup_database
-
To drop database tables before installing the Magento 2 software, specify this parameter without a value. Otherwise, the Magento database is left intact.
-
No
-
-
-
db_init_statements
-
Advanced MySQL configuration parameter. Uses database initialization statements to run when connecting to the MySQL database. Consult a reference similar to this one before you set any values.
-
No
-
-
-
sales_order_increment_prefix
-
Specify a string value to use as a prefix for sales orders. Typically, this is used to guarantee unique order numbers for payment processors.
-
No
-
-
-
-
-
-
Sample localhost installation
-
-The following example installs Magento with the following options:
-
-* The Magento software is installed in the `magento2` directory relative to the web server docroot on `localhost` and the path to the Magento Admin is `admin`; therefore:
-
- Your storefront URL is `http://localhost` and you can access the Magento Admin at `http://localhost/admin`
-
-* The database server is on the same host as the web server.
-
- The database name is `magento`, and the user name and password are both `magento`
-
-* The Magento administrator has the following properties:
-
- * First and last name are is `Magento User`
- * User name is `admin` and the password is `iamtheadmin`
- * E-mail address is `user@example.com`
-
-* Default language is `en_US` (U.S. English)
-* Default currency is U.S. dollars
-* Default time zone is U.S. Central (America/Chicago)
-
-
-
-This section discusses how to install the Magento 2 software after you installed it previously. You might do this in an development environment especially to get all the latest code changes.
-
-To reinstall the Magento 2 software:
-
-1. Optionally delete and re-create the database instance.
-2. Log in to your Magento server as a user with permissions to modify files in the Magento file system.
-3. Enter the following commands in the order shown:
-
-
-
-Go to the storefront in a web browser. For example, if your Magento 2 installation base URL is `http://www.example.com`, enter it in your browser's address or location bar.
-
-The following figure shows a sample storefront page. If it displays as follows, your installation was a success!
-
-
-
-If the page appears unconfigured (no styles, only text), see Troubleshooting.
-
-
Verifying the Magento Admin
-
-Go to the Magento Admin in a web browser. For example, if your Magento 2 installation base URL is `http://www.example.com`, and the Admin URL is `admin`, enter `http://www.example.com/admin` in your browser's address or location bar.
-
-(The Admin URL is specified by the value of the `backend_frontname` installation parameter.)
-
-When prompted, log in as a Magento Administrator.
-
-The following figure shows a sample Magento Admin page. If it displays as follows, your installation was a success!
-
-
-
-If the page appears unconfigured (no styles, only text), see Troubleshooting.
-
-If you get a 404 (Not Found) error similar to the following, see Troubleshooting:
-
-`The requested URL /magento2index.php/admin/admin/dashboard/index/key/0c81957145a968b697c32a846598dc2e/ was not found on this server.`
-
-
Troubleshooting
-
-### Problem: Cannot clone the Magento 2 GitHub repository
-
-**Detail**: Error is similar to the following:
-
-
Cloning into 'magento2'...
-Permission denied (publickey).
-fatal: The remote end hung up unexpectedly
-
-**Solution**: Upload your SSH key to GitHub as discussed in the GitHub help page.
-
-### Problem: Cannot run 'composer install'
-
-**Suggestion**: Change to the directory in which you installed Composer and enter the following command:
-
-`mv composer.phar /usr/local/bin/composer`
-
-### Problem: During installation, PHP date warning
-
-**Details**: During the installation, the following message displays:
-
-`PHP Warning: date(): It is not safe to rely on the system's timezone settings. [more]`
-
-**Solution**: Set the PHP timezone properly.
-
-### Problem: During installation, the following fatal error displays:
-
-`PHP Fatal error: Class 'PDO' not found in /var/www/html/magento2/setup/module/Magento/Setup/src/Module/Setup/ConnectionFactory.php on line 44`
-
-**Solution**: Make sure you installed all required PHP extensions.
-
-### Problem: You cannot access Magento in a web browser
-
-**Details**: The following message displays when you try to access the Magento storefront or Admin:
-
-
Whoops, it looks like you have an invalid PHP version.
-Magento supports PHP 5.4.11 or newer.
-
-**Solution**: Either upgrade PHP or restart Apache (Apache might not be using the same PHP version as is on the file system).
-
-To restart Apache:
-
-* Ubuntu: `service apache2 restart`
-* CentOS: `service httpd restart`
-
-### Problem: Error after logging in to the Magento Admin:
-
-`The requested URL /magento2index.php/admin/admin/dashboard/index/key/0c81957145a968b697c32a846598dc2e/ was not found on this server.`
-
-Note the lack of a slash character between magento2 and index.php in the URL.
-
-**Solution**: The base URL is not correct. The base URL must start with http:// or https:// *and* it must end with a slash (/). Run the installation again with a valid value.
+
Step 2: Prepare to install
-### Problem: After installing, images and stylesheets do not load; only text displays, no graphics.
+After verifying your prerequisites, perform the following tasks in order to prepare to install the Magento software.
-**Details**: The path to images and stylesheets is not correct, either because of an incorrect base URL or because server rewrites are not set up properly. To confirm this is the case, use a web browser inspector to check the paths to static assets and verify those assets are located on the Magento file system.
+1. Install Composer
+2. Clone the Magento repository
-Magento 2 static assets should be located under `[your Magento install dir]/pub/static/` (there should be `frontend` and `adminhtml` directories).
+
Step 3: Install and verify the installation
-Verify your server rewrites setting and your base URL and try again.
+1. Update installation dependencies
+2. Install Magento:
+ * Install Magento software using the web interface
+ * Install Magento software using the command line
+2. Verify the installation
diff --git a/dev/build/publication/sanity/ce.xml b/dev/build/publication/sanity/ce.xml
index 2c96791f9201b..81bd98f50f75c 100644
--- a/dev/build/publication/sanity/ce.xml
+++ b/dev/build/publication/sanity/ce.xml
@@ -81,9 +81,6 @@
vendor
-
- setup/vendor
- CHANGELOG.md
diff --git a/dev/build/publication/sanity/ee.xml b/dev/build/publication/sanity/ee.xml
index 84a7af267d6af..e34f49c8222f0 100644
--- a/dev/build/publication/sanity/ee.xml
+++ b/dev/build/publication/sanity/ee.xml
@@ -22,9 +22,6 @@
vendor
-
- setup/vendor
- CHANGELOGCHANGELOG.md
diff --git a/dev/shell/cache.php b/dev/shell/cache.php
index 8c785d9ad9f63..91724bbb25c24 100644
--- a/dev/shell/cache.php
+++ b/dev/shell/cache.php
@@ -40,11 +40,8 @@
$params[Bootstrap::PARAM_REQUIRE_MAINTENANCE] = null;
$bootstrap = Bootstrap::create(BP, $params);
/** @var ManagerApp $app */
- $app = $bootstrap->createApplication('Magento\Framework\App\Cache\ManagerApp', ['request' => $opt]);
+ $app = $bootstrap->createApplication('Magento\Framework\App\Cache\ManagerApp', ['requestArgs' => $opt]);
$bootstrap->run($app);
- echo "Current status:\n";
- var_export($app->getStatusSummary());
- echo "\n";
} catch (\Exception $e) {
echo $e;
exit(1);
diff --git a/dev/shell/run_data_fixtures.php b/dev/shell/run_data_fixtures.php
deleted file mode 100644
index 2dee5994febd1..0000000000000
--- a/dev/shell/run_data_fixtures.php
+++ /dev/null
@@ -1,18 +0,0 @@
-mergeFromArgv($_SERVER, $_SERVER);
-if (!isset($params[AppState::PARAM_MODE])) {
- $params[AppState::PARAM_MODE] = AppState::MODE_DEVELOPER;
-}
-$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
-/** @var \Magento\Framework\Module\Updater $updater */
-$updater = $bootstrap->getObjectManager()->create('\Magento\Framework\Module\Updater');
-$updater->updateData();
diff --git a/dev/shell/user_config_data.php b/dev/shell/user_config_data.php
deleted file mode 100644
index 355068f9060a2..0000000000000
--- a/dev/shell/user_config_data.php
+++ /dev/null
@@ -1,39 +0,0 @@
- - pairs of \'path=value\' separated by \'&\', where ' . PHP_EOL
- . ' \'path\' is path of the specified data group, e.g. web/unsecure/base_url, and ' . PHP_EOL
- . ' \'value\' is value for the path specified, e.g. http://127.0.0.1/ ' . PHP_EOL
- . '--bootstrap - add or override parameters of the bootstrap' . PHP_EOL
- . ' NOTE: this tool supports writing data only in global scope ' . PHP_EOL
- . ' Example Usage: php -f user_config_data.php -- '
- . ' --data=' . escapeshellarg('web/seo/use_rewrites=1&web/unsecure/base_url=http://127.0.0.1/') . PHP_EOL;
-
-$opt = getopt('', ['data:']);
-if (empty($opt)) {
- echo $usage;
- exit(0);
-}
-
-try {
- $dataParam = new ComplexParameter('data');
- $request = $dataParam->mergeFromArgv($_SERVER);
- $bootstrapParam = new ComplexParameter('bootstrap');
- $params = $bootstrapParam->mergeFromArgv($_SERVER, $_SERVER);
- $params[Bootstrap::PARAM_REQUIRE_MAINTENANCE] = null;
- $bootstrap = Bootstrap::create(BP, $params);
- /** @var \Magento\Backend\App\UserConfig $app */
- $app = $bootstrap->createApplication('Magento\Backend\App\UserConfig', ['request' => $request]);
- $bootstrap->run($app);
-} catch (\Exception $e) {
- echo $e;
- exit(1);
-}
diff --git a/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementMeTest.php b/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementMeTest.php
index 1c2eb23501c57..32eca4e225633 100644
--- a/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementMeTest.php
+++ b/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementMeTest.php
@@ -10,7 +10,6 @@
use Magento\Integration\Model\Oauth\Token as TokenModel;
use Magento\TestFramework\Helper\Bootstrap;
use Magento\TestFramework\Helper\Customer as CustomerHelper;
-use Magento\TestFramework\TestCase\WebapiAbstract;
use Magento\Webapi\Model\Rest\Config as RestConfig;
/**
@@ -31,9 +30,9 @@ class AccountManagementMeTest extends \Magento\TestFramework\TestCase\WebapiAbst
private $customerRepository;
/**
- * @var CustomerBuilder
+ * @var AccountManagementInterface
*/
- private $customerBuilder;
+ private $customerAccountManagement;
/**
* @var CustomerRegistry
@@ -75,9 +74,10 @@ public function setUp()
'Magento\Customer\Api\CustomerRepositoryInterface',
['customerRegistry' => $this->customerRegistry]
);
- $this->customerBuilder = Bootstrap::getObjectManager()->create(
- 'Magento\Customer\Api\Data\CustomerDataBuilder'
- );
+
+ $this->customerAccountManagement = Bootstrap::getObjectManager()
+ ->get('Magento\Customer\Api\AccountManagementInterface');
+
$this->customerHelper = new CustomerHelper();
$this->customerData = $this->customerHelper->createSampleCustomer();
@@ -118,15 +118,9 @@ public function testChangePassword()
$requestData = ['currentPassword' => 'test@123', 'newPassword' => '123@test'];
$this->assertTrue($this->_webApiCall($serviceInfo, $requestData));
- $serviceInfo = [
- 'rest' => [
- 'resourcePath' => '/V1/customers/login',
- 'httpMethod' => RestConfig::HTTP_METHOD_POST,
- ],
- ];
- $requestData = ['email' => $this->customerData[CustomerInterface::EMAIL], 'password' => '123@test'];
- $customerResponseData = $this->_webApiCall($serviceInfo, $requestData);
- $this->assertEquals($this->customerData[CustomerInterface::ID], $customerResponseData[CustomerInterface::ID]);
+ $customerResponseData = $this->customerAccountManagement
+ ->authenticate($this->customerData[CustomerInterface::EMAIL], '123@test');
+ $this->assertEquals($this->customerData[CustomerInterface::ID], $customerResponseData->getId());
}
public function testUpdateCustomer()
@@ -210,7 +204,7 @@ public function testGetCustomerActivateCustomer()
*/
protected function _getCustomerData($customerId)
{
- $data = $this->customerRepository->getById($customerId);
+ $data = $this->customerRepository->getById($customerId);
$this->customerRegistry->remove($customerId);
return $data;
}
diff --git a/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementTest.php b/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementTest.php
index 1229cb0f4be50..7511184acfb9e 100644
--- a/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementTest.php
+++ b/dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementTest.php
@@ -251,26 +251,6 @@ public function testGetCustomerActivateCustomer()
$this->assertFalse(isset($customerResponseData[Customer::CONFIRMATION]));
}
- public function testAuthenticateCustomer()
- {
- $customerData = $this->_createCustomer();
-
- $serviceInfo = [
- 'rest' => [
- 'resourcePath' => self::RESOURCE_PATH . '/login',
- 'httpMethod' => RestConfig::HTTP_METHOD_POST,
- ],
- 'soap' => [
- 'service' => self::SERVICE_NAME,
- 'serviceVersion' => self::SERVICE_VERSION,
- 'operation' => self::SERVICE_NAME . 'Authenticate',
- ],
- ];
- $requestData = ['email' => $customerData[Customer::EMAIL], 'password' => CustomerHelper::PASSWORD];
- $customerResponseData = $this->_webApiCall($serviceInfo, $requestData);
- $this->assertEquals($customerData[Customer::ID], $customerResponseData[Customer::ID]);
- }
-
public function testValidateResetPasswordLinkToken()
{
$customerData = $this->_createCustomer();
diff --git a/dev/tests/functional/composer.json b/dev/tests/functional/composer.json
index c62e4dd43ee4d..1d80cfb8c4561 100644
--- a/dev/tests/functional/composer.json
+++ b/dev/tests/functional/composer.json
@@ -10,7 +10,7 @@
}
],
"require": {
- "magento/mtf": "1.0.0-rc9",
+ "magento/mtf": "1.0.0-rc10",
"php": ">=5.4.0",
"phpunit/phpunit": "4.1.0",
"phpunit/phpunit-selenium": ">=1.2",
@@ -21,7 +21,6 @@
"Mtf\\": ["lib/Mtf/", "generated/Mtf/", "testsuites/Mtf/"],
"Magento\\": ["generated/Magento/", "tests/app/Magento/"],
"Test\\": "generated/Test/"
-
}
}
}
diff --git a/dev/tests/functional/composer.json.dist b/dev/tests/functional/composer.json.dist
index 00488d8d09689..2ea37c5b4a7aa 100644
--- a/dev/tests/functional/composer.json.dist
+++ b/dev/tests/functional/composer.json.dist
@@ -1,16 +1,16 @@
{
"require": {
- "magento/mtf": "dev-master",
+ "magento/mtf": "dev-develop",
"php": ">=5.4.0",
"phpunit/phpunit": "4.1.0",
"phpunit/phpunit-selenium": ">=1.2",
"netwing/selenium-server-standalone": ">=2.35"
},
"autoload": {
- "psr-0": {
- "Mtf\\": "lib",
- "Magento\\": "",
- "": ["testsuites", "generated", "lib", "tests/app"]
+ "psr-4": {
+ "Mtf\\": ["lib/Mtf/", "generated/Mtf/", "testsuites/Mtf/"],
+ "Magento\\": ["generated/Magento/", "tests/app/Magento/"],
+ "Test\\": "generated/Test/"
}
}
}
diff --git a/dev/tests/functional/config/install_data.yml.dist b/dev/tests/functional/config/install_data.yml.dist
new file mode 100644
index 0000000000000..4bffc0a19622d
--- /dev/null
+++ b/dev/tests/functional/config/install_data.yml.dist
@@ -0,0 +1,9 @@
+# @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
+db_credentials:
+ dbHost: '127.0.0.1'
+ dbUser: 'root'
+ dbPassword: '123123q'
+ dbName: 'default'
+url:
+ base_url: 'http://127.0.0.1/magento2/'
+ backend_frontname: 'backend'
diff --git a/dev/tests/functional/lib/Mtf/App/State/State1.php b/dev/tests/functional/lib/Mtf/App/State/State1.php
index 4efebde76be77..479f7bc0e2fc5 100644
--- a/dev/tests/functional/lib/Mtf/App/State/State1.php
+++ b/dev/tests/functional/lib/Mtf/App/State/State1.php
@@ -35,8 +35,10 @@ public function __construct(Config $config)
public function apply()
{
parent::apply();
- $this->config->switchData('app_state1_configuration');
- $this->config->persist();
+ if (file_exists(dirname(dirname(dirname(MTF_BP))) . '/app/etc/config.php')) {
+ $this->config->switchData('app_state1_configuration');
+ $this->config->persist();
+ }
}
/**
diff --git a/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/ConditionsElement.php b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/ConditionsElement.php
index e5a53c67fbaaf..358a5df3f25a7 100644
--- a/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/ConditionsElement.php
+++ b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/ConditionsElement.php
@@ -166,7 +166,7 @@ class ConditionsElement extends AbstractElement
*
* @var string
*/
- protected $ruleParamInput = '.element [name^="rule[conditions]"]';
+ protected $ruleParamInput = '.element [name^="rule"]';
/**
* Set value to conditions
diff --git a/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/GlobalsearchElement.php b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/GlobalsearchElement.php
new file mode 100644
index 0000000000000..6d59992fcdfa3
--- /dev/null
+++ b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/GlobalsearchElement.php
@@ -0,0 +1,192 @@
+_eventManager->dispatchEvent(['set_value'], [__METHOD__, $this->getAbsoluteSelector()]);
+
+ $this->waitInitElement();
+
+ if (!$this->find($this->searchInput)->isVisible()) {
+ $this->find($this->searchIcon)->click();
+ }
+ $this->selectWindow();
+ $this->clear();
+ $this->find($this->searchInput)->_getWrappedElement()->value($value);
+ $this->selectWindow();
+
+ $this->waitResult();
+ }
+
+ /**
+ * Clear value of element.
+ *
+ * @return void
+ */
+ protected function clear()
+ {
+ $element = $this->find($this->searchInput);
+ while ('' != $element->getValue()) {
+ $element->keys([self::BACKSPACE]);
+ }
+ }
+
+ /**
+ * Select to last window.
+ *
+ * @return void
+ */
+ protected function selectWindow()
+ {
+ $windowHandles = $this->_driver->windowHandles();
+ $this->_driver->window(end($windowHandles));
+ }
+
+ /**
+ * Wait init search suggest container.
+ *
+ * @return void
+ * @throws \Exception
+ */
+ protected function waitInitElement()
+ {
+ $browser = clone $this;
+ $selector = $this->initializedSuggest;
+
+ $browser->waitUntil(
+ function () use ($browser, $selector) {
+ return $browser->find($selector, Locator::SELECTOR_XPATH)->isVisible() ? true : null;
+ }
+ );
+ }
+
+ /**
+ * Wait for search result is visible.
+ *
+ * @return void
+ */
+ public function waitResult()
+ {
+ $browser = clone $this;
+ $selector = $this->searchResult;
+
+ $browser->waitUntil(
+ function () use ($browser, $selector) {
+ if ($browser->find($selector)->isVisible()) {
+ return true;
+ } else {
+ $browser->selectWindow();
+ return null;
+ }
+ }
+ );
+ }
+
+ /**
+ * Get value.
+ *
+ * @throws \BadMethodCallException
+ */
+ public function getValue()
+ {
+ throw new \BadMethodCallException('Not applicable for this class of elements (GlobalSearch)');
+ }
+
+ /**
+ * Checking exist value in search result.
+ *
+ * @param string $value
+ * @return bool
+ */
+ public function isExistValueInSearchResult($value)
+ {
+ $searchResult = $this->find($this->searchResult);
+ if (!$searchResult->isVisible()) {
+ return false;
+ }
+ $searchResults = $this->getSearchResults();
+ return in_array($value, $searchResults);
+ }
+
+ /**
+ * Get search results.
+ *
+ * @return array
+ */
+ protected function getSearchResults()
+ {
+ /** @var Element $searchResult */
+ $searchResult = $this->find($this->searchResult);
+ $resultItems = $searchResult->find($this->resultItem)->getElements();
+ $resultArray = [];
+
+ /** @var Element $resultItem */
+ foreach ($resultItems as $resultItem) {
+ $resultItemLink = $resultItem->find('a');
+ $resultText = $resultItemLink->isVisible()
+ ? trim($resultItemLink->getText())
+ : trim($resultItem->getText());
+ $resultArray[] = $resultText;
+ }
+
+ return $resultArray;
+ }
+}
diff --git a/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/MultisuggestElement.php b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/MultisuggestElement.php
index 96ef33dad0a17..3457b67854d88 100644
--- a/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/MultisuggestElement.php
+++ b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/MultisuggestElement.php
@@ -9,41 +9,40 @@
use Mtf\Client\Element\Locator;
/**
- * Class MultisuggestElement
- * Typified element class for multi suggest element
+ * Typified element class for multi suggest element.
*/
class MultisuggestElement extends SuggestElement
{
/**
- * Selector list choice
+ * Selector list choice.
*
* @var string
*/
protected $listChoice = './/ul[contains(@class,"mage-suggest-choices")]';
/**
- * Selector choice item
+ * Selector choice item.
*
* @var string
*/
protected $choice = './/li/div[text()="%s"]/..';
/**
- * Selector choice value
+ * Selector choice value.
*
* @var string
*/
protected $choiceValue = './/li[contains(@class,"mage-suggest-choice")]/div';
/**
- * Selector remove choice item
+ * Selector remove choice item.
*
* @var string
*/
protected $choiceClose = '.mage-suggest-choice-close';
/**
- * Set value
+ * Set value.
*
* @param array|string $values
* @return void
@@ -55,13 +54,14 @@ public function setValue($values)
$this->clear();
foreach ((array)$values as $value) {
if (!$this->isChoice($value)) {
+ $this->selectWindow();
parent::setValue($value);
}
}
}
/**
- * Get value
+ * Get value.
*
* @return array
*/
@@ -81,7 +81,7 @@ public function getValue()
}
/**
- * Check exist selected item
+ * Check exist selected item.
*
* @param string $value
* @return bool
@@ -92,7 +92,7 @@ protected function isChoice($value)
}
/**
- * Clear element
+ * Clear element.
*
* @return void
*/
@@ -104,4 +104,15 @@ protected function clear()
$choiceClose = $this->find($this->choiceClose);
}
}
+
+ /**
+ * Select to last window.
+ *
+ * @return void
+ */
+ protected function selectWindow()
+ {
+ $windowHandles = $this->_driver->windowHandles();
+ $this->_driver->window(end($windowHandles));
+ }
}
diff --git a/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/SuggestElement.php b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/SuggestElement.php
index 1a4429d10c2b7..225f4634db5b0 100755
--- a/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/SuggestElement.php
+++ b/dev/tests/functional/lib/Mtf/Client/Driver/Selenium/Element/SuggestElement.php
@@ -14,6 +14,11 @@
*/
class SuggestElement extends Element
{
+ /**
+ * "Backspace" key code.
+ */
+ const BACKSPACE = "\xEE\x80\x83";
+
/**
* Selector suggest input
*
@@ -45,11 +50,25 @@ public function setValue($value)
{
$this->_eventManager->dispatchEvent(['set_value'], [__METHOD__, $this->getAbsoluteSelector()]);
- $this->find($this->suggest)->setValue($value);
+ $this->clear();
+ $this->find($this->suggest)->_getWrappedElement()->value($value);
$this->waitResult();
$this->find(sprintf($this->resultItem, $value), Locator::SELECTOR_XPATH)->click();
}
+ /**
+ * Clear value of element.
+ *
+ * @return void
+ */
+ protected function clear()
+ {
+ $element = $this->find($this->suggest);
+ while ($element->getValue() != '') {
+ $element->keys([self::BACKSPACE]);
+ }
+ }
+
/**
* Wait for search result is visible
*
diff --git a/dev/tests/functional/phpunit.xml.dist b/dev/tests/functional/phpunit.xml.dist
index 3a26aa0bac228..3cfdfc5ccbdfe 100755
--- a/dev/tests/functional/phpunit.xml.dist
+++ b/dev/tests/functional/phpunit.xml.dist
@@ -21,22 +21,23 @@
-
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMaxRequestedQtyFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMaxRequestedQtyFailMessage.php
index 9beaa7e4a4b53..65e55b444f257 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMaxRequestedQtyFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMaxRequestedQtyFailMessage.php
@@ -14,6 +14,10 @@
*/
class AssertMaxRequestedQtyFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Error requested quantity message
*/
@@ -24,13 +28,6 @@ class AssertMaxRequestedQtyFailMessage extends AbstractConstraint
*/
const ERROR_MAXIMUM_QUANTITY_MESSAGE = 'The maximum quantity allowed for purchase is %d.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that requested quantity is more than allowed error message is displayed after adding products to cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMinRequestedQtyFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMinRequestedQtyFailMessage.php
index 9dad90a04912d..e92242617f0bd 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMinRequestedQtyFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMinRequestedQtyFailMessage.php
@@ -14,6 +14,10 @@
*/
class AssertMinRequestedQtyFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Error requested quantity message
*/
@@ -24,13 +28,6 @@ class AssertMinRequestedQtyFailMessage extends AbstractConstraint
*/
const ERROR_MINIMUM_QUANTITY_MESSAGE = 'The minimum quantity allowed for purchase is %d.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that requested quantity is less than allowed error message is displayed after adding products to cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMsrpNotice.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMsrpNotice.php
index a3a8c51d723a1..d0013df9ad1a4 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMsrpNotice.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertMsrpNotice.php
@@ -14,12 +14,9 @@
*/
class AssertMsrpNotice extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that notice is present that product with enabled MAP
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductConfiguringFromRequiringAttention.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductConfiguringFromRequiringAttention.php
index b621ad6af1ce0..e028209c51be3 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductConfiguringFromRequiringAttention.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductConfiguringFromRequiringAttention.php
@@ -15,18 +15,15 @@
*/
class AssertProductConfiguringFromRequiringAttention extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success adding product to cart message
*/
const SUCCESS_MESSAGE = 'You added %s to your shopping cart.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that product can be configured and added to cart after added this product to cart by sku
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductIsOutOfStockFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductIsOutOfStockFailMessage.php
index 02b0bb6de96e5..1897b7f6ae90c 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductIsOutOfStockFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductIsOutOfStockFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertProductIsOutOfStockFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Out of stock error message
*/
const ERROR_MESSAGE = 'Availability: Out of stock.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that out of stock error message is displayed after adding products to cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductRequiredAttentionFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductRequiredAttentionFailMessage.php
index edef1e76c183a..d046d9dcd570c 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductRequiredAttentionFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductRequiredAttentionFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertProductRequiredAttentionFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Product requires attention error message
*/
const ERROR_MESSAGE = '%d %s requires your attention.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that product requires attention error message is displayed after adding products by sku to shopping cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductTierPriceMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductTierPriceMessage.php
index 67423b56c6a15..5d52e0156d9ef 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductTierPriceMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductTierPriceMessage.php
@@ -14,12 +14,9 @@
*/
class AssertProductTierPriceMessage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product has tier price message appears after adding products by sku to shopping cart
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductWithPaymentAgreementsOrderFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductWithPaymentAgreementsOrderFailMessage.php
index c3890b6ff1dd3..8b7924cf034f9 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductWithPaymentAgreementsOrderFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductWithPaymentAgreementsOrderFailMessage.php
@@ -14,6 +14,10 @@
*/
class AssertProductWithPaymentAgreementsOrderFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
// @codingStandardsIgnoreStart
/**
* Product with payment agreements can't be ordered with other items error message
@@ -21,13 +25,6 @@ class AssertProductWithPaymentAgreementsOrderFailMessage extends AbstractConstra
const ERROR_MESSAGE = 'Sorry, but items with payment agreements must be ordered one at a time To continue, please remove or buy the other items in your cart, then order this item by itself.';
// @codingStandardsIgnoreEnd
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that error message that product with payment agreements can't be ordered with other items is displayed
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAbsentInRequiringAttention.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAbsentInRequiringAttention.php
index 57f042ad79df6..98bdd7ac0f363 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAbsentInRequiringAttention.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAbsentInRequiringAttention.php
@@ -13,12 +13,9 @@
*/
class AssertProductsAbsentInRequiringAttention extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that products are absent in requiring attention block.
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAddBySkuSuccessMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAddBySkuSuccessMessage.php
index 0cea3a07d289c..4921efb139324 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAddBySkuSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertProductsAddBySkuSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertProductsAddBySkuSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success adding products to shopping cart message
*/
const SUCCESS_MESSAGE = 'You added %d %s to your shopping cart.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after adding products by sku to shopping cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIncrementsFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIncrementsFailMessage.php
index 3339f4c72001c..e3a51833f8135 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIncrementsFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIncrementsFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertQtyIncrementsFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Qty increments error message
*/
const QTY_INCREMENTS_ERROR_MESSAGE = 'You can buy this product only in quantities of %d at a time.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that requested qty does not meet the increments error message is displayed after adding products to cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIsNotEnoughFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIsNotEnoughFailMessage.php
index 6eea37449d8c8..db8a489509111 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIsNotEnoughFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertQtyIsNotEnoughFailMessage.php
@@ -14,6 +14,10 @@
*/
class AssertQtyIsNotEnoughFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Requested quantity is not available error message
*/
@@ -24,13 +28,6 @@ class AssertQtyIsNotEnoughFailMessage extends AbstractConstraint
*/
const LEFT_IN_STOCK_ERROR_MESSAGE = 'Only %d left in stock';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that requested quantity is not available error message is displayed after adding products by sku to cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertRequiringAttentionProductSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertRequiringAttentionProductSuccessDeleteMessage.php
index 15b0cf20d1771..fd49476616791 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertRequiringAttentionProductSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertRequiringAttentionProductSuccessDeleteMessage.php
@@ -13,18 +13,15 @@
*/
class AssertRequiringAttentionProductSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success delete message.
*/
const SUCCESS_MESSAGE = 'You removed the item.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is present after requiring attention product has been deleted from cart.
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSkuNotFoundFailMessage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSkuNotFoundFailMessage.php
index e67c5f69929a1..b8345daadc4f9 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSkuNotFoundFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSkuNotFoundFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertSkuNotFoundFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Sku not found error message
*/
const ERROR_MESSAGE = 'SKU not found in catalog.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that sku not found error message is displayed after adding products by sku to shopping cart
*
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSpecifyProductOptionsLink.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSpecifyProductOptionsLink.php
index f74be3dbd7ab1..3e7d7e027e69d 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSpecifyProductOptionsLink.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertSpecifyProductOptionsLink.php
@@ -14,12 +14,9 @@
*/
class AssertSpecifyProductOptionsLink extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that specify products options link is displayed after adding products to cart
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertWidgetOrderBySkuOnCategoryPage.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertWidgetOrderBySkuOnCategoryPage.php
index 7914efa8e3ee0..c4124da00c6a2 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertWidgetOrderBySkuOnCategoryPage.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/Constraint/AssertWidgetOrderBySkuOnCategoryPage.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetOrderBySkuOnCategoryPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Order By Sku widget displayed on frontend in Catalog
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromCustomerAccountTest/test.csv b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromCustomerAccountTest/test.csv
index 0b7e03a589d9d..204b7f8a172fc 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromCustomerAccountTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromCustomerAccountTest/test.csv
@@ -1,20 +1,20 @@
-"description";"products";"cartBlock";"orderOptions/sku";"orderOptions/qty";"config";"constraint";"issue"
-"Two Simple products";"catalogProductSimple::default, catalogProductSimple::default";"cart, cart";"-, -";"1, 1";"-";"assertProductsAddBySkuSuccessMessage, assertProductPresentInShoppingCart";""
-"Simple product";"catalogProductSimple::default";"cart";"-";"1";"-";"assertProductsAddBySkuSuccessMessage, assertProductPresentInShoppingCart";""
-"Simple Out Of Stock";"catalogProductSimple::out_of_stock";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertProductIsOutOfStockFailMessage, assertCartIsEmpty";""
-"Simple product with qty > than available";"catalogProductSimple::default";"required_attention";"-";"26";"-";"assertProductRequiredAttentionFailMessage, assertQtyIsNotEnoughFailMessage, assertCartIsEmpty";""
-"Simple offline product";"catalogProductSimple::offline";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSkuNotFoundFailMessage, assertCartIsEmpty";""
-"Product, for which Visibility is set to Not Visible Individually";"catalogProductSimple::not_visible_individually";"cart";"-";"1";"-";"assertProductsAddBySkuSuccessMessage, assertProductIsNotEditable";""
-"Product, for which Qty is less than minimum allowed in cart";"catalogProductSimple::simple_with_cart_limits";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertMinRequestedQtyFailMessage, assertCartIsEmpty";""
-"Product, for which Qty exceeds maximum allowed in cart";"catalogProductSimple::simple_with_cart_limits";"required_attention";"-";"6";"-";"assertProductRequiredAttentionFailMessage, assertMaxRequestedQtyFailMessage, assertCartIsEmpty";""
-"Configurable product";"configurableProductInjectable::default";"required_attention";"-";"2";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty, assertProductConfiguringFromRequiringAttention";""
-"Bundle dynamic product ";"bundleProduct::bundle_dynamic_product";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty";""
-"Bundle fixed product";"bundleProduct::bundle_fixed_product";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty";""
-"Simple product with custom options";"catalogProductSimple::with_one_custom_option";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty";""
-"Simple product with custom options by compound sku";"catalogProductSimple::with_one_custom_option";"cart";"simpleWithOptionCompoundSku";"1";"-";"assertProductsAddBySkuSuccessMessage, assertProductPresentInShoppingCart";""
-"Simple product with qty increments";"catalogProductSimple::simple_with_qty_increments";"required_attention";"-";"3";"-";"assertProductRequiredAttentionFailMessage, assertQtyIncrementsFailMessage, assertCartIsEmpty";"Bug: MAGETWO-1541"
-"Configurable product where all sub-items are disabled";"configurableProductInjectable::with_out_of_stock_item";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertProductIsOutOfStockFailMessage, assertCartIsEmpty";""
-"Simple product with tier price and qty > than available";"catalogProductSimple::simple_with_tier_price_and_qty";"required_attention";"-";"26";"-";"assertProductRequiredAttentionFailMessage, assertProductTierPriceMessage, assertCartIsEmpty";""
-"Product with displaying prices considering MAP settings";"catalogProductSimple::with_msrp";"required_attention";"-";"26";"msrp";"assertProductRequiredAttentionFailMessage, assertMsrpNotice, assertCartIsEmpty";""
-"Nonexistent product";"-";"required_attention";"nonExistentSku";"1";"-";"assertProductRequiredAttentionFailMessage, assertCartIsEmpty";""
-"Product with not valid qty";"catalogProductSimple::default";"required_attention";"-";"abc";"-";"assertCartIsEmpty";""
+"description";"products";"cartBlock";"orderOptions/sku";"orderOptions/qty";"config";"constraint"
+"Two Simple products";"catalogProductSimple::default, catalogProductSimple::default";"cart, cart";"-, -";"1, 1";"-";"assertProductsAddBySkuSuccessMessage, assertProductPresentInShoppingCart"
+"Simple product";"catalogProductSimple::default";"cart";"-";"1";"-";"assertProductsAddBySkuSuccessMessage, assertProductPresentInShoppingCart"
+"Simple Out Of Stock";"catalogProductSimple::out_of_stock";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertProductIsOutOfStockFailMessage, assertCartIsEmpty"
+"Simple product with qty > than available";"catalogProductSimple::default";"required_attention";"-";"26";"-";"assertProductRequiredAttentionFailMessage, assertQtyIsNotEnoughFailMessage, assertCartIsEmpty"
+"Simple offline product";"catalogProductSimple::offline";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSkuNotFoundFailMessage, assertCartIsEmpty"
+"Product, for which Visibility is set to Not Visible Individually";"catalogProductSimple::not_visible_individually";"cart";"-";"1";"-";"assertProductsAddBySkuSuccessMessage, assertProductIsNotEditable"
+"Product, for which Qty is less than minimum allowed in cart";"catalogProductSimple::simple_with_cart_limits";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertMinRequestedQtyFailMessage, assertCartIsEmpty"
+"Product, for which Qty exceeds maximum allowed in cart";"catalogProductSimple::simple_with_cart_limits";"required_attention";"-";"6";"-";"assertProductRequiredAttentionFailMessage, assertMaxRequestedQtyFailMessage, assertCartIsEmpty"
+"Configurable product";"configurableProductInjectable::default";"required_attention";"-";"2";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty, assertProductConfiguringFromRequiringAttention"
+"Bundle dynamic product ";"bundleProduct::bundle_dynamic_product";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty"
+"Bundle fixed product";"bundleProduct::bundle_fixed_product";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty"
+"Simple product with custom options";"catalogProductSimple::with_one_custom_option";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertSpecifyProductOptionsLink, assertCartIsEmpty"
+"Simple product with custom options by compound sku";"catalogProductSimple::with_one_custom_option";"cart";"simpleWithOptionCompoundSku";"1";"-";"assertProductsAddBySkuSuccessMessage, assertProductPresentInShoppingCart"
+"Simple product with qty increments";"catalogProductSimple::simple_with_qty_increments";"required_attention";"-";"3";"-";"assertProductRequiredAttentionFailMessage, assertQtyIncrementsFailMessage, assertCartIsEmpty"
+"Configurable product where all sub-items are disabled";"configurableProductInjectable::with_out_of_stock_item";"required_attention";"-";"1";"-";"assertProductRequiredAttentionFailMessage, assertProductIsOutOfStockFailMessage, assertCartIsEmpty"
+"Simple product with tier price and qty > than available";"catalogProductSimple::simple_with_tier_price_and_qty";"required_attention";"-";"26";"-";"assertProductRequiredAttentionFailMessage, assertProductTierPriceMessage, assertCartIsEmpty"
+"Product with displaying prices considering MAP settings";"catalogProductSimple::with_msrp";"required_attention";"-";"26";"msrp";"assertProductRequiredAttentionFailMessage, assertMsrpNotice, assertCartIsEmpty"
+"Nonexistent product";"-";"required_attention";"nonExistentSku";"1";"-";"assertProductRequiredAttentionFailMessage, assertCartIsEmpty"
+"Product with not valid qty";"catalogProductSimple::default";"required_attention";"-";"abc";"-";"assertCartIsEmpty"
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromWidgetTest.php b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromWidgetTest.php
index 1f2c069408eea..6202f510d8ab5 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromWidgetTest.php
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/AddProductsToCartBySkuFromWidgetTest.php
@@ -33,6 +33,8 @@
*
* @group Add_by_SKU_(CS)
* @ZephyrId MAGETWO-29781
+ *
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AddProductsToCartBySkuFromWidgetTest extends AbstractAdvancedCheckoutEntityTest
{
@@ -41,21 +43,35 @@ class AddProductsToCartBySkuFromWidgetTest extends AbstractAdvancedCheckoutEntit
*
* @var WidgetInstanceIndex
*/
- protected static $widgetInstanceIndex;
+ protected $widgetInstanceIndex;
/**
* Widget instance edit page.
*
* @var WidgetInstanceEdit
*/
- protected static $widgetInstanceEdit;
+ protected $widgetInstanceEdit;
/**
* Order by SKU widget.
*
* @var Widget
*/
- protected static $widget;
+ protected $widget;
+
+ /**
+ * Fixture Factory.
+ *
+ * @var FixtureFactory
+ */
+ protected $fixtureFactory;
+
+ /**
+ * Page AdminCache.
+ *
+ * @var AdminCache
+ */
+ protected $adminCache;
/**
* Injection data.
@@ -66,6 +82,8 @@ class AddProductsToCartBySkuFromWidgetTest extends AbstractAdvancedCheckoutEntit
* @param CheckoutCart $checkoutCart
* @param WidgetInstanceIndex $widgetInstanceIndex
* @param WidgetInstanceEdit $widgetInstanceEdit
+ * @param FixtureFactory $fixtureFactory
+ * @param AdminCache $adminCache
* @return void
*/
public function __inject(
@@ -74,35 +92,29 @@ public function __inject(
CustomerOrderSku $customerOrderSku,
CheckoutCart $checkoutCart,
WidgetInstanceIndex $widgetInstanceIndex,
- WidgetInstanceEdit $widgetInstanceEdit
+ WidgetInstanceEdit $widgetInstanceEdit,
+ FixtureFactory $fixtureFactory,
+ AdminCache $adminCache
) {
$this->cmsIndex = $cmsIndex;
$this->customerAccountIndex = $customerAccountIndex;
$this->customerOrderSku = $customerOrderSku;
$this->checkoutCart = $checkoutCart;
- self::$widgetInstanceIndex = $widgetInstanceIndex;
- self::$widgetInstanceEdit = $widgetInstanceEdit;
+ $this->widgetInstanceIndex = $widgetInstanceIndex;
+ $this->widgetInstanceEdit = $widgetInstanceEdit;
+ $this->fixtureFactory = $fixtureFactory;
+ $this->adminCache = $adminCache;
}
/**
* Create customer and widget.
*
* @param CustomerInjectable $customer
- * @param FixtureFactory $fixtureFactory
- * @param AdminCache $adminCache
* @return array
*/
- public function __prepare(CustomerInjectable $customer, FixtureFactory $fixtureFactory, AdminCache $adminCache)
+ public function __prepare(CustomerInjectable $customer)
{
$customer->persist();
- self::$widget = $fixtureFactory->create(
- '\Magento\AdvancedCheckout\Test\Fixture\Widget',
- ['dataSet' => 'order_by_sku']
- );
- self::$widget->persist();
- $adminCache->open();
- $adminCache->getActionsBlock()->flushMagentoCache();
- $adminCache->getMessagesBlock()->waitSuccessMessage();
return ['customer' => $customer];
}
@@ -121,10 +133,19 @@ public function test(CustomerInjectable $customer, $products, array $orderOption
// Preconditions
$products = $this->createProducts($products);
$orderOptions = $this->prepareOrderOptions($products, $orderOptions);
+ $this->widget = $this->fixtureFactory->create(
+ '\Magento\AdvancedCheckout\Test\Fixture\Widget',
+ ['dataSet' => 'order_by_sku']
+ );
+ $this->widget->persist();
+ $this->adminCache->open();
+ $this->adminCache->getActionsBlock()->flushMagentoCache();
+ $this->adminCache->getMessagesBlock()->waitSuccessMessage();
// Steps
$this->cmsIndex->open();
$this->loginCustomer($customer);
$this->cmsIndex->getLinksBlock()->openLink("My Account");
+ $this->customerAccountIndex->getAccountMenuBlock()->openMenuItem("Order by SKU");
$this->customerAccountIndex->getOrderBySkuBlock()->fillForm($orderOptions);
$this->customerAccountIndex->getOrderBySkuBlock()->addToCart();
@@ -139,24 +160,15 @@ public function test(CustomerInjectable $customer, $products, array $orderOption
}
/**
- * Clear shopping cart.
+ * Clear shopping cart and delete widget.
*
* @return void
*/
public function tearDown()
{
$this->checkoutCart->open()->getCartBlock()->clearShoppingCart();
- }
-
- /**
- * Delete widget.
- *
- * @return void
- */
- public static function tearDownAfterClass()
- {
- self::$widgetInstanceIndex->open();
- self::$widgetInstanceIndex->getWidgetGrid()->searchAndOpen(['title' => self::$widget->getTitle()]);
- self::$widgetInstanceEdit->getPageActionsBlock()->delete();
+ $this->widgetInstanceIndex->open();
+ $this->widgetInstanceIndex->getWidgetGrid()->searchAndOpen(['title' => $this->widget->getTitle()]);
+ $this->widgetInstanceEdit->getPageActionsBlock()->delete();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/CreateWidgetOrderBySkuTest/test.csv b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/CreateWidgetOrderBySkuTest/test.csv
index fac4ea5c8a76c..b1c992dcdb28e 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/CreateWidgetOrderBySkuTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/CreateWidgetOrderBySkuTest/test.csv
@@ -1,2 +1,2 @@
-"widget/data/widgetOptions/preset";"widget/data/code";"widget/data/theme_id";"widget/data/title";"widget/data/store_ids/dataSet";"widget/data/layout/preset";"constraint";"issue"
-"orderBySku";"Order by SKU";"Magento Blank";"Title_%isolation%";"All Store Views";"order_by_sku_on_all_pages";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetOrderBySkuOnCategoryPage";"Bug: MAGETWO-29008"
+"widget/data/widgetOptions/preset";"widget/data/code";"widget/data/theme_id";"widget/data/title";"widget/data/store_ids/dataSet";"widget/data/layout/preset";"constraint";
+"orderBySku";"Order by SKU";"Magento Blank";"Title_%isolation%";"All Store Views";"order_by_sku_on_all_pages";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetOrderBySkuOnCategoryPage";
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/DeleteProductsFromCartOfAdvancedCheckoutEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/DeleteProductsFromCartOfAdvancedCheckoutEntityTest/test.csv
index 279d54938d2ae..11ffd49202e0c 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/DeleteProductsFromCartOfAdvancedCheckoutEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/TestCase/DeleteProductsFromCartOfAdvancedCheckoutEntityTest/test.csv
@@ -1,6 +1,6 @@
-"products";"orderOptions/qty";"orderOptions/sku";"constraint";"issue"
-"catalogProductSimple::offline, catalogProductSimple::simple_with_cart_limits";"1, 6";"-, -";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart";""
-"catalogProductSimple::out_of_stock";"1";"-";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart";""
-"configurableProductInjectable::default";"2";"-";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart";""
-"bundleProduct::bundle_dynamic_product";"1";"-";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart";""
-"-";"1";"nonExistentSku";"assertRequiringAttentionProductSuccessDeleteMessage, assertCartIsEmpty";""
\ No newline at end of file
+"products";"orderOptions/qty";"orderOptions/sku";"constraint"
+"catalogProductSimple::offline, catalogProductSimple::simple_with_cart_limits";"1, 6";"-, -";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart"
+"catalogProductSimple::out_of_stock";"1";"-";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart"
+"configurableProductInjectable::default";"2";"-";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart"
+"bundleProduct::bundle_dynamic_product";"1";"-";"assertRequiringAttentionProductSuccessDeleteMessage, assertProductsAbsentInRequiringAttention, assertProductsAbsentInShoppingCart"
+"-";"1";"nonExistentSku";"assertRequiringAttentionProductSuccessDeleteMessage, assertCartIsEmpty"
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/etc/constraint.xml
index 70802d78e2d91..8b886bfd9b096 100644
--- a/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/AdvancedCheckout/Test/etc/constraint.xml
@@ -6,51 +6,51 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Block/Page/Main.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Block/Page/Main.php
new file mode 100644
index 0000000000000..69fbab87303b4
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Block/Page/Main.php
@@ -0,0 +1,31 @@
+_rootElement->find($this->revenuePriceBlock)->getText();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Block/System/Store/FormPageFooterActions.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Block/System/Store/FormPageFooterActions.php
deleted file mode 100644
index 7bebdcc662e96..0000000000000
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Block/System/Store/FormPageFooterActions.php
+++ /dev/null
@@ -1,32 +0,0 @@
-_rootElement->find($this->deleteButton)->click();
- }
-}
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchCustomerName.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchCustomerName.php
index 22d567e9e2829..4a0daeb8c3a2a 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchCustomerName.php
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchCustomerName.php
@@ -15,12 +15,9 @@
*/
class AssertGlobalSearchCustomerName extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customer name is present in search results
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchNoRecordsFound.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchNoRecordsFound.php
index fd87317999993..412c3e680e70f 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchNoRecordsFound.php
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchNoRecordsFound.php
@@ -14,18 +14,15 @@
*/
class AssertGlobalSearchNoRecordsFound extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Expected search result text
*/
const EXPECTED_RESULT = 'No records found.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that search result contains expected text
*
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchOrderId.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchOrderId.php
index 9b5c2f328cb0a..e0d317250dc74 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchOrderId.php
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchOrderId.php
@@ -15,12 +15,9 @@
*/
class AssertGlobalSearchOrderId extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that order Id is present in search results
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchProductName.php b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchProductName.php
index b74d89ab739cf..f5cb9cd0e5730 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchProductName.php
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertGlobalSearchProductName.php
@@ -16,12 +16,9 @@
*/
class AssertGlobalSearchProductName extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product name is present in search results
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/Dashboard.xml b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/Dashboard.xml
index b4ad0db67abb8..ac4a3670f2f0f 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/Dashboard.xml
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/Dashboard.xml
@@ -16,6 +16,11 @@
.page-titlecss selector
+
+ Magento\Backend\Test\Block\Page\Main
+ .dashboard-main
+ css selector
+ Magento\Backend\Test\Block\Menu.navigation
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteGroup.xml b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteGroup.xml
index dd627c66fea4f..e4523af95b95a 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteGroup.xml
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteGroup.xml
@@ -11,10 +11,10 @@
#edit_formcss selector
-
- Magento\Backend\Test\Block\System\Store\FormPageFooterActions
- .content-footer
+
+ Magento\Backend\Test\Block\System\Store\FormPageActions
+ .page-main-actionscss selector
-
+
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteWebsite.xml b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteWebsite.xml
index 574c0c90d4927..a8d71273b067d 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteWebsite.xml
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/DeleteWebsite.xml
@@ -11,10 +11,10 @@
#edit_formcss selector
-
- Magento\Backend\Test\Block\System\Store\FormPageFooterActions
- .content-footer
+
+ Magento\Backend\Test\Block\System\Store\FormPageActions
+ .page-main-actionscss selector
-
+
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/StoreDelete.xml b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/StoreDelete.xml
index 2cc738d80ea35..a1662ce9a9446 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/StoreDelete.xml
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/Page/Adminhtml/StoreDelete.xml
@@ -16,10 +16,10 @@
#edit_formcss selector
-
- Magento\Backend\Test\Block\System\Store\FormPageFooterActions
- .content-footer
+
+ Magento\Backend\Test\Block\System\Store\FormPageActions
+ .page-main-actionscss selector
-
+
diff --git a/dev/tests/functional/tests/app/Magento/Backend/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Backend/Test/etc/constraint.xml
index 792c6787056ef..e6f96b2219e9c 100644
--- a/dev/tests/functional/tests/app/Magento/Backend/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Backend/Test/etc/constraint.xml
@@ -6,15 +6,15 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Backup/Test/Constraint/AssertBackupInGrid.php b/dev/tests/functional/tests/app/Magento/Backup/Test/Constraint/AssertBackupInGrid.php
index 208e59d130eec..33e12ff62d1f5 100644
--- a/dev/tests/functional/tests/app/Magento/Backup/Test/Constraint/AssertBackupInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Backup/Test/Constraint/AssertBackupInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertBackupInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that one backup row is present in Backups grid
diff --git a/dev/tests/functional/tests/app/Magento/Backup/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Backup/Test/etc/constraint.xml
index b912c9f142017..19c580a66f7a4 100644
--- a/dev/tests/functional/tests/app/Magento/Backup/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Backup/Test/etc/constraint.xml
@@ -6,6 +6,6 @@
-->
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Banners.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Banners.php
index 9182244a227fc..89d719141d049 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Banners.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Banners.php
@@ -9,8 +9,7 @@
use Mtf\Block\Block;
/**
- * Banners block
- * Banner block in Banner widget on frontend
+ * Banner block in Banner widget on frontend.
*/
class Banners extends Block
{
@@ -22,7 +21,7 @@ class Banners extends Block
protected $bannerText = '.banner-item';
/**
- * Return Banner content
+ * Return Banner content.
*
* @return array
*/
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Cart.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Cart.php
index a4370c18433cc..64ffd25c7739f 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Cart.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Cart.php
@@ -19,7 +19,7 @@ class Cart extends \Magento\Checkout\Test\Block\Cart
*
* @var string
*/
- protected $widgetBanner = '//div[contains(@class, "widget banners")]/ul/li[text()="%s"]';
+ protected $widgetBanner = '//div[contains(@class, "block-banners")]/ul/li/div[contains(text(),"%s")]';
/**
* Header welcome message selector.
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Category/View.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Category/View.php
index bc68667687361..9e080b8b13de4 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Category/View.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Block/Category/View.php
@@ -20,7 +20,7 @@ class View extends \Magento\Catalog\Test\Block\Category\View
*
* @var string
*/
- protected $widgetBanner = '//div[contains(@class, "widget banners")]/ul/li[text()="%s"]';
+ protected $widgetBanner = '//div[contains(@class, "block-banners")]/ul/li/div[contains(text(),"%s")]';
/**
* Header welcome message selector.
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerDeleteMessage.php
index 310187d753915..fe224771ae6a9 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerDeleteMessage.php
@@ -14,14 +14,11 @@
*/
class AssertBannerDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The banner has been deleted.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = 'The banner has been deleted.';
/**
* Assert that success delete message is appeared after banner has been deleted
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInGrid.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInGrid.php
index 6f9e05ab0e706..eb2417b839207 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertBannerInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created banner is found by name and has correct banner types, visibility, status
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInShoppingCart.php
index 35b59c20266a2..ee9eb118d21c2 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerInShoppingCart.php
@@ -20,12 +20,9 @@
*/
class AssertBannerInShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that banner presents on Shopping Cart page
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerMassDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerMassDeleteMessage.php
index 08ac8e6462b84..b41c10c83b30a 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerMassDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerMassDeleteMessage.php
@@ -15,18 +15,15 @@
*/
class AssertBannerMassDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message that appears after deletion via mass actions
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted %d record(s).';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success delete message is appeared after banner has been deleted
*
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCartRule.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCartRule.php
index a410524f4bab8..47072ead8ef44 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCartRule.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCartRule.php
@@ -16,12 +16,9 @@
*/
class AssertBannerNotInCartRule extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted banner is absent on shopping cart rule creation page and can't be found by name
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCatalogRule.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCatalogRule.php
index 3515bec8b0c57..29e3d9d3498f5 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCatalogRule.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInCatalogRule.php
@@ -16,12 +16,9 @@
*/
class AssertBannerNotInCatalogRule extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted banner is absent on catalog rule creation page and can't be found by name
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInGrid.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInGrid.php
index b07d9f6058087..bbea7af6e6f2b 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertBannerNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted banner is absent in grid and can't be found by name
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInShoppingCart.php
index 31751a454d373..d29e22c11c24a 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInShoppingCart.php
@@ -20,12 +20,9 @@
*/
class AssertBannerNotInShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that banner is absent on Shopping Cart page
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInWidgetOptions.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInWidgetOptions.php
index 65765a82f9784..9619ff03d860d 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInWidgetOptions.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotInWidgetOptions.php
@@ -17,12 +17,9 @@
*/
class AssertBannerNotInWidgetOptions extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted banner is absent in Widget options bunnerGrid and can't be found by name
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotOnCategoryPage.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotOnCategoryPage.php
index 3f76abdefc037..bd10240fca18d 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotOnCategoryPage.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerNotOnCategoryPage.php
@@ -18,12 +18,9 @@
*/
class AssertBannerNotOnCategoryPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that banner is absent on specific category page
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerOnCategoryPage.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerOnCategoryPage.php
index 826339f037e35..5c493ef450534 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerOnCategoryPage.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerOnCategoryPage.php
@@ -18,12 +18,9 @@
*/
class AssertBannerOnCategoryPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that banner presents on specific category page
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerSuccessSaveMessage.php
index 23a36d3e44bf9..b4aa932b41bfb 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertBannerSuccessSaveMessage.php
@@ -15,14 +15,11 @@
*/
class AssertBannerSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'You saved the banner.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_SAVE_MESSAGE = 'You saved the banner.';
/**
* Assert that after banner save "You saved the banner." successful message appears
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotator.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotator.php
index 94e1895ad385e..6a80956fba8ed 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotator.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotator.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetBannerRotator extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Banner Rotator widget displayed on frontent on Home page and on Advanced Search
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotatorOnProductPage.php b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotatorOnProductPage.php
index 0838cc0f9fe0b..8bd019fc2c930 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotatorOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/Constraint/AssertWidgetBannerRotatorOnProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetBannerRotatorOnProductPage extends AssertWidgetOnProductPage
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Banner Rotator widget displayed on frontend on Product page
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/AssignRelatedPromotionsToBannerEntityTest.php b/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/AssignRelatedPromotionsToBannerEntityTest.php
index 54835e86b4c02..fe78b05eeed9a 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/AssignRelatedPromotionsToBannerEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/AssignRelatedPromotionsToBannerEntityTest.php
@@ -5,23 +5,23 @@
namespace Magento\Banner\Test\TestCase;
-use Magento\Banner\Test\Fixture\BannerInjectable;
+use Mtf\ObjectManager;
+use Mtf\TestCase\Injectable;
+use Mtf\Fixture\FixtureFactory;
+use Magento\Cms\Test\Fixture\CmsPage;
use Magento\Banner\Test\Fixture\Widget;
-use Magento\Banner\Test\Page\Adminhtml\BannerIndex;
-use Magento\Banner\Test\Page\Adminhtml\BannerNew;
-use Magento\Catalog\Test\Fixture\CatalogProductSimple;
+use Magento\Banner\Test\Fixture\BannerInjectable;
use Magento\CatalogRule\Test\Fixture\CatalogRule;
-use Magento\Cms\Test\Fixture\CmsPage;
+use Magento\Banner\Test\Page\Adminhtml\BannerNew;
+use Magento\Banner\Test\Page\Adminhtml\BannerIndex;
use Magento\Customer\Test\Fixture\CustomerInjectable;
-use Magento\CustomerSegment\Test\Fixture\CustomerSegment;
+use Magento\Catalog\Test\Fixture\CatalogProductSimple;
use Magento\SalesRule\Test\Fixture\SalesRuleInjectable;
-use Mtf\Fixture\FixtureFactory;
-use Mtf\TestCase\Injectable;
+use Magento\CustomerSegment\Test\Fixture\CustomerSegment;
/**
- * Test Creation for assign Related Cart and Catalog Rules to BannerEntity
- *
* Test Flow:
+ *
* Preconditions:
* 1. Create customer
* 2. Create CustomerSegment
@@ -44,28 +44,28 @@
class AssignRelatedPromotionsToBannerEntityTest extends Injectable
{
/**
- * BannerIndex page
+ * BannerIndex page.
*
* @var BannerIndex
*/
protected $bannerIndex;
/**
- * BannerNew page
+ * BannerNew page.
*
* @var BannerNew
*/
protected $bannerNew;
/**
- * Fixture Factory
+ * Fixture Factory.
*
* @var FixtureFactory
*/
protected $fixtureFactory;
/**
- * Inject pages
+ * Inject pages.
*
* @param BannerIndex $bannerIndex
* @param BannerNew $bannerNew
@@ -83,7 +83,7 @@ public function __inject(
}
/**
- * Creation for assign Related Cart and Catalog Rules to BannerEntity test
+ * Creation for assign Related Cart and Catalog Rules to BannerEntity test.
*
* @param BannerInjectable $banner
* @param CustomerInjectable|string $customer
@@ -137,7 +137,7 @@ public function test(
}
/**
- * Create Cart and Catalog Rules
+ * Create Cart and Catalog Rules.
*
* @param string $cartPriceRule
* @param string $catalogPriceRule
@@ -161,7 +161,7 @@ protected function createRules($catalogPriceRule, $cartPriceRule)
}
/**
- * Create Customer
+ * Create Customer.
*
* @param string $customer
* @return CustomerInjectable|null
@@ -179,7 +179,7 @@ protected function createCustomer($customer)
}
/**
- * Create Customer Segment
+ * Create Customer Segment.
*
* @param string $customerSegment
* @return CustomerSegment|null
@@ -197,7 +197,7 @@ protected function createCustomerSegment($customerSegment)
}
/**
- * Create Product
+ * Create Product.
*
* @return CatalogProductSimple
*/
@@ -210,7 +210,7 @@ protected function createProduct()
}
/**
- * Create banner
+ * Create banner.
*
* @param BannerInjectable $banner
* @param CustomerSegment|string $customerSegment
@@ -235,7 +235,7 @@ protected function createBanner($customerSegment, BannerInjectable $banner)
}
/**
- * Create Widget
+ * Create Widget.
*
* @param string $widget
* @param BannerInjectable $banner
@@ -259,4 +259,15 @@ protected function createWidget($widget, BannerInjectable $banner)
return $widget;
}
+
+ /**
+ * Deleted shopping cart price rules and catalog price rules.
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ ObjectManager::getInstance()->create('Magento\CatalogRule\Test\TestStep\DeleteAllCatalogRulesStep')->run();
+ ObjectManager::getInstance()->create('Magento\SalesRule\Test\TestStep\DeleteAllSalesRuleStep')->run();
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/CreateWidgetBannerTest/test.csv b/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/CreateWidgetBannerTest/test.csv
index 53be8b7afb771..06959205c1eeb 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/CreateWidgetBannerTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/TestCase/CreateWidgetBannerTest/test.csv
@@ -1,3 +1,3 @@
-"widget/data/widgetOptions/preset";"widget/data/code";"widget/data/theme_id";"widget/data/title";"widget/data/store_ids/dataSet";"widget/data/layout/preset";"constraint";"issue"
-"bannerRotatorShoppingCartRules";"Banner Rotator";"Magento Blank";"Title_%isolation%";"All Store Views";"banner_on_all_pages";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetBannerRotator";""
-"bannerRotatorCatalogRules";"Banner Rotator";"Magento Blank";"Title_%isolation%";"All Store Views";"for_virtual_product";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetBannerRotatorOnProductPage";"Bug: MAGETWO-28836"
\ No newline at end of file
+"widget/data/widgetOptions/preset";"widget/data/code";"widget/data/theme_id";"widget/data/title";"widget/data/store_ids/dataSet";"widget/data/layout/preset";"constraint"
+"bannerRotatorShoppingCartRules";"Banner Rotator";"Magento Blank";"Title_%isolation%";"All Store Views";"banner_on_all_pages";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetBannerRotator"
+"bannerRotatorCatalogRules";"Banner Rotator";"Magento Blank";"Title_%isolation%";"All Store Views";"for_virtual_product";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetBannerRotatorOnProductPage"
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/Banner/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Banner/Test/etc/constraint.xml
index 506f37931ff22..8b9fe9a317154 100644
--- a/dev/tests/functional/tests/app/Magento/Banner/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Banner/Test/etc/constraint.xml
@@ -6,45 +6,45 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleInCategory.php b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleInCategory.php
index 87f12ff64b2a1..2b39584bd185f 100644
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleInCategory.php
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleInCategory.php
@@ -16,12 +16,9 @@
*/
class AssertBundleInCategory extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check bundle product on the category page
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleItemsOnProductPage.php b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleItemsOnProductPage.php
index deb9c41f46142..2fd74a3e6e37e 100755
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleItemsOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleItemsOnProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertBundleItemsOnProductPage extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed product bundle items data on product page equals passed from fixture preset
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceType.php b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceType.php
index ba01e34ddcf23..a0452c4bcf51e 100755
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceType.php
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceType.php
@@ -16,12 +16,9 @@
*/
class AssertBundlePriceType extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Product price type
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceView.php b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceView.php
index 3128633d464b5..5dc36a9727af2 100644
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceView.php
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundlePriceView.php
@@ -15,12 +15,9 @@
*/
class AssertBundlePriceView extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed price view for bundle product on product page equals passed from fixture.
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleProductForm.php b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleProductForm.php
index 7c9e55c95eb78..ac8080f613c13 100755
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertBundleProductForm.php
@@ -12,12 +12,9 @@
*/
class AssertBundleProductForm extends AssertProductForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Formatting options for array values
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertTierPriceOnBundleProductPage.php b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertTierPriceOnBundleProductPage.php
index 2e29a70eccf80..459247667b2c8 100644
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertTierPriceOnBundleProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/Constraint/AssertTierPriceOnBundleProductPage.php
@@ -15,12 +15,9 @@
*/
class AssertTierPriceOnBundleProductPage extends AssertProductTierPriceOnProductPage
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Tier price block
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/TestCase/CreateBundleProductEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Bundle/Test/TestCase/CreateBundleProductEntityTest/test.csv
index a5cb3ad71d77d..53d0c45423592 100644
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/TestCase/CreateBundleProductEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/TestCase/CreateBundleProductEntityTest/test.csv
@@ -1,15 +1,15 @@
-"product/data/name";"product/data/sku_type";"product/data/sku";"product/data/status";"product/data/price_type";"product/data/price/value";"product/data/price/preset";"product/data/tax_class_id/dataSet";"product/data/quantity_and_stock_status/is_in_stock";"product/data/weight_type";"product/data/weight";"product/data/category";"product/data/description";"product/data/group_price/preset";"product/data/special_price";"product/data/special_from_date/pattern";"product/data/special_to_date/pattern";"product/data/tier_price/preset";"product/data/price_view";"product/data/stock_data/use_config_manage_stock";"product/data/stock_data/manage_stock";"product/data/shipment_type";"product/data/bundle_selections/preset";"product/data/bundle_selections/products";"product/data/checkout_data/preset";"product/data/custom_options/preset";"product/data/custom_options/import_products";"product/data/visibility";"product/data/use_config_gift_message_available";"product/data/gift_message_available";"constraint";"issue"
-"BundleProduct %isolation%";"-";"bundle_sku_%isolation%";"-";"-";"-";"-";"-";"-";"-";"-";"-";"Bundle Product Dynamic Required";"-";"-";"-";"-";"-";"-";"No";"No";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertProductInGrid, assertBundleItemsOnProductPage";""
-"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"Product offline";"Dynamic";"-";"-";"-";"Out of Stock";"Dynamic";"-";"category_%isolation%";"-";"-";"-";"-";"-";"-";"-";"-";"-";"Separately";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"Catalog, Search";"No";"Yes";"assertProductSaveMessage, assertProductNotSearchableBySku";""
-"BundleProduct %isolation%";"Dynamic";"bundle_sku_%isolation%";"Product online";"Dynamic";"-";"dynamic-200";"-";"In Stock";"Dynamic";"-";"category_%isolation%";"Bundle Product Dynamic";"-";"-";"-";"-";"-";"Price Range";"-";"-";"Together";"all_types_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"all_types_bundle_options";"-";"-";"Catalog, Search";"No";"Yes";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductSearchableBySku, assertBundleProductPage, assertProductInStock, assertBundleItemsOnProductPage, assertProductVisibleInCategory, assertBundlePriceView, assertBundlePriceType";""
-"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"-";"Fixed";"10";"fixed-15";"None";"-";"Fixed";"10";"-";"Bundle Product Fixed Required";"-";"-";"-";"-";"-";"-";"-";"-";"-";"default_fixed";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductSearchableBySku, assertBundleProductPage, assertBundleItemsOnProductPage";""
-"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"Product online";"Fixed";"100";"fixed-24";"Taxable Goods";"In Stock";"Fixed";"10";"category_%isolation%";"Bundle Product Fixed";"default";"-";"-";"-";"-";"As Low as";"-";"-";"Separately";"all_types_fixed";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"all_types_bundle_fixed_and_custom_options";"all_types";"-";"Catalog, Search";"No";"No";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductVisibleInCategory, assertBundleProductPage, assertProductInStock, assertGroupedPriceOnBundleProductPage, assertBundleItemsOnProductPage, assertBundlePriceView, assertBundlePriceType";""
-"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"Product online";"Fixed";"10";"fixed-1";"Taxable Goods";"Out of Stock";"Fixed";"10";"category_%isolation%";"-";"-";"10";"m/d/Y";"m/d/Y +3 days";"-";"Price Range";"No";"Yes";"Together";"with_not_required_options";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"with_not_required_options";"-";"-";"Catalog";"No";"No";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertBundleProductPage, assertProductOutOfStock, assertBundlePriceView";"Bug: MAGETWO-26980"
-"BundleProduct %isolation%";"Dynamic";"bundle_sku_%isolation%";"-";"Dynamic";"-";"dynamic-50";"-";"-";"Fixed";"10";"-";"-";"-";"-";"-";"-";"default";"As Low as";"No";"No";"Together";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"Search";"-";"-";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductSearchableBySku, assertBundleProductPage, assertBundleItemsOnProductPage, assertTierPriceOnBundleProductPage";""
-"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"dynamic-8";"-";"-";"-";"-";"-";"-";"-";"20";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory";""
-"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"dynamic-32";"-";"-";"-";"-";"-";"-";"MAGETWO-23061";"-";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType";""
-"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"dynamic-40";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType";""
-"Bundle Fixed %isolation%";"Fixed";"sku_bundle_fixed_%isolation%";"-";"Fixed";"110";"fixed-115";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"second";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"with_custom_options_1";"drop_down_with_one_option_fixed_price";"catalogProductSimple::with_two_custom_option,catalogProductSimple::with_all_custom_option";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType, assertProductCustomOptionsOnBundleProductPage";""
-"Bundle Fixed %isolation%";"Fixed";"sku_bundle_fixed_%isolation%";"-";"Fixed";"110";"fixed-159";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"second";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"with_custom_options_2";"drop_down_with_one_option_percent_price";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType";""
-"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage";""
-"Bundle Fixed %isolation%";"Fixed";"sku_bundle_fixed_%isolation%";"-";"Fixed";"10";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"second";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage";""
+"product/data/name";"product/data/sku_type";"product/data/sku";"product/data/status";"product/data/price_type";"product/data/price/value";"product/data/price/preset";"product/data/tax_class_id/dataSet";"product/data/quantity_and_stock_status/is_in_stock";"product/data/weight_type";"product/data/weight";"product/data/category";"product/data/description";"product/data/group_price/preset";"product/data/special_price";"product/data/special_from_date/pattern";"product/data/special_to_date/pattern";"product/data/tier_price/preset";"product/data/price_view";"product/data/stock_data/use_config_manage_stock";"product/data/stock_data/manage_stock";"product/data/shipment_type";"product/data/bundle_selections/preset";"product/data/bundle_selections/products";"product/data/checkout_data/preset";"product/data/custom_options/preset";"product/data/custom_options/import_products";"product/data/visibility";"product/data/use_config_gift_message_available";"product/data/gift_message_available";"constraint"
+"BundleProduct %isolation%";"-";"bundle_sku_%isolation%";"-";"-";"-";"-";"-";"-";"-";"-";"-";"Bundle Product Dynamic Required";"-";"-";"-";"-";"-";"-";"No";"No";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertProductInGrid, assertBundleItemsOnProductPage"
+"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"Product offline";"Dynamic";"-";"-";"-";"Out of Stock";"Dynamic";"-";"category_%isolation%";"-";"-";"-";"-";"-";"-";"-";"-";"-";"Separately";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"Catalog, Search";"No";"Yes";"assertProductSaveMessage, assertProductNotSearchableBySku"
+"BundleProduct %isolation%";"Dynamic";"bundle_sku_%isolation%";"Product online";"Dynamic";"-";"dynamic-200";"-";"In Stock";"Dynamic";"-";"category_%isolation%";"Bundle Product Dynamic";"-";"-";"-";"-";"-";"Price Range";"-";"-";"Together";"all_types_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"all_types_bundle_options";"-";"-";"Catalog, Search";"No";"Yes";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductSearchableBySku, assertBundleProductPage, assertProductInStock, assertBundleItemsOnProductPage, assertProductVisibleInCategory, assertBundlePriceView, assertBundlePriceType"
+"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"-";"Fixed";"10";"fixed-15";"None";"-";"Fixed";"10";"-";"Bundle Product Fixed Required";"-";"-";"-";"-";"-";"-";"-";"-";"-";"default_fixed";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductSearchableBySku, assertBundleProductPage, assertBundleItemsOnProductPage"
+"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"Product online";"Fixed";"100";"fixed-24";"Taxable Goods";"In Stock";"Fixed";"10";"category_%isolation%";"Bundle Product Fixed";"default";"-";"-";"-";"-";"As Low as";"-";"-";"Separately";"all_types_fixed";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"all_types_bundle_fixed_and_custom_options";"all_types";"-";"Catalog, Search";"No";"No";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductVisibleInCategory, assertBundleProductPage, assertProductInStock, assertGroupedPriceOnBundleProductPage, assertBundleItemsOnProductPage, assertBundlePriceView, assertBundlePriceType"
+"BundleProduct %isolation%";"Fixed";"bundle_sku_%isolation%";"Product online";"Fixed";"10";"fixed-1";"Taxable Goods";"Out of Stock";"Fixed";"10";"category_%isolation%";"-";"-";"10";"m/d/Y";"m/d/Y +3 days";"-";"Price Range";"No";"Yes";"Together";"with_not_required_options";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product|catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"with_not_required_options";"-";"-";"Catalog";"No";"No";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertBundleProductPage, assertProductOutOfStock, assertBundlePriceView"
+"BundleProduct %isolation%";"Dynamic";"bundle_sku_%isolation%";"-";"Dynamic";"-";"dynamic-50";"-";"-";"Fixed";"10";"-";"-";"-";"-";"-";"-";"default";"As Low as";"No";"No";"Together";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductVirtual::50_dollar_product";"default";"-";"-";"Search";"-";"-";"assertProductSaveMessage, assertProductInGrid, assertBundleProductForm, assertProductSearchableBySku, assertBundleProductPage, assertBundleItemsOnProductPage, assertTierPriceOnBundleProductPage"
+"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"dynamic-8";"-";"-";"-";"-";"-";"-";"-";"20";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory"
+"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"dynamic-32";"-";"-";"-";"-";"-";"-";"MAGETWO-23061";"-";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType"
+"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"dynamic-40";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType"
+"Bundle Fixed %isolation%";"Fixed";"sku_bundle_fixed_%isolation%";"-";"Fixed";"110";"fixed-115";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"second";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"with_custom_options_1";"drop_down_with_one_option_fixed_price";"catalogProductSimple::with_two_custom_option,catalogProductSimple::with_all_custom_option";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType, assertProductCustomOptionsOnBundleProductPage"
+"Bundle Fixed %isolation%";"Fixed";"sku_bundle_fixed_%isolation%";"-";"Fixed";"110";"fixed-159";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"second";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"with_custom_options_2";"drop_down_with_one_option_percent_price";"-";"-";"-";"-";"assertProductSaveMessage, assertBundleInCategory, assertBundlePriceView, assertBundlePriceType"
+"Bundle Dynamic %isolation%";"Dynamic";"sku_bundle_dynamic_%isolation%";"-";"Dynamic";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"default_dynamic";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage"
+"Bundle Fixed %isolation%";"Fixed";"sku_bundle_fixed_%isolation%";"-";"Fixed";"10";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"second";"catalogProductSimple::100_dollar_product,catalogProductSimple::40_dollar_product";"default";"-";"-";"-";"-";"-";"assertProductSaveMessage"
diff --git a/dev/tests/functional/tests/app/Magento/Bundle/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Bundle/Test/etc/constraint.xml
index 60e36e2e0c762..7cc2fb2b69650 100644
--- a/dev/tests/functional/tests/app/Magento/Bundle/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Bundle/Test/etc/constraint.xml
@@ -6,7 +6,7 @@
-->
- low
+ low
@@ -15,30 +15,30 @@
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Edit/AttributeForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Edit/AttributeForm.php
index 2a7baf8562675..1d70bd71d2f03 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Edit/AttributeForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Edit/AttributeForm.php
@@ -24,6 +24,13 @@ class AttributeForm extends FormTabs
*/
protected $closedToggle = '//*[contains(@class,"collapsable-wrapper") and not(contains(@class,"opened"))]//strong';
+ /**
+ * Properties tab selector.
+ *
+ * @var string
+ */
+ protected $propertiesTab = '#product_attribute_tabs_main';
+
/**
* Get data of the tabs.
*
@@ -37,22 +44,27 @@ class AttributeForm extends FormTabs
*/
public function getData(FixtureInterface $fixture = null, Element $element = null)
{
+ $this->waitForElementVisible($this->propertiesTab);
$data = [];
if (null === $fixture) {
foreach ($this->tabs as $tabName => $tab) {
- $this->openTab($tabName);
- $this->expandAllToggles();
- $tabData = $this->getTabElement($tabName)->getDataFormTab();
- $data = array_merge($data, $tabData);
+ if ($this->isTabVisible($tabName)) {
+ $this->openTab($tabName);
+ $this->expandAllToggles();
+ $tabData = $this->getTabElement($tabName)->getDataFormTab();
+ $data = array_merge($data, $tabData);
+ }
}
} else {
$isHasData = ($fixture instanceof InjectableFixture) ? $fixture->hasData() : true;
$tabsFields = $isHasData ? $this->getFieldsByTabs($fixture) : [];
foreach ($tabsFields as $tabName => $fields) {
- $this->openTab($tabName);
- $this->expandAllToggles();
- $tabData = $this->getTabElement($tabName)->getDataFormTab($fields, $this->_rootElement);
- $data = array_merge($data, $tabData);
+ if ($this->isTabVisible($tabName)) {
+ $this->openTab($tabName);
+ $this->expandAllToggles();
+ $tabData = $this->getTabElement($tabName)->getDataFormTab($fields, $this->_rootElement);
+ $data = array_merge($data, $tabData);
+ }
}
}
@@ -85,10 +97,24 @@ public function openTab($tabName)
? $this->tabs[$tabName]['strategy']
: Locator::SELECTOR_CSS;
$tab = $this->_rootElement->find($selector, $strategy);
- $target = $this->browser->find('.logo');// Handle menu overlap problem
+ $target = $this->browser->find('.page-title .title');// Handle menu overlap problem
$this->_rootElement->dragAndDrop($target);
$tab->click();
-
return $this;
}
+
+ /**
+ * Check if tab is visible.
+ *
+ * @param string $tabName
+ * @return bool
+ */
+ protected function isTabVisible($tabName)
+ {
+ $selector = $this->tabs[$tabName]['selector'];
+ $strategy = isset($this->tabs[$tabName]['strategy'])
+ ? $this->tabs[$tabName]['strategy']
+ : Locator::SELECTOR_CSS;
+ return $this->_rootElement->find($selector, $strategy)->isVisible();
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Set/Main.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Set/Main.php
index 5161864e1fab8..8d54abfe9a08a 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Set/Main.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Attribute/Set/Main.php
@@ -42,6 +42,13 @@ class Main extends Block
*/
protected $addGroupButton = '[data-ui-id="adminhtml-catalog-product-set-edit-add-group-button"]';
+ /**
+ * Selector for note block element.
+ *
+ * @var string
+ */
+ protected $noteBlock = '.attribute-set .title';
+
/**
* Move Attribute to Attribute Group
*
@@ -60,6 +67,9 @@ public function moveAttribute(array $attributeData, $attributeGroup = 'Product D
$attributeGroupLocator = sprintf($this->groups, $attributeGroup);
$target = $this->_rootElement->find($attributeGroupLocator, Locator::SELECTOR_XPATH);
+ $target->click(); // Handle small resolution screen issue
+ $this->browser->find($this->noteBlock)->click();
+
$attributeLabelLocator = sprintf($this->attribute, $attribute);
$this->_rootElement->find($attributeLabelLocator, Locator::SELECTOR_XPATH)->dragAndDrop($target);
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Action/Attribute.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Action/Attribute.php
index bc458acaea1b6..4abeb778750b4 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Action/Attribute.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Action/Attribute.php
@@ -9,27 +9,26 @@
use Mtf\Client\Element;
/**
- * Class Attribute
- * Product attribute massaction edit page
+ * Product attribute massaction edit page.
*/
class Attribute extends Form
{
/**
- * CSS selector for 'save' button
+ * CSS selector for 'save' button.
*
* @var string
*/
- protected $saveButton = '[data-ui-id="attribute-save-button"]';
+ protected $saveButton = '[data-ui-id="page-actions-toolbar-save-button"]';
/**
- * XPath selector for checkbox that enables price editing
+ * XPath selector for checkbox that enables price editing.
*
* @var string
*/
protected $priceFieldEnablerSelector = '//*[@id="attribute-price-container"]/div[1]/div/label//*[@type="checkbox"]';
/**
- * Enable price field editing
+ * Enable price field editing.
*
* @return void
*/
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/ProductTab.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/ProductTab.php
index 98e6ef2e7c458..ef5d3093b922c 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/ProductTab.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/ProductTab.php
@@ -5,8 +5,10 @@
namespace Magento\Catalog\Test\Block\Adminhtml\Product\Edit;
-use Magento\Backend\Test\Block\Widget\Tab;
use Mtf\Client\Element\Locator;
+use Magento\Backend\Test\Block\Widget\Tab;
+use Magento\Catalog\Test\Block\Adminhtml\Product\Attribute\Edit;
+use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
/**
* General class for tabs on product FormTabs with "Add attribute" button.
@@ -18,7 +20,7 @@ class ProductTab extends Tab
*
* @var string
*/
- protected $attributeSearch = "//div[contains(@data-role, '%s')]//*[@id='product-attribute-search-container']";
+ protected $attributeSearch = "//div[contains(@data-role, 'product-details')]//*[@data-toggle='dropdown']/span";
/**
* Selector for 'New Attribute' button.
@@ -27,6 +29,13 @@ class ProductTab extends Tab
*/
protected $newAttributeButton = '[id^="create_attribute"]';
+ /**
+ * Selector for search input field.
+ *
+ * @var string
+ */
+ protected $searchAttribute = "//input[@data-role='product-attribute-search']";
+
/**
* Fixture mapping.
*
@@ -51,7 +60,18 @@ protected function dataMapping(array $fields = null, $parent = null)
*/
public function addNewAttribute($tabName)
{
- $this->_rootElement->find(sprintf($this->attributeSearch, $tabName), Locator::SELECTOR_XPATH)->click();
- $this->_rootElement->find($this->newAttributeButton)->click();
+ $element = $this->_rootElement;
+ $selector = sprintf($this->attributeSearch, $tabName);
+ $element->waitUntil(
+ function () use ($element, $selector) {
+ return $element->find($selector, Locator::SELECTOR_XPATH)->isVisible() ? true : null;
+ }
+ );
+ $addAttributeToggle = $element->find($selector, Locator::SELECTOR_XPATH);
+ $addAttributeToggle->click();
+ if (!$addAttributeToggle->find($this->newAttributeButton)->isVisible()) {
+ $element->find($this->searchAttribute, Locator::SELECTOR_XPATH)->click();
+ }
+ $element->find($this->newAttributeButton)->click();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/Options/Type/DropDown.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/Options/Type/DropDown.php
index f6cb41f435de8..c7cb8cbc125aa 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/Options/Type/DropDown.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/Options/Type/DropDown.php
@@ -9,20 +9,26 @@
use Mtf\Client\Element;
/**
- * Class DropDown
- * Form "Option dropdown" on tab product "Custom options"
+ * Form "Option dropdown" on tab product "Custom options".
*/
class DropDown extends AbstractOptions
{
/**
- * Add button css selector
+ * Add button css selector.
*
* @var string
*/
protected $buttonAddLocator = '[id$="_add_select_row"]';
/**
- * Fill the form
+ * Name for title column.
+ *
+ * @var string
+ */
+ protected $optionTitle = '.data-table th.col-name';
+
+ /**
+ * Fill the form.
*
* @param array $fields
* @param Element $element
@@ -30,6 +36,7 @@ class DropDown extends AbstractOptions
*/
public function fillOptions(array $fields, Element $element = null)
{
+ $this->_rootElement->find($this->optionTitle)->click();
$this->_rootElement->find($this->buttonAddLocator)->click();
return parent::fillOptions($fields, $element);
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/ProductDetails/CategoryIds.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/ProductDetails/CategoryIds.php
index 14ad4c5d53e6c..50939e39db4e5 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/ProductDetails/CategoryIds.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/ProductDetails/CategoryIds.php
@@ -9,20 +9,26 @@
use Mtf\Client\Element\Locator;
/**
- * Class CategoryIds
- * Typified element class for category element
+ * Typified element class for category element.
*/
class CategoryIds extends MultisuggestElement
{
/**
- * Selector suggest input
+ * Selector suggest input.
*
* @var string
*/
protected $suggest = '#category_ids-suggest';
/**
- * Selector item of search result
+ * Selector for suggest element.
+ *
+ * @var string
+ */
+ protected $suggestElement = '.mage-suggest.category-select';
+
+ /**
+ * Selector item of search result.
*
* @var string
*/
@@ -36,7 +42,7 @@ class CategoryIds extends MultisuggestElement
protected $top = './ancestor::body//*[@class="page-main-actions"]';
/**
- * Set value
+ * Set value.
*
* @param array|string $values
* @return void
@@ -44,6 +50,25 @@ class CategoryIds extends MultisuggestElement
public function setValue($values)
{
$this->find($this->top, Locator::SELECTOR_XPATH)->click();
+ $this->waitInitElement();
parent::setValue($values);
}
+
+ /**
+ * Wait init search suggest container.
+ *
+ * @return void
+ * @throws \Exception
+ */
+ protected function waitInitElement()
+ {
+ $browser = clone $this;
+ $selector = $this->suggestElement;
+
+ $browser->waitUntil(
+ function () use ($browser, $selector) {
+ return $browser->find($selector)->isVisible() ? true : null;
+ }
+ );
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/ProductForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/ProductForm.php
index 87076775194da..40e6a4d5d17b8 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/ProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/ProductForm.php
@@ -181,7 +181,7 @@ protected function createCustomAttribute(InjectableFixture $product, $tabName =
if (!$this->checkAttributeLabel($attribute)) {
/** @var \Magento\Catalog\Test\Block\Adminhtml\Product\Edit\ProductTab $tab */
$tab = $this->openTab($tabName);
- $tab->addNewAttribute();
+ $tab->addNewAttribute($tabName);
$this->fillAttributeForm($attribute);
$this->reinitRootElement();
}
@@ -223,7 +223,6 @@ protected function showAdvancedSettings()
public function openTab($tabName)
{
$this->showAdvancedSettings();
-
return parent::openTab($tabName);
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/ListCompare.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/ListCompare.php
index b4e9e628edb3a..8383790a3b026 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/ListCompare.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/ListCompare.php
@@ -75,7 +75,7 @@ class ListCompare extends Block
*
* @var string
*/
- protected $isEmpty = 'p.empty';
+ protected $isEmpty = 'div.empty:last-child';
/**
* Selector for message block.
@@ -145,6 +145,39 @@ function () use ($rootElement, $element) {
return $data;
}
+ /**
+ * Get item compare product attribute.
+ *
+ * @param string $key
+ * @return Element
+ */
+ public function getCompareProductAttribute($key)
+ {
+ $rootElement = $this->_rootElement;
+ $element = $this->nameSelector;
+ $this->_rootElement->waitUntil(
+ function () use ($rootElement, $element) {
+ return $rootElement->find($element, Locator::SELECTOR_XPATH)->isVisible() ? true : null;
+ }
+ );
+ return $this->_rootElement->find(sprintf($this->productAttribute, $key), Locator::SELECTOR_XPATH);
+ }
+
+ /**
+ * Get item attribute.
+ *
+ * @param int $indexProduct
+ * @param string $attributeKey
+ * @return string
+ */
+ public function getProductAttribute($indexProduct, $attributeKey)
+ {
+ return trim(
+ $this->getCompareProductAttribute($attributeKey)
+ ->find(sprintf($this->attributeSelector, $indexProduct), Locator::SELECTOR_XPATH)->getText()
+ );
+ }
+
/**
* Remove product from compare product list.
*
@@ -208,6 +241,7 @@ public function isProductVisibleInCompareBlock($productName = '')
*/
public function getEmptyMessage()
{
+ $this->waitForElementVisible($this->isEmpty);
$isEmpty = $this->_rootElement->find($this->isEmpty);
if ($isEmpty->isVisible()) {
return $isEmpty->getText();
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/Sidebar.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/Sidebar.php
index 161d8c30319fc..597ab1fa29613 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/Sidebar.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/Sidebar.php
@@ -8,53 +8,65 @@
use Mtf\Client\Element;
/**
- * Class Sidebar
- * Compare product block on cms page
+ * Compare product block on cms page.
*/
class Sidebar extends ListCompare
{
/**
- * Selector for empty message
+ * Selector for empty message.
*
* @var string
*/
- protected $isEmpty = 'p.empty';
+ protected $isEmpty = 'div.empty';
/**
- * Product name selector
+ * Product name selector.
*
* @var string
*/
- protected $productName = 'li.item.odd.last strong.name a';
+ protected $productName = 'li.product-item.odd.last strong.product-item-name a';
/**
- * Selector for "Clear All" button
+ * Selector for "Clear All" button.
*
* @var string
*/
protected $clearAll = '#compare-clear-all';
/**
- * Get compare products block content
+ * Get compare products block content.
*
+ * @throws \Exception
* @return array|string
*/
public function getProducts()
{
- $result = [];
- $isEmpty = $this->_rootElement->find($this->isEmpty);
- if ($isEmpty->isVisible()) {
- return $isEmpty->getText();
+ try {
+ $result = [];
+ $rootElement = $this->_rootElement;
+ $selector = $this->productName;
+ $this->_rootElement->waitUntil(
+ function () use ($rootElement, $selector) {
+ return $rootElement->find($selector)->isVisible() ? true : null;
+ }
+ );
+ $elements = $this->_rootElement->find($this->productName)->getElements();
+ foreach ($elements as $element) {
+ $result[] = $element->getText();
+ }
+ return $result;
+ } catch (\Exception $e) {
+ $isEmpty = $this->_rootElement->find($this->isEmpty);
+ if ($isEmpty->isVisible()) {
+ return $isEmpty->getText();
+ } else {
+ throw $e;
+ }
}
- $elements = $this->_rootElement->find($this->productName)->getElements();
- foreach ($elements as $element) {
- $result[] = $element->getText();
- }
- return $result;
}
/**
- * Click "Clear All" on "My Account" page
+ * Click "Clear All" on "My Account" page.
*
* @return void
*/
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAbsenceDeleteAttributeButton.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAbsenceDeleteAttributeButton.php
index 2aff555e77e8b..c9401602d952a 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAbsenceDeleteAttributeButton.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAbsenceDeleteAttributeButton.php
@@ -14,12 +14,9 @@
*/
class AssertAbsenceDeleteAttributeButton extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that Delete Attribute button is absent for system attribute on attribute edit page.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonAbsent.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonAbsent.php
index fe2b8fd83a61e..ed76a2c27cb5e 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonAbsent.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonAbsent.php
@@ -17,12 +17,9 @@
*/
class AssertAddToCartButtonAbsent extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Category Page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonPresent.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonPresent.php
index 31e5cc832ce49..2869909c7b5a0 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonPresent.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddToCartButtonPresent.php
@@ -17,12 +17,9 @@
*/
class AssertAddToCartButtonPresent extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Category Page on Frontend
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddedProductAttributeOnProductForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddedProductAttributeOnProductForm.php
index 466997959fb2f..5b3438cec8d2e 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddedProductAttributeOnProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAddedProductAttributeOnProductForm.php
@@ -5,23 +5,23 @@
namespace Magento\Catalog\Test\Constraint;
+use Magento\Catalog\Test\Fixture\CatalogAttributeSet;
+use Magento\Catalog\Test\Fixture\CatalogProductSimple;
+use Mtf\Fixture\InjectableFixture;
+use Mtf\Constraint\AbstractConstraint;
use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
-use Mtf\Constraint\AbstractConstraint;
-use Mtf\Fixture\InjectableFixture;
+use Mtf\ObjectManager;
/**
* Check attribute on product form.
*/
class AssertAddedProductAttributeOnProductForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Add this attribute to Default attribute Template. Create product and Assert that created attribute
@@ -31,6 +31,7 @@ class AssertAddedProductAttributeOnProductForm extends AbstractConstraint
* @param CatalogProductIndex $productGrid
* @param CatalogProductEdit $productEdit
* @param CatalogProductAttribute $attribute
+ * @param CatalogAttributeSet $productTemplate
* @param CatalogProductAttribute $productAttributeOriginal
* @throws \Exception
* @return void
@@ -40,11 +41,13 @@ public function processAssert(
CatalogProductIndex $productGrid,
CatalogProductEdit $productEdit,
CatalogProductAttribute $attribute,
+ CatalogAttributeSet $productTemplate,
CatalogProductAttribute $productAttributeOriginal = null
) {
- $filterProduct = [
- 'sku' => $product->getSku(),
- ];
+ if (!$product->hasData('sku')) {
+ $product = $this->createProductWithAttributeSet($productAttributeOriginal, $productTemplate);
+ }
+ $filterProduct = ['sku' => $product->getSku()];
$productGrid->open();
$productGrid->getProductGrid()->searchAndOpen($filterProduct);
@@ -67,4 +70,23 @@ public function toString()
{
return 'Product Attribute is present on Product form.';
}
+
+ /**
+ * Create Product With AttributeSet.
+ *
+ * @param CatalogProductAttribute $attribute
+ * @param CatalogAttributeSet $productTemplate
+ * @return CatalogProductSimple
+ */
+ protected function createProductWithAttributeSet(
+ CatalogProductAttribute $attribute,
+ CatalogAttributeSet $productTemplate
+ ) {
+ $product = ObjectManager::getInstance()->create(
+ 'Magento\Catalog\Test\TestStep\AddAttributeToProductTemplateStep',
+ ['attribute' => $attribute, 'productTemplate' => $productTemplate]
+ )->run();
+ ObjectManager::getInstance()->create('Magento\Catalog\Test\TestStep\SaveProductTemplateStep')->run();
+ return $product['product'];
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeForm.php
index 6e99ad81cf7c9..1883451ea5d73 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeForm.php
@@ -15,12 +15,9 @@
*/
class AssertAttributeForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed attribute data on edit page equals passed from fixture.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeOptionsOnProductForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeOptionsOnProductForm.php
index 31274227acee0..ca705c2170a1a 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeOptionsOnProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeOptionsOnProductForm.php
@@ -12,12 +12,9 @@
*/
class AssertAttributeOptionsOnProductForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @return void
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeSearchableByLabel.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeSearchableByLabel.php
index f2f021612864a..16e6f2cffc31e 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeSearchableByLabel.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertAttributeSearchableByLabel.php
@@ -12,12 +12,9 @@
*/
class AssertAttributeSearchableByLabel extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @return void
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnBackend.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnBackend.php
index 80757b310f580..e04f76f19626d 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnBackend.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnBackend.php
@@ -15,12 +15,9 @@
*/
class AssertCategoryAbsenceOnBackend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that not displayed category in backend catalog category tree
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnFrontend.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnFrontend.php
index 645b5b39ca641..46326d1ee30d2 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryAbsenceOnFrontend.php
@@ -16,18 +16,15 @@
*/
class AssertCategoryAbsenceOnFrontend extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message on the product page 404
*/
const NOT_FOUND_MESSAGE = 'Whoops, our bad...';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that not displayed category in frontend main menu
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForAssignedProducts.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForAssignedProducts.php
index 2250cb7b7789b..166faa8e7213d 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForAssignedProducts.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForAssignedProducts.php
@@ -16,12 +16,9 @@
*/
class AssertCategoryForAssignedProducts extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed assigned products on category page equals passed from fixture
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForm.php
index d5901b78b4738..5465492dac08b 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryForm.php
@@ -12,12 +12,9 @@
*/
class AssertCategoryForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @return void
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotActive.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotActive.php
index c955feda2aa3b..ea0f357e3c878 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotActive.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotActive.php
@@ -16,14 +16,11 @@
*/
class AssertCategoryIsNotActive extends AbstractConstraint
{
- const NOT_FOUND_MESSAGE = 'Whoops, our bad...';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const NOT_FOUND_MESSAGE = 'Whoops, our bad...';
/**
* Assert that the category cannot be accessed from the navigation bar in the frontend
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotIncludeInMenu.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotIncludeInMenu.php
index 65c0a77294927..1afb66d142fa7 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotIncludeInMenu.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryIsNotIncludeInMenu.php
@@ -17,12 +17,9 @@
*/
class AssertCategoryIsNotIncludeInMenu extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that the category is no longer available on the top menu bar
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryPage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryPage.php
index e6215db21a9f1..92b3304b91c53 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryPage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryPage.php
@@ -17,12 +17,9 @@
*/
class AssertCategoryPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed category data on category page equals to passed from fixture
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryRedirect.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryRedirect.php
index ce8fc92a4867e..9d8f3987389ec 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryRedirect.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategoryRedirect.php
@@ -15,12 +15,9 @@
*/
class AssertCategoryRedirect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that old Category URL lead to appropriate Category in frontend
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySaveMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySaveMessage.php
index 39104943fabfe..c704b36101be5 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCategorySaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success category save message
*/
const SUCCESS_MESSAGE = 'You saved the category.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after category save
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySuccessDeleteMessage.php
index 9f7b262b02ac9..beb3994bd58f4 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCategorySuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCategorySuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message that displayed after delete url rewrite
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted the category.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after delete a category "You deleted the category." successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCrossSellsProductsSection.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCrossSellsProductsSection.php
index 67f2329e1aa6c..2ca88767f484e 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCrossSellsProductsSection.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertCrossSellsProductsSection.php
@@ -18,12 +18,9 @@
*/
class AssertCrossSellsProductsSection extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product is displayed in cross-sell section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoCrossSellsProductsSection.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoCrossSellsProductsSection.php
index dcdde5bdb3082..765669ef91f72 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoCrossSellsProductsSection.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoCrossSellsProductsSection.php
@@ -18,12 +18,9 @@
*/
class AssertNoCrossSellsProductsSection extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product is not displayed in cross-sell section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoRelatedProductsSection.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoRelatedProductsSection.php
index 4c06db094cfc6..76defe97417d8 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoRelatedProductsSection.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoRelatedProductsSection.php
@@ -17,12 +17,9 @@
*/
class AssertNoRelatedProductsSection extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product is not displayed in related products section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoUpSellsProductsSection.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoUpSellsProductsSection.php
index ccfc9ff9ef510..e787890abee49 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoUpSellsProductsSection.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertNoUpSellsProductsSection.php
@@ -17,12 +17,9 @@
*/
class AssertNoUpSellsProductsSection extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product is not displayed in up-sell section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInGrid.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInGrid.php
index 4dec45b012b86..aa4b2dc670435 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductAttributeAbsenceInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after deleted product attribute cannot be found by attribute code.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInSearchOnProductForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInSearchOnProductForm.php
index 6f1d7991b81bf..fc43dd93cf8dd 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInSearchOnProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInSearchOnProductForm.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeAbsenceInSearchOnProductForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that deleted attribute can't be added to product template on Product Page via Add Attribute control
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInTemplateGroups.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInTemplateGroups.php
index a5b5935a9bc42..82f536496c12a 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInTemplateGroups.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInTemplateGroups.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeAbsenceInTemplateGroups extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted attribute isn't displayed in Product template's Groups section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInUnassignedAttributes.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInUnassignedAttributes.php
index 7c37c98529922..d70f3a761e09c 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInUnassignedAttributes.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeAbsenceInUnassignedAttributes.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeAbsenceInUnassignedAttributes extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted attribute isn't displayed in Product template's Unassigned Attributes section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnFrontend.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnFrontend.php
index cffe6fe28dc65..8213f53c9c161 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeDisplayingOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check whether the attribute is visible on the frontend.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnSearchForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnSearchForm.php
index 41467cfdc7cac..5cfe643e0b2ef 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnSearchForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeDisplayingOnSearchForm.php
@@ -14,12 +14,9 @@
*/
class AssertProductAttributeDisplayingOnSearchForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check whether attribute is displayed in the advanced search form on the frontend.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeInGrid.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeInGrid.php
index 1ff1558055243..0ea5de0229235 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductAttributeInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created product attribute is found in grid
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsComparable.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsComparable.php
index 6ffd0a154dba4..5cdbac2478c26 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsComparable.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsComparable.php
@@ -17,12 +17,9 @@
*/
class AssertProductAttributeIsComparable extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check whether there is an opportunity to compare products using given attribute.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterable.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterable.php
index b3d9296c3cabf..88c15e1a7ea3b 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterable.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterable.php
@@ -5,23 +5,24 @@
namespace Magento\Catalog\Test\Constraint;
-use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
-use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
+use Mtf\Fixture\FixtureFactory;
+use Mtf\Fixture\InjectableFixture;
use Magento\Cms\Test\Page\CmsIndex;
use Mtf\Constraint\AbstractConstraint;
-use Mtf\Fixture\InjectableFixture;
+use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
+use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
+use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
+use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
+use Magento\Catalog\Test\Block\Adminhtml\Product\ProductForm;
/**
* Check whether the attribute filter is displayed on the frontend in Layered navigation.
*/
class AssertProductAttributeIsFilterable extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check whether the attribute filter is displayed on the frontend in Layered navigation.
@@ -30,14 +31,37 @@ class AssertProductAttributeIsFilterable extends AbstractConstraint
* @param InjectableFixture $product
* @param CatalogProductAttribute $attribute
* @param CmsIndex $cmsIndex
+ * @param CatalogProductIndex $catalogProductIndex
+ * @param CatalogProductEdit $catalogProductEdit
+ * @param FixtureFactory $fixtureFactory
* @return void
*/
public function processAssert(
CatalogCategoryView $catalogCategoryView,
InjectableFixture $product,
CatalogProductAttribute $attribute,
- CmsIndex $cmsIndex
+ CmsIndex $cmsIndex,
+ CatalogProductIndex $catalogProductIndex,
+ CatalogProductEdit $catalogProductEdit,
+ FixtureFactory $fixtureFactory
) {
+ $fixtureFactory->createByCode(
+ 'catalogProductSimple',
+ [
+ 'dataSet' => 'product_with_category_with_anchor',
+ 'data' => [
+ 'category_ids' => [
+ 'presets' => null,
+ 'category' => $product->getDataFieldConfig('category_ids')['source']->getCategories()[0]
+ ]
+ ],
+ ]
+ )->persist();
+
+ $catalogProductIndex->open()->getProductGrid()->searchAndOpen(['sku' => $product->getSku()]);
+ $productForm = $catalogProductEdit->getProductForm();
+ $this->setDefaultAttributeValue($productForm, $attribute);
+ $catalogProductEdit->getFormPageActions()->save();
$cmsIndex->open()->getTopmenu()->selectCategoryByName($product->getCategoryIds()[0]);
$label = $attribute->hasData('manage_frontend_label')
? $attribute->getManageFrontendLabel()
@@ -57,4 +81,27 @@ public function toString()
{
return 'Attribute is present in layered navigation on category page.';
}
+
+ /**
+ * Set default attribute value.
+ *
+ * @param ProductForm $productForm
+ * @param CatalogProductAttribute $attribute
+ * @return void
+ */
+ protected function setDefaultAttributeValue(ProductForm $productForm, CatalogProductAttribute $attribute)
+ {
+ $attributeData = $attribute->getData();
+ if (isset($attributeData['options'])) {
+ foreach ($attributeData['options'] as $option) {
+ if ($option['is_default'] == 'Yes') {
+ $defaultValue = $option['admin'];
+ }
+ }
+ } else {
+ $field = preg_grep('@^default_value@', array_keys($attributeData));
+ $defaultValue = $attributeData[array_shift($field)];
+ }
+ $productForm->getAttributeElement($attribute)->setValue($defaultValue);
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterableInSearch.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterableInSearch.php
index 47c98a3b3a5f3..519235ceaeb99 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterableInSearch.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsFilterableInSearch.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeIsFilterableInSearch extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check out if the attribute in the navigation bar on the search results page in Layered navigation.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsGlobal.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsGlobal.php
index 802ea88feac8e..804a7be2ff59e 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsGlobal.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsGlobal.php
@@ -14,12 +14,9 @@
*/
class AssertProductAttributeIsGlobal extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Look on the scope of product attribute in the grid.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsHtmlAllowed.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsHtmlAllowed.php
index 8af708ec9e836..b88bea3779a27 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsHtmlAllowed.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsHtmlAllowed.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeIsHtmlAllowed extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check whether html tags are using in attribute value.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsRequired.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsRequired.php
index 6a7c58b1f0312..39ce6823aaf58 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsRequired.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsRequired.php
@@ -16,18 +16,15 @@
*/
class AssertProductAttributeIsRequired extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Expected message.
*/
const REQUIRE_MESSAGE = 'This is a required field.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Check whether the attribute is mandatory.
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUnique.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUnique.php
index 186ecc4249f0b..0eb936e80df26 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUnique.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUnique.php
@@ -10,53 +10,64 @@
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
use Mtf\Constraint\AbstractConstraint;
+use Mtf\Fixture\FixtureFactory;
/**
* Check whether the attribute is unique.
*/
class AssertProductAttributeIsUnique extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Expected message.
*/
const UNIQUE_MESSAGE = 'The value of attribute "%s" must be unique';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Check whether the attribute is unique.
*
* @param CatalogProductIndex $catalogProductIndex
* @param CatalogProductEdit $catalogProductEdit
- * @param CatalogProductSimple $product
* @param CatalogProductAttribute $attribute
+ * @param CatalogProductSimple $product,
+ * @param FixtureFactory $fixtureFactory
* @throws \Exception
* @return void
*/
public function processAssert(
CatalogProductIndex $catalogProductIndex,
CatalogProductEdit $catalogProductEdit,
+ CatalogProductAttribute $attribute,
CatalogProductSimple $product,
- CatalogProductAttribute $attribute
+ FixtureFactory $fixtureFactory
) {
+ $simpleProduct = $fixtureFactory->createByCode(
+ 'catalogProductSimple',
+ [
+ 'dataSet' => 'product_with_category_with_anchor',
+ 'data' => [
+ 'attribute_set_id' => [
+ 'attribute_set' => $product->getDataFieldConfig('attribute_set_id')['source']->getAttributeSet()
+ ],
+ 'custom_attribute' => $attribute,
+ ],
+ ]
+ );
$catalogProductIndex->open()->getGridPageActionBlock()->addProduct('simple');
$productForm = $catalogProductEdit->getProductForm();
- $productForm->fill($product);
+ $productForm->fill($simpleProduct);
$catalogProductEdit->getFormPageActions()->save();
- $failedAttributes = $productForm->getRequireNoticeAttributes($product);
- $actualMessage = $failedAttributes['product-details'][$attribute->getFrontendLabel()];
-
- $fixtureData = $attribute->getData();
- $defaultValue = preg_grep('/^default_value/', array_keys($fixtureData));
+ $failedAttributes = $productForm->getRequireNoticeAttributes($simpleProduct);
+ $actualMessage = isset($failedAttributes['product-details'][$attribute->getFrontendLabel()])
+ ? $failedAttributes['product-details'][$attribute->getFrontendLabel()]
+ : null;
\PHPUnit_Framework_Assert::assertEquals(
- self::UNIQUE_MESSAGE,
- sprintf($actualMessage, $fixtureData[array_shift($defaultValue)]),
+ sprintf(self::UNIQUE_MESSAGE, $attribute->getFrontendLabel()),
+ $actualMessage,
'JS error notice on product edit page is not equal to expected.'
);
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedInSortOnFrontend.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedInSortOnFrontend.php
index 5c8f7b73d31a6..3862ee8da32e4 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedInSortOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedInSortOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeIsUsedInSortOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that attribute present in sort dropdown on search results page on frontend.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedPromoRules.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedPromoRules.php
index a7c4dc2a3dc8f..3ff15f9eec04c 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedPromoRules.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeIsUsedPromoRules.php
@@ -12,12 +12,9 @@
*/
class AssertProductAttributeIsUsedPromoRules extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @return void
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSaveMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSaveMessage.php
index 921910d6d8737..5298a607d8837 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertProductAttributeSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the product attribute.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'You saved the product attribute.';
/**
* Assert that message "You saved the product attribute." is present on Attribute page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSuccessDeleteMessage.php
index 339b3ea9944f2..4d1a956f733be 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductAttributeSuccessDeleteMessage.php
@@ -14,14 +14,11 @@
*/
class AssertProductAttributeSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The product attribute has been deleted.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'The product attribute has been deleted.';
/**
* Assert that message "The product attribute has been deleted." is present on Attribute page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareBlockOnCmsPage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareBlockOnCmsPage.php
index 1ac0dd859e687..0e05a29df614a 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareBlockOnCmsPage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareBlockOnCmsPage.php
@@ -15,12 +15,9 @@
*/
class AssertProductCompareBlockOnCmsPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Compare Products block is presented on CMS pages.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLink.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLink.php
index 6c449ec83efd3..f276e22d6aaf7 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLink.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLink.php
@@ -13,12 +13,9 @@
*/
class AssertProductCompareItemsLink extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that link "Compare Products..." on top menu of page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLinkIsAbsent.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLinkIsAbsent.php
index 2975e07257efa..89e969297ec11 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLinkIsAbsent.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareItemsLinkIsAbsent.php
@@ -13,12 +13,9 @@
*/
class AssertProductCompareItemsLinkIsAbsent extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert compare products link is NOT visible at the top of page.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductComparePage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductComparePage.php
index 3448b15939ff2..0fec1e7d33cca 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductComparePage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductComparePage.php
@@ -15,12 +15,9 @@
*/
class AssertProductComparePage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Product attribute on compare product page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareRemoveLastProductMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareRemoveLastProductMessage.php
index 3d0b22887093e..2cfb20b85f2ba 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareRemoveLastProductMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareRemoveLastProductMessage.php
@@ -14,14 +14,11 @@
*/
class AssertProductCompareRemoveLastProductMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You have no items to compare.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You have no items to compare.';
/**
* After removing last product message is appeared on "Compare Products" page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessAddMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessAddMessage.php
index a87663f7b09a8..17915bc28a3bc 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessAddMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessAddMessage.php
@@ -14,14 +14,11 @@
*/
class AssertProductCompareSuccessAddMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You added product %s to the comparison list.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'You added product %s to the comparison list.';
/**
* Assert success message is presented on page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveAllProductsMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveAllProductsMessage.php
index 9510c30840757..2ffa8de9f8a53 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveAllProductsMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveAllProductsMessage.php
@@ -13,14 +13,11 @@
*/
class AssertProductCompareSuccessRemoveAllProductsMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You cleared the comparison list.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'You cleared the comparison list.';
/**
* Assert message is appeared on "Compare Products" page.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveMessage.php
index cd9b0426ea817..a69502f3ac415 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCompareSuccessRemoveMessage.php
@@ -15,14 +15,11 @@
*/
class AssertProductCompareSuccessRemoveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You removed product %s from the comparison list.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You removed product %s from the comparison list.';
/**
* Assert message is appeared on "Compare Products" block on myAccount page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCustomOptionsOnProductPage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCustomOptionsOnProductPage.php
index cba8f3087a17a..c619e0f81e969 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCustomOptionsOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCustomOptionsOnProductPage.php
@@ -15,12 +15,9 @@
*/
class AssertProductCustomOptionsOnProductPage extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped field for custom options
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateForm.php
index 4888cf2551631..24117c0290173 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateForm.php
@@ -10,12 +10,16 @@
use Mtf\Fixture\FixtureInterface;
/**
- * Class AssertProductDuplicateForm
+ * Assert form data equals fixture data.
*/
class AssertProductDuplicateForm extends AssertProductForm
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
- * Formatting options for numeric values
+ * Formatting options for numeric values.
*
* @var array
*/
@@ -38,14 +42,7 @@ class AssertProductDuplicateForm extends AssertProductForm
];
/**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
- /**
- * Assert form data equals fixture data
+ * Assert form data equals fixture data.
*
* @param FixtureInterface $product
* @param CatalogProductIndex $productGrid
@@ -68,7 +65,7 @@ public function processAssert(
}
/**
- * Prepares fixture data for comparison
+ * Prepares fixture data for comparison.
*
* @param array $data
* @param array $sortFields [optional]
@@ -97,18 +94,33 @@ function (&$item, $key, $formattingOptions) {
$compareData['status'] = 'Product offline';
}
if (isset($compareData['quantity_and_stock_status']['qty'])) {
- $compareData['quantity_and_stock_status']['qty'] = 0;
+ $compareData['quantity_and_stock_status']['qty'] = '';
+ $compareData['quantity_and_stock_status']['is_in_stock'] = 'Out of Stock';
}
if (isset($compareData['special_price'])) {
$compareData['special_price'] = ['special_price' => $compareData['special_price']];
}
$compareData['sku'] .= '-1';
+ $compareData['url_key'] = $this->prepareUrlKey($compareData['url_key']);
return parent::prepareFixtureData($compareData, $sortFields);
}
/**
- * Returns a string representation of the object
+ * Prepare url key.
+ *
+ * @param string $urlKey
+ * @return string
+ */
+ protected function prepareUrlKey($urlKey)
+ {
+ preg_match("~\d+$~", $urlKey, $matches);
+ $key = intval($matches[0]) + 1;
+ return str_replace($matches[0], $key, $urlKey);
+ }
+
+ /**
+ * Returns a string representation of the object.
*
* @return string
*/
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateIsNotDisplayingOnFrontend.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateIsNotDisplayingOnFrontend.php
index 86a2abaaf6e42..d04c3b310107e 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateIsNotDisplayingOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateIsNotDisplayingOnFrontend.php
@@ -12,12 +12,9 @@
*/
class AssertProductDuplicateIsNotDisplayingOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that product duplicate is not displayed on front-end
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateMessage.php
index 732a11a8f1406..6657740a35247 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicateMessage.php
@@ -13,18 +13,15 @@
*/
class AssertProductDuplicateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const DUPLICATE_MESSAGE = 'You duplicated the product.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Checking the output message successful product duplication
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicatedInGrid.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicatedInGrid.php
index a9b80267f4bfe..d9db6bcf1e131 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicatedInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductDuplicatedInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertProductDuplicatedInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that duplicated product is found by sku and has correct product type, product template,
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductForm.php
index 75c3a34e9ebef..9cf3ff6546f4d 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductForm.php
@@ -15,6 +15,10 @@
*/
class AssertProductForm extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* List skipped fixture fields in verify
*
@@ -44,13 +48,6 @@ class AssertProductForm extends AbstractAssertForm
*/
protected $specialArray = [];
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert form data equals fixture data
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductGroupedPriceOnProductPage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductGroupedPriceOnProductPage.php
index cfd87eea3fb2f..6733686de31a6 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductGroupedPriceOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductGroupedPriceOnProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertProductGroupedPriceOnProductPage extends AbstractConstraint implements AssertPriceOnProductPageInterface
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Error message
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCart.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCart.php
index 54e27e633ad4a..b51e91662ee94 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCart.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCart.php
@@ -18,12 +18,9 @@
*/
class AssertProductInCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assertion that the product is correctly displayed in cart
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCategory.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCategory.php
index c0e98f182574f..44a62cce8d398 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCategory.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInCategory.php
@@ -16,12 +16,9 @@
*/
class AssertProductInCategory extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Checking the product in the page of its price
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInGrid.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInGrid.php
index c2b709593012d..f0ce173a43893 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Product fixture
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInStock.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInStock.php
index a23b98cff1d24..cf56a59038104 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInStock.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInStock.php
@@ -15,12 +15,9 @@
*/
class AssertProductInStock extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Text value for checking Stock Availability
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotDisplayingOnFrontend.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotDisplayingOnFrontend.php
index 07b8d331ea215..459715d46f984 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotDisplayingOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotDisplayingOnFrontend.php
@@ -19,18 +19,15 @@
*/
class AssertProductIsNotDisplayingOnFrontend extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message on the product page 404
*/
const NOT_FOUND_MESSAGE = 'Whoops, our bad...';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Product view page
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInCompareBlock.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInCompareBlock.php
index 72375b0ba7620..4d26b3c82837d 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInCompareBlock.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInCompareBlock.php
@@ -16,14 +16,11 @@
*/
class AssertProductIsNotVisibleInCompareBlock extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You have no items to compare.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You have no items to compare.';
/**
* Assert the product is not displayed on Compare Products block on my account page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInComparePage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInComparePage.php
index a576c9576da69..d9d07941436d5 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInComparePage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductIsNotVisibleInComparePage.php
@@ -15,14 +15,11 @@
*/
class AssertProductIsNotVisibleInComparePage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You have no items to compare.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You have no items to compare.';
/**
* Assert the product is not displayed on Compare Products page
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotInGrid.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotInGrid.php
index accb97b15c456..0256378ca4ba0 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product cannot be found by name and sku
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotSearchableBySku.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotSearchableBySku.php
index 9d709832dc3fb..84f3841829713 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotSearchableBySku.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotSearchableBySku.php
@@ -16,12 +16,9 @@
*/
class AssertProductNotSearchableBySku extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product cannot be found via Quick Search using searchable product attributes.
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotVisibleInCategory.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotVisibleInCategory.php
index 7dd7f2d131b1c..d5034b364c0e4 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotVisibleInCategory.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductNotVisibleInCategory.php
@@ -16,12 +16,9 @@
*/
class AssertProductNotVisibleInCategory extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product is not visible in the assigned category
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductOutOfStock.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductOutOfStock.php
index 8c80a1affb0bc..aa4b008f2eeb0 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductOutOfStock.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductOutOfStock.php
@@ -15,12 +15,9 @@
*/
class AssertProductOutOfStock extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Text value for checking Stock Availability
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductPage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductPage.php
index df10b9edceedf..e46c706950f9d 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductPage.php
@@ -17,6 +17,10 @@
*/
class AssertProductPage extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
+
/**
* Product view block on frontend page
*
@@ -31,13 +35,6 @@ class AssertProductPage extends AbstractAssertForm
*/
protected $product;
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
-
/**
* Assert that displayed product data on product page(front-end) equals passed from fixture:
* 1. Product Name
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSaveMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSaveMessage.php
index f65de789d0054..b6da8b6533765 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSaveMessage.php
@@ -13,18 +13,15 @@
*/
class AssertProductSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'You saved the product.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after product save
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSearchableBySku.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSearchableBySku.php
index 03e4a73005a4a..59b7c9a76ee8d 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSearchableBySku.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSearchableBySku.php
@@ -15,12 +15,9 @@
*/
class AssertProductSearchableBySku extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Displays an error message
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSimpleDuplicateForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSimpleDuplicateForm.php
index 77c8624335a95..c1a2bdac797fd 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSimpleDuplicateForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSimpleDuplicateForm.php
@@ -11,10 +11,7 @@
*/
class AssertProductSimpleDuplicateForm extends AssertProductDuplicateForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSkuAutoGenerated.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSkuAutoGenerated.php
index 0e43942ca300c..fed31f8a0068f 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSkuAutoGenerated.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSkuAutoGenerated.php
@@ -14,12 +14,9 @@
*/
class AssertProductSkuAutoGenerated extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that SKU successfully generated
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSpecialPriceOnProductPage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSpecialPriceOnProductPage.php
index 7de7dbdf053f9..35e6507222dff 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSpecialPriceOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSpecialPriceOnProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertProductSpecialPriceOnProductPage extends AbstractConstraint implements AssertPriceOnProductPageInterface
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Error message
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSuccessDeleteMessage.php
index 4ad8c8c85248f..f0925517bb7ca 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertProductSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_DELETE_MESSAGE = 'A total of %d record(s) have been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after deleting product success message.
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateForm.php
index bbd8ceff87f6f..9411b80d97d4a 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateForm.php
@@ -17,12 +17,9 @@
*/
class AssertProductTemplateForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after save a product template on edit product set page displays:
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateGroupOnProductForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateGroupOnProductForm.php
index 3777c07060762..1d798a8be839d 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateGroupOnProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateGroupOnProductForm.php
@@ -5,14 +5,15 @@
namespace Magento\Catalog\Test\Constraint;
+use Mtf\ObjectManager;
+use Mtf\Fixture\FixtureFactory;
+use Mtf\Constraint\AbstractConstraint;
use Magento\Catalog\Test\Fixture\CatalogAttributeSet;
-use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
use Magento\Catalog\Test\Fixture\CatalogProductSimple;
-use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
-use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
+use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew;
-use Mtf\Constraint\AbstractConstraint;
-use Mtf\Fixture\FixtureFactory;
+use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
+use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
/**
* Class AssertProductTemplateGroupOnProductForm
@@ -21,12 +22,9 @@
*/
class AssertProductTemplateGroupOnProductForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that created product template:
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateInGrid.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateInGrid.php
index bb12891c2ffc9..5116d9a9ff11c 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductTemplateInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that new product template displays in Product Templates grid
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateNotInGrid.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateNotInGrid.php
index a96082c06e304..7a6be9184a3a1 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductTemplateNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product template is not displayed in Product Templates grid
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateOnProductForm.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateOnProductForm.php
index 821d50f24a4ec..4731c5dd97f73 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateOnProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateOnProductForm.php
@@ -20,12 +20,9 @@
*/
class AssertProductTemplateOnProductForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that created product template:
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessDeleteMessage.php
index 3aa72d40432dc..1b7a0e19d2c01 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertProductTemplateSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_DELETE_MESSAGE = 'The attribute set has been removed.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after deleting product template success delete message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessSaveMessage.php
index 6011b388422a6..e40c4e377f52f 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTemplateSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertProductTemplateSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'You saved the attribute set.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after save a product template "You saved the attribute set." successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTierPriceOnProductPage.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTierPriceOnProductPage.php
index 3213b146c037f..252b0a6454cf8 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTierPriceOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductTierPriceOnProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertProductTierPriceOnProductPage extends AbstractConstraint implements AssertPriceOnProductPageInterface
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Error message
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductView.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductView.php
index 5d880ff5b31e6..806c7be578f8b 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductView.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductView.php
@@ -17,12 +17,9 @@
*/
class AssertProductView extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @param CatalogProductView $catalogProductView
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductVisibleInCategory.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductVisibleInCategory.php
index 4c209e067cdee..6468e0b47f829 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductVisibleInCategory.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductVisibleInCategory.php
@@ -16,12 +16,9 @@
*/
class AssertProductVisibleInCategory extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Displays an error message
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertRelatedProductsSection.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertRelatedProductsSection.php
index 516100eb59b82..91f38bcd8c3e4 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertRelatedProductsSection.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertRelatedProductsSection.php
@@ -17,12 +17,9 @@
*/
class AssertRelatedProductsSection extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product is displayed in related products section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUpSellsProductsSection.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUpSellsProductsSection.php
index 4a6bac3aaeaf5..a9bc575d105c2 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUpSellsProductsSection.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUpSellsProductsSection.php
@@ -17,12 +17,9 @@
*/
class AssertUpSellsProductsSection extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product is displayed in up-sell section
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUsedSuperAttributeImpossibleDeleteMessages.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUsedSuperAttributeImpossibleDeleteMessages.php
index 3637c11d1e884..ac7bbc7a407b6 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUsedSuperAttributeImpossibleDeleteMessages.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertUsedSuperAttributeImpossibleDeleteMessages.php
@@ -14,18 +14,15 @@
*/
class AssertUsedSuperAttributeImpossibleDeleteMessages extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Impossible to delete message
*/
const ERROR_DELETE_MESSAGE = 'This attribute is used in configurable products.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that it's impossible to delete configurable attribute that is used in created configurable product
*
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.php
index 0539908aa7ce5..51e5b73d7c450 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.php
@@ -493,6 +493,7 @@ public function __construct(
protected $id = [
'attribute_code' => 'id',
'backend_type' => 'virtual',
+ 'group' => null,
];
protected $type_id = [
@@ -593,6 +594,7 @@ public function __construct(
protected $is_virtual = [
'attribute_code' => 'is_virtual',
'backend_type' => 'virtual',
+ 'group' => 'product-details',
];
protected $attributes = [
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.xml b/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.xml
index b19b3a3dcb062..85a48583b0da8 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.xml
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.xml
@@ -385,6 +385,7 @@
type_idvirtual
+ attribute_set_id
@@ -451,6 +452,7 @@
is_virtualvirtual
+ product-detailsattributes
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple/CustomOptions.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple/CustomOptions.php
index 1e6ed9bfacbad..7736b6917964c 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple/CustomOptions.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple/CustomOptions.php
@@ -208,13 +208,13 @@ protected function getPreset($name)
'type' => 'Drop-down',
'options' => [
[
- 'title' => 'Test1 %isolation%',
+ 'title' => 'Test3-1 %isolation%',
'price' => 110.01,
'price_type' => 'Percent',
'sku' => 'sku2_%isolation%',
],
[
- 'title' => 'Test2 %isolation%',
+ 'title' => 'Test3-2 %isolation%',
'price' => 210.02,
'price_type' => 'Fixed',
'sku' => 'sku3_%isolation%'
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/CatalogProductSimple/Curl.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/CatalogProductSimple/Curl.php
index 5cda35666abff..e2f2dae1e8917 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/CatalogProductSimple/Curl.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/CatalogProductSimple/Curl.php
@@ -231,6 +231,9 @@ protected function prepareData(FixtureInterface $fixture, $prefix = null)
$fields += $fields['attributes'];
unset($fields['attributes']);
}
+ if (isset($fields['custom_attribute'])) {
+ $fields[$fields['custom_attribute']['code']] = $fields['custom_attribute']['value'];
+ }
$fields = $this->prepareStockData($fields);
$fields = $prefix ? [$prefix => $fields] : $fields;
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category/DeleteCategoryEntityTest.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category/DeleteCategoryEntityTest.php
index eccfa2397e59c..e337834ed3c59 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category/DeleteCategoryEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Category/DeleteCategoryEntityTest.php
@@ -64,6 +64,7 @@ public function __inject(CatalogCategoryIndex $catalogCategoryIndex, CatalogCate
*/
public function test(CatalogCategory $category)
{
+ $this->markTestIncomplete('MAGETWO-31723');
$category->persist();
$this->catalogCategoryIndex->open();
$this->catalogCategoryIndex->getTreeCategories()->selectCategory($category);
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AbstractCompareProductsTest.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AbstractCompareProductsTest.php
index 38a1d175b922d..96916f5d25fa4 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AbstractCompareProductsTest.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AbstractCompareProductsTest.php
@@ -17,69 +17,70 @@
use Mtf\TestCase\Injectable;
/**
- * Class AbstractCompareProductsTest
- * Abstract class for compare products class
+ * Abstract class for compare products class.
+ *
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
abstract class AbstractCompareProductsTest extends Injectable
{
/**
- * Array products
+ * Array products.
*
* @var array
*/
protected $products;
/**
- * Cms index page
+ * Cms index page.
*
* @var CmsIndex
*/
protected $cmsIndex;
/**
- * Browser
+ * Browser.
*
* @var Browser
*/
protected $browser;
/**
- * Catalog product compare page
+ * Catalog product compare page.
*
* @var CatalogProductCompare
*/
protected $catalogProductCompare;
/**
- * Catalog product page
+ * Catalog product page.
*
* @var CatalogProductView
*/
protected $catalogProductView;
/**
- * Customer login page
+ * Customer login page.
*
* @var CustomerAccountLogin
*/
protected $customerAccountLogin;
/**
- * Fixture factory
+ * Fixture factory.
*
* @var FixtureFactory
*/
protected $fixtureFactory;
/**
- * Fixture customer
+ * Fixture customer.
*
* @var CustomerInjectable
*/
protected $customer;
/**
- * Prepare data
+ * Prepare data.
*
* @param FixtureFactory $fixtureFactory
* @param CustomerInjectable $customer
@@ -93,7 +94,7 @@ public function __prepare(FixtureFactory $fixtureFactory, CustomerInjectable $cu
}
/**
- * Injection data
+ * Injection data.
*
* @param CmsIndex $cmsIndex
* @param CatalogProductView $catalogProductView
@@ -114,7 +115,7 @@ public function __inject(
}
/**
- * Login customer
+ * Login customer.
*
* @return void
*/
@@ -127,7 +128,7 @@ protected function loginCustomer()
}
/**
- * Create products
+ * Create products.
*
* @param string $products
* @return array
@@ -145,7 +146,7 @@ protected function createProducts($products)
}
/**
- * Add products to compare list
+ * Add products to compare list.
*
* @param array $products
* @param AbstractConstraint $assert
@@ -163,7 +164,7 @@ protected function addProducts(array $products, AbstractConstraint $assert = nul
}
/**
- * Perform assert
+ * Perform assert.
*
* @param AbstractConstraint $assert
* @param InjectableFixture $product
@@ -171,10 +172,7 @@ protected function addProducts(array $products, AbstractConstraint $assert = nul
*/
protected function productCompareAssert(AbstractConstraint $assert, InjectableFixture $product)
{
- $assert->configure(
- $this,
- ['catalogProductView' => $this->catalogProductView, 'product' => $product]
- );
+ $assert->configure(['catalogProductView' => $this->catalogProductView, 'product' => $product]);
\PHPUnit_Framework_Assert::assertThat($this->getName(), $assert);
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AddCompareProductsTest/test.csv b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AddCompareProductsTest/test.csv
index e10a6ff408f5d..b632986c64951 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AddCompareProductsTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/AddCompareProductsTest/test.csv
@@ -1,5 +1,5 @@
-"products";"constraint";"isCustomerLoggedIn"
-"catalogProductSimple::simple_for_composite_products";"assertProductCompareItemsLink, assertProductComparePage, assertProductCompareBlockOnCmsPage";"No"
-"catalogProductSimple::simple_for_composite_products,bundleProduct::bundle_dynamic_product";"assertProductCompareItemsLink, assertProductComparePage";"No"
-"configurableProductInjectable::default";"assertProductCompareItemsLink, assertProductComparePage, assertProductCompareBlockOnCmsPage";"Yes"
-"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"assertProductCompareItemsLink, assertProductComparePage";"Yes"
+"products";"constraint";"isCustomerLoggedIn";"issue"
+"catalogProductSimple::simple_for_composite_products";"assertProductCompareItemsLink, assertProductComparePage, assertProductCompareBlockOnCmsPage";"No";""
+"catalogProductSimple::simple_for_composite_products,bundleProduct::bundle_dynamic_product";"assertProductCompareItemsLink, assertProductComparePage";"No";""
+"configurableProductInjectable::default";"assertProductCompareItemsLink, assertProductComparePage, assertProductCompareBlockOnCmsPage";"Yes";""
+"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"assertProductCompareItemsLink, assertProductComparePage";"Yes";"Bug: MAGETWO-8719"
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ClearAllCompareProductsTest/test.csv b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ClearAllCompareProductsTest/test.csv
index 1cc2b68ae5755..34053da035dcc 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ClearAllCompareProductsTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ClearAllCompareProductsTest/test.csv
@@ -1,2 +1,2 @@
-"config/dataSet";"products";"constraint"
-"compare_products";"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"assertProductCompareSuccessRemoveAllProductsMessage, assertProductCompareItemsLinkIsAbsent, assertProductCompareRemoveLastProductMessage, assertProductIsNotVisibleInCompareBlock"
+"config/dataSet";"products";"constraint";"issue"
+"compare_products";"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"assertProductCompareSuccessRemoveAllProductsMessage, assertProductCompareItemsLinkIsAbsent, assertProductCompareRemoveLastProductMessage, assertProductIsNotVisibleInCompareBlock";"Bug: MAGETWO-8719"
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DeleteCompareProductsTest/test.csv b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DeleteCompareProductsTest/test.csv
index c9f78b2423272..42e759da8f799 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DeleteCompareProductsTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DeleteCompareProductsTest/test.csv
@@ -1,4 +1,4 @@
-"products";"removeProductIndex";"isCustomerLoggedIn";"constraint"
-"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"1";"No";"assertProductCompareSuccessRemoveMessage, assertProductIsNotVisibleInComparePage, assertProductIsNotVisibleInCompareBlock"
-"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"6";"Yes";"assertProductCompareSuccessRemoveMessage, assertProductIsNotVisibleInComparePage, assertProductIsNotVisibleInCompareBlock"
-"bundleProduct::bundle_dynamic_product";"1";"Yes";"assertProductCompareSuccessRemoveMessage, assertProductCompareRemoveLastProductMessage, assertProductIsNotVisibleInCompareBlock, assertProductCompareItemsLinkIsAbsent"
+"products";"removeProductIndex";"isCustomerLoggedIn";"constraint";"issue"
+"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"1";"No";"assertProductCompareSuccessRemoveMessage, assertProductIsNotVisibleInComparePage, assertProductIsNotVisibleInCompareBlock";"Bug: MAGETWO-8719"
+"catalogProductSimple::simple_for_composite_products,catalogProductVirtual::default,giftCardProduct::giftcard_product_with_price,downloadableProductInjectable::default,groupedProductInjectable::grouped_product_with_price,configurableProductInjectable::default,bundleProduct::bundle_dynamic_product,bundleProduct::bundle_fixed_product";"6";"Yes";"assertProductCompareSuccessRemoveMessage, assertProductIsNotVisibleInComparePage, assertProductIsNotVisibleInCompareBlock";"Bug: MAGETWO-8719"
+"bundleProduct::bundle_dynamic_product";"1";"Yes";"assertProductCompareSuccessRemoveMessage, assertProductCompareRemoveLastProductMessage, assertProductIsNotVisibleInCompareBlock, assertProductCompareItemsLinkIsAbsent";""
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DuplicateProductEntityTest.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DuplicateProductEntityTest.php
index 82504586baec6..08b197bfb73ec 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DuplicateProductEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/DuplicateProductEntityTest.php
@@ -12,8 +12,6 @@
use Mtf\TestCase\Injectable;
/**
- * Test Creation for DuplicateProductEntity
- *
* Test Flow:
*
* Precondition:
@@ -32,35 +30,35 @@
class DuplicateProductEntityTest extends Injectable
{
/**
- * Category fixture
+ * Category fixture.
*
* @var CatalogCategory
*/
protected $category;
/**
- * Product page with a grid
+ * Product page with a grid.
*
* @var CatalogProductIndex
*/
protected $productGrid;
/**
- * Page to update a product
+ * Page to update a product.
*
* @var CatalogProductEdit
*/
protected $editProductPage;
/**
- * Fixture factory
+ * Fixture factory.
*
* @var FixtureFactory
*/
protected $fixtureFactory;
/**
- * Prepare data
+ * Prepare data.
*
* @param CatalogCategory $category
* @param CatalogProductIndex $productGrid
@@ -82,27 +80,27 @@ public function __prepare(
}
/**
- * Run test duplicate product entity
+ * Run test duplicate product entity.
*
* @param string $productType
* @return array
*/
public function test($productType)
{
- $this->markTestIncomplete("MAGETWO-28138");
// Precondition
$product = $this->createProduct($productType);
// Steps
$filter = ['sku' => $product->getSku()];
- $this->productGrid->open()->getProductGrid()->searchAndOpen($filter);
+ $this->productGrid->open();
+ $this->productGrid->getProductGrid()->searchAndOpen($filter);
$this->editProductPage->getFormPageActions()->saveAndDuplicate();
return ['product' => $product];
}
/**
- * Creating a product according to the type of
+ * Creating a product according to the type of.
*
* @param string $productType
* @return array
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ProductTypeSwitchingOnUpdateTest/test.csv b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ProductTypeSwitchingOnUpdateTest/test.csv
index 3ec77ae260b27..afbcec37babe9 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ProductTypeSwitchingOnUpdateTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/ProductTypeSwitchingOnUpdateTest/test.csv
@@ -1,12 +1,12 @@
-"productOrigin";"product";"actionName";"constraint";"issue"
-"catalogProductSimple::default";"configurableProductInjectable::default";"-";"assertProductSaveMessage, assertProductInGrid, assertChildProductsInGrid, assertConfigurableProductForm, assertConfigurableProductPage, assertProductInStock, assertChildProductIsNotDisplayedSeparately";""
-"catalogProductSimple::default";"catalogProductVirtual::default";"-";"assertProductSaveMessage, assertProductInGrid";""
-"configurableProductInjectable::default";"catalogProductSimple::default";"deleteAttributes";"assertProductSaveMessage, assertProductInGrid";""
-"configurableProductInjectable::default";"catalogProductVirtual::default";"deleteAttributes";"assertProductSaveMessage, assertProductInGrid";""
-"catalogProductVirtual::default";"catalogProductSimple::default";"-";"assertProductSaveMessage, assertProductInGrid";""
-"catalogProductVirtual::default";"configurableProductInjectable::not_virtual_for_type_switching";"-";"assertProductSaveMessage, assertProductInGrid, assertChildProductsInGrid, assertConfigurableProductForm, assertConfigurableProductPage, assertProductInStock, assertChildProductIsNotDisplayedSeparately";""
-"catalogProductVirtual::default";"downloadableProductInjectable::default";"-";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductInStock, assertDownloadableLinksData";""
-"downloadableProductInjectable::default";"catalogProductSimple::default";"-";"assertProductSaveMessage, assertProductInGrid";""
-"downloadableProductInjectable::default";"configurableProductInjectable::not_virtual_for_type_switching";"-";"assertProductSaveMessage, assertProductInGrid, assertChildProductsInGrid, assertConfigurableProductForm, assertConfigurableProductPage, assertProductInStock, assertChildProductIsNotDisplayedSeparately";""
-"downloadableProductInjectable::default";"catalogProductVirtual::default";"clearDownloadableData";"assertProductSaveMessage, assertProductInGrid";"Bug: MAGETWO-29903"
-"catalogProductSimple::default";"downloadableProductInjectable::default";"-";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductInStock, assertDownloadableLinksData";""
+"productOrigin";"product";"actionName";"constraint"
+"catalogProductSimple::default";"configurableProductInjectable::default";"-";"assertProductSaveMessage, assertProductInGrid, assertChildProductsInGrid, assertConfigurableProductForm, assertConfigurableProductPage, assertProductInStock, assertChildProductIsNotDisplayedSeparately"
+"catalogProductSimple::default";"catalogProductVirtual::default";"-";"assertProductSaveMessage, assertProductInGrid"
+"configurableProductInjectable::default";"catalogProductSimple::default";"deleteAttributes";"assertProductSaveMessage, assertProductInGrid"
+"configurableProductInjectable::default";"catalogProductVirtual::default";"deleteAttributes";"assertProductSaveMessage, assertProductInGrid"
+"catalogProductVirtual::default";"catalogProductSimple::default";"-";"assertProductSaveMessage, assertProductInGrid"
+"catalogProductVirtual::default";"configurableProductInjectable::not_virtual_for_type_switching";"-";"assertProductSaveMessage, assertProductInGrid, assertChildProductsInGrid, assertConfigurableProductForm, assertConfigurableProductPage, assertProductInStock, assertChildProductIsNotDisplayedSeparately"
+"catalogProductVirtual::default";"downloadableProductInjectable::default";"-";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductInStock, assertDownloadableLinksData"
+"downloadableProductInjectable::default";"catalogProductSimple::default";"-";"assertProductSaveMessage, assertProductInGrid"
+"downloadableProductInjectable::default";"configurableProductInjectable::not_virtual_for_type_switching";"-";"assertProductSaveMessage, assertProductInGrid, assertChildProductsInGrid, assertConfigurableProductForm, assertConfigurableProductPage, assertProductInStock, assertChildProductIsNotDisplayedSeparately"
+"downloadableProductInjectable::default";"catalogProductVirtual::default";"clearDownloadableData";"assertProductSaveMessage, assertProductInGrid"
+"catalogProductSimple::default";"downloadableProductInjectable::default";"-";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductInStock, assertDownloadableLinksData"
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/UpdateVirtualProductEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/UpdateVirtualProductEntityTest/test.csv
index 8c4e634beabb1..c7ce0a25c7ea6 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/UpdateVirtualProductEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/UpdateVirtualProductEntityTest/test.csv
@@ -1,5 +1,5 @@
"product/data/name";"product/data/sku";"product/data/price/value";"product/data/tax_class_id/dataSet";"product/data/quantity_and_stock_status/qty";"product/data/is_virtual";"product/data/category_ids/presets";"product/data/group_price/preset";"product/data/special_price";"product/data/tier_price/preset";"product/data/quantity_and_stock_status/is_in_stock";"product/data/custom_options/preset";"product/data/visibility";"constraint"
-"VirtualProduct %isolation%";"virtual_sku_%isolation%";"99.99";"None";"999";"Yes";"default_subcategory";"-";"-";"MAGETWO-23002";"In Stock";"-";"Catalog";"assertProductSaveMessage, assertProductInGrid, assertProductForm, assertProductPage, assertProductVisibleInCategory, assertProductInCategory, assertProductTierPriceOnProductPage, assertProductSearchableBySku "
+"VirtualProduct %isolation%";"virtual_sku_%isolation%";"99.99";"None";"999";"Yes";"default_subcategory";"-";"-";"MAGETWO-23002";"In Stock";"-";"Catalog";"assertProductSaveMessage, assertProductInGrid, assertProductForm, assertProductPage, assertProductVisibleInCategory, assertProductInCategory, assertProductTierPriceOnProductPage, assertProductSearchableBySku"
"virtual_product_%isolation%";"virtual_sku_%isolation%";"120.00";"Taxable Goods";"999";"Yes";"-";"-";"45";"-";"In Stock";"-";"Catalog, Search";"assertProductSaveMessage, assertProductInGrid, assertProductForm, assertProductPage, assertProductVisibleInCategory, assertProductInCategory, assertProductPage, assertProductSpecialPriceOnProductPage, assertProductSearchableBySku"
"VirtualProduct %isolation%";"virtual_sku_%isolation%";"185.00";"None";"999";"Yes";"default_subcategory";"-";"-";"MAGETWO-23002";"Out of Stock";"-";"Catalog, Search";"assertProductSaveMessage, assertProductInGrid, assertProductForm, assertProductPage, assertProductVisibleInCategory, assertProductPage, assertProductOutOfStock, assertProductTierPriceOnProductPage, assertProductSearchableBySku"
"virtual_product_%isolation%";"virtual_sku_%isolation%";"99.99";"Taxable Goods";"-";"Yes";"-";"-";"-";"-";"Out of Stock";"-";"Search";"assertProductSaveMessage, assertProductInGrid, assertProductForm, assertProductPage, assertProductOutOfStock, assertProductSearchableBySku"
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityFromProductPageTest/test.csv b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityFromProductPageTest/test.csv
index fee0264704c24..85c887a70ea56 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityFromProductPageTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityFromProductPageTest/test.csv
@@ -1,5 +1,5 @@
-"attribute/data/frontend_label";"attribute/data/frontend_input";"attribute/data/options/preset";"attribute/data/is_required";"attribute/data/attribute_code";"attribute/data/is_global";"attribute/data/default_value_text";"attribute/data/default_value_textarea";"attribute/data/is_unique";"attribute/data/is_configurable";"attribute/data/manage_frontend_label";"attribute/data/is_searchable";"attribute/data/is_visible_in_advanced_search";"attribute/data/is_comparable";"attribute/data/is_filterable";"attribute/data/is_filterable_in_search";"attribute/data/is_used_for_promo_rules";"attribute/data/is_html_allowed_on_front";"attribute/data/is_visible_on_front";"attribute/data/used_in_product_listing";"attribute/data/used_for_sort_by";"constraint";"issue"
-"Text_Field_Admin_%isolation%";"Text Field";"-";"No";"attr_text_%isolation%";"Global";"default_value_text%isolation%";"-";"Yes";"-";"-";"Yes";"Yes";"Yes";"-";"-";"-";"Yes";"Yes";"-";"Yes";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsGlobal, assertProductAttributeDisplayingOnFrontend, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsComparable, assertProductAttributeIsHtmlAllowed, assertProductAttributeIsUsedInSortOnFrontend";""
-"Dropdown_Admin_%isolation%";"Dropdown";"default";"No";"attr_dropdown_%isolation%";"Global";"-";"-";"-";"Yes";"-";"-";"-";"-";"Filterable (with results)";"Yes";"-";"-";"-";"-";"-";"assertProductAttributeIsFilterable, assertProductAttributeIsFilterableInSearch, assertProductAttributeIsConfigurable";""
-"Text_Field_Admin_%isolation%";"Text Field";"-";"Yes";"attr_text_%isolation%";"-";"default_value_text%isolation%";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeIsRequired";""
-"Text_Field_Admin_%isolation%";"Text Field";"-";"No";"attr_text_%isolation%";"-";"default_value_text%isolation%";"-";"Yes";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeIsUnique";"BUG: MAGETWO-30474"
\ No newline at end of file
+"attribute/data/frontend_label";"attribute/data/frontend_input";"attribute/data/options/preset";"attribute/data/is_required";"attribute/data/attribute_code";"attribute/data/is_global";"attribute/data/default_value_text";"attribute/data/default_value_textarea";"attribute/data/is_unique";"attribute/data/is_configurable";"attribute/data/manage_frontend_label";"attribute/data/is_searchable";"attribute/data/is_visible_in_advanced_search";"attribute/data/is_comparable";"attribute/data/is_filterable";"attribute/data/is_filterable_in_search";"attribute/data/is_used_for_promo_rules";"attribute/data/is_html_allowed_on_front";"attribute/data/is_visible_on_front";"attribute/data/used_in_product_listing";"attribute/data/used_for_sort_by";"constraint"
+"Text_Field_Admin_%isolation%";"Text Field";"-";"No";"attr_text_%isolation%";"Global";"default_value_text%isolation%";"-";"Yes";"-";"-";"Yes";"Yes";"Yes";"-";"-";"-";"Yes";"Yes";"-";"Yes";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsGlobal, assertProductAttributeDisplayingOnFrontend, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsComparable, assertProductAttributeIsHtmlAllowed, assertProductAttributeIsUsedInSortOnFrontend"
+"Dropdown_Admin_%isolation%";"Dropdown";"default";"No";"attr_dropdown_%isolation%";"Global";"-";"-";"-";"Yes";"-";"-";"-";"-";"Filterable (with results)";"Yes";"-";"-";"-";"-";"-";"assertProductAttributeIsFilterable, assertProductAttributeIsFilterableInSearch, assertProductAttributeIsConfigurable"
+"Text_Field_Admin_%isolation%";"Text Field";"-";"Yes";"attr_text_%isolation%";"-";"default_value_text%isolation%";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeIsRequired"
+"Text_Field_Admin_%isolation%";"Text Field";"-";"No";"attr_text_%isolation%";"-";"default_value_text%isolation%";"-";"Yes";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeIsUnique"
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityTest/testCreateProductAttribute.csv b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityTest/testCreateProductAttribute.csv
index 217e673ba44a8..c17decc4632f6 100755
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityTest/testCreateProductAttribute.csv
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityTest/testCreateProductAttribute.csv
@@ -1,10 +1,10 @@
"productTemplate/dataSet";"productAttribute/data/frontend_label";"productAttribute/data/frontend_input";"productAttribute/data/options/preset";"productAttribute/data/is_required";"productAttribute/data/attribute_code";"productAttribute/data/is_global";"productAttribute/data/default_value_text";"productAttribute/data/default_value_textarea";"productAttribute/data/default_value_date/pattern";"productAttribute/data/default_value_yesno";"productAttribute/data/is_unique";"productAttribute/data/is_configurable";"productAttribute/data/manage_frontend_label";"productAttribute/data/is_searchable";"productAttribute/data/is_visible_in_advanced_search";"productAttribute/data/is_comparable";"productAttribute/data/is_filterable";"productAttribute/data/is_filterable_in_search";"productAttribute/data/is_used_for_promo_rules";"productAttribute/data/is_html_allowed_on_front";"productAttribute/data/is_visible_on_front";"productAttribute/data/used_in_product_listing";"productAttribute/data/used_for_sort_by";"constraint";"issue"
"custom_attribute_set";"Text_Field_Admin_%isolation%";"Text Field";"-";"No";"attr_textfield_%isolation%";"-";"default_value_text%isolation%";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm";""
"custom_attribute_set";"Text_Field_Admin_%isolation%";"Text Area";"-";"Yes";"attr_textarea_%isolation%";"Store View";"-";"default_value_textarea%isolation%";"-";"-";"No";"-";"Area_Field%isolation%";"Yes";"Yes";"Yes";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertProductAttributeIsRequired, assertAttributeSearchableByLabel, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsComparable";""
-"custom_attribute_set";"Date_Admin_%isolation%";"Date";"-";"No";"attr_date_%isolation%";"-";"-";"-";"n/j/y";"-";"No";"-";"Date_Store_View";"No";"No";"No";"-";"-";"-";"-";"Yes";"Yes";"Yes";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertProductAttributeIsUsedInSortOnFrontend, assertProductAttributeIsUsedPromoRules";""
+"custom_attribute_set";"Date_Admin_%isolation%";"Date";"-";"No";"attr_date_%isolation%";"-";"-";"-";"n/j/y";"-";"No";"-";"Date_Store_View";"Yes";"Yes";"No";"-";"-";"-";"-";"Yes";"Yes";"Yes";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertProductAttributeIsUsedInSortOnFrontend, assertProductAttributeIsUsedPromoRules";""
"custom_attribute_set";"Yes/No_Admin_%isolation%";"Yes/No";"-";"Yes";"attr_yesno_%isolation%";"Global";"-";"-";"-";"No";"-";"-";"Yes/No_Global";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm";""
"custom_attribute_set";"Multiple_Select_Admin_%isolation%";"Multiple Select";"default";"No";"attr_multiselect_%isolation%";"Website";"-";"-";"-";"-";"Yes";"-";"-";"Yes";"Yes";"Yes";"Filterable (with results)";"Yes";"-";"Yes";"Yes";"Yes";"-";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertProductAttributeDisplayingOnFrontend, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsComparable, assertProductAttributeIsFilterable, assertProductAttributeIsFilterableInSearch, assertAttributeSearchableByLabel, assertAttributeOptionsOnProductForm";""
"custom_attribute_set";"Dropdown_Admin_%isolation%";"Dropdown";"default";"Yes";"attr_dropdown_%isolation%";"Global";"-";"-";"-";"-";"No";"Yes";"-";"Yes";"Yes";"Yes";"Filterable (with results)";"Yes";"-";"Yes";"Yes";"Yes";"Yes";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertProductAttributeIsRequired, assertProductAttributeIsGlobal, assertProductAttributeDisplayingOnFrontend, assertProductAttributeDisplayingOnSearchForm, assertAttributeSearchableByLabel, assertProductAttributeIsComparable, assertProductAttributeIsUsedInSortOnFrontend, assertProductAttributeIsFilterable, assertProductAttributeIsConfigurable, assertProductAttributeIsFilterableInSearch, assertAttributeOptionsOnProductForm";""
-"custom_attribute_set";"Price_Admin_%isolation%";"Price";"-";"No";"attr_price_%isolation%";"-";"1000";"-";"-";"-";"No";"-";"Price_StoreView";"Yes";"Yes";"No";"Filterable (with results)";"Yes";"-";"-";"-";"-";"-";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertAttributeSearchableByLabel, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsFilterable, assertProductAttributeIsFilterableInSearch";""
+"custom_attribute_set";"Price_Admin_%isolation%";"Price";"-";"No";"attr_price_%isolation%";"-";"1000";"-";"-";"-";"No";"-";"Price_StoreView";"Yes";"Yes";"No";"Filterable (with results)";"Yes";"-";"-";"-";"-";"-";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm, assertAttributeSearchableByLabel, assertProductAttributeDisplayingOnSearchForm, assertProductAttributeIsFilterable, assertProductAttributeIsFilterableInSearch";"Bug:MAGETWO-31560"
"custom_attribute_set";"Fixed_Product_Tax_Admin_%isolation%";"Fixed Product Tax";"-";"-";"attr_fpt_code_%isolation%";"-";"-";"-";"-";"-";"-";"-";"Fixed_Product_Tax_Storeview";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeInGrid, assertAttributeForm, assertAddedProductAttributeOnProductForm";""
-"custom_attribute_set";"Text_Field_Admin_%isolation%";"Text Field";"-";"Yes";"attr_textfield_%isolation%";"Store View";"default_value_text%isolation%";"-";"-";"-";"Yes";"-";"Area_Field%isolation%";"Yes";"Yes";"Yes";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeIsUnique";"Bug: MAGETWO-30474"
\ No newline at end of file
+"custom_attribute_set";"Text_Field_Admin_%isolation%";"Text Field";"-";"Yes";"attr_textfield_%isolation%";"Store View";"default_value_text%isolation%";"-";"-";"-";"Yes";"-";"Area_Field%isolation%";"Yes";"Yes";"Yes";"-";"-";"-";"-";"-";"-";"-";"assertProductAttributeIsUnique";""
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/MoveAttributeToProductTemplateStep.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/AddAttributeToProductTemplateStep.php
similarity index 95%
rename from dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/MoveAttributeToProductTemplateStep.php
rename to dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/AddAttributeToProductTemplateStep.php
index 1b4ff42e4458d..18702297fcd8e 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/MoveAttributeToProductTemplateStep.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/AddAttributeToProductTemplateStep.php
@@ -15,7 +15,7 @@
/**
* Move attribute To attribute set.
*/
-class MoveAttributeToProductTemplateStep implements TestStepInterface
+class AddAttributeToProductTemplateStep implements TestStepInterface
{
/**
* Catalog ProductSet Index page.
@@ -77,6 +77,7 @@ public function run()
$filterAttribute = ['set_name' => $this->productTemplate->getAttributeSetName()];
$this->catalogProductSetIndex->open()->getGrid()->searchAndOpen($filterAttribute);
$this->catalogProductSetEdit->getAttributeSetEditBlock()->moveAttribute($this->attribute->getData());
+ $this->catalogProductSetEdit->getPageActions()->save();
// Create product with attribute set mentioned above:
$product = $this->fixtureFactory->createByCode(
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/AddNewAttributeFromProductPageStep.php b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/AddNewAttributeFromProductPageStep.php
index 82f01cc14645e..7eb35a2357b62 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/AddNewAttributeFromProductPageStep.php
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/TestStep/AddNewAttributeFromProductPageStep.php
@@ -46,7 +46,6 @@ public function __construct(CatalogProductEdit $catalogProductEdit, $tabName)
public function run()
{
$productForm = $this->catalogProductEdit->getProductForm();
- /** @var \Magento\Catalog\Test\Block\Adminhtml\Product\Edit\ProductTab $productDetailsTab */
$productForm->addNewAttribute($this->tabName);
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/constraint.xml
index b5d5da90aa905..1787c27b4c603 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/constraint.xml
@@ -6,34 +6,34 @@
-->
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
@@ -42,7 +42,7 @@
- low
+ low
@@ -51,7 +51,7 @@
- low
+ low
@@ -59,7 +59,7 @@
- low
+ low
@@ -68,7 +68,7 @@
- low
+ low
@@ -76,55 +76,55 @@
- middle
+ middle
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- high
+ high
@@ -135,33 +135,33 @@
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- low
+ low
- low
+ low
@@ -174,46 +174,46 @@
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- middle
+ middle
@@ -224,13 +224,13 @@
- high
+ high
- middle
+ middle
- middle
+ middle
@@ -240,13 +240,13 @@
- high
+ high
- middle
+ middle
- middle
+ middle
@@ -256,37 +256,37 @@
- high
+ high
- middle
+ middle
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
@@ -294,20 +294,20 @@
- low
+ low
- high
+ high
- high
+ high
@@ -316,14 +316,14 @@
- high
+ high
- high
+ high
@@ -334,109 +334,109 @@
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- high
+ high
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- high
+ high
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/scenario.xml b/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/scenario.xml
index 13e575ac29437..8a27acb812334 100644
--- a/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/scenario.xml
+++ b/dev/tests/functional/tests/app/Magento/Catalog/Test/etc/scenario.xml
@@ -51,12 +51,9 @@
saveAttribute
- moveAttributeToProductTemplate
+ addAttributeToProductTemplate
-
- saveProductTemplate
-
-
+
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockAbsent.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockAbsent.php
index ea86541afaf1a..1bd052696c8fb 100755
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockAbsent.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockAbsent.php
@@ -17,12 +17,9 @@
*/
class AssertCatalogEventBlockAbsent extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Category Page on Frontend
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockVisible.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockVisible.php
index 64b417ac637d0..19d2f84754677 100755
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockVisible.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventBlockVisible.php
@@ -18,12 +18,9 @@
*/
class AssertCatalogEventBlockVisible extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Category Page on Frontend
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventInGrid.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventInGrid.php
index 6c4da6d6e7b37..09e1a7d1d1347 100755
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertCatalogEventInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Catalog Event fixture
@@ -83,9 +80,9 @@ public function processAssert(
$sortOrder = "";
}
- $dateStart = strftime("%b %#d, %Y", $dateStart);
+ $dateStart = strftime("%b %e, %Y", $dateStart);
$filter['start_on'] = $dateStart;
- $dateEnd = strftime("%b %#d, %Y", $dateEnd);
+ $dateEnd = strftime("%b %e, %Y", $dateEnd);
$filter['end_on'] = $dateEnd;
$filter = [
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsClosed.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsClosed.php
index d5822b7485baa..f847d9b2c3ca1 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsClosed.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsClosed.php
@@ -11,12 +11,9 @@
*/
class AssertCatalogEventIsClosed extends AssertCatalogEventStatus
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Event status 'Closed' on category/product pages
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsOpen.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsOpen.php
index 698a11ac98e44..1a751e1391d4e 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsOpen.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsOpen.php
@@ -11,12 +11,9 @@
*/
class AssertCatalogEventIsOpen extends AssertCatalogEventStatus
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Event status 'Sale Ends In' on category/product pages
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsUpcoming.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsUpcoming.php
index efd4a1ec10d26..8a50479bc84ad 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsUpcoming.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventIsUpcoming.php
@@ -11,12 +11,9 @@
*/
class AssertCatalogEventIsUpcoming extends AssertCatalogEventStatus
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Event status 'Coming Soon' on category/product pages
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventStatus.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventStatus.php
index 44fc6fce5fbe0..bac83ea8f909e 100755
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventStatus.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventStatus.php
@@ -18,12 +18,9 @@
*/
abstract class AssertCatalogEventStatus extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Catalog Event status
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessCreateMessage.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessCreateMessage.php
index 3adb5876121d3..8abd1f0562bfd 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessCreateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessCreateMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCatalogEventSuccessCreateMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the event.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You saved the event.';
/**
* Assert that message "You saved the event." is present on Event page
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessDeleteMessage.php
index d8a9e31d72326..e5ca5545268b6 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertCatalogEventSuccessDeleteMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCatalogEventSuccessDeleteMessage extends AbstractConstraint
{
- const DELETE_MESSAGE = 'You deleted the event.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const DELETE_MESSAGE = 'You deleted the event.';
/**
* Assert that message "You deleted the event." is present on Event page
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertWidgetCatalogEvent.php b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertWidgetCatalogEvent.php
index b67e75fd5db7e..18e25e50f3e92 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertWidgetCatalogEvent.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/Constraint/AssertWidgetCatalogEvent.php
@@ -18,12 +18,9 @@
*/
class AssertWidgetCatalogEvent extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that widget catalog event carousel is present on category page and link "Go To Sale" on widget redirects
diff --git a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/etc/constraint.xml
index fe98a0196ab89..43f9c80a693e7 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CatalogEvent/Test/etc/constraint.xml
@@ -8,20 +8,20 @@
- low
+ low
- low
+ low
- low
+ low
@@ -31,7 +31,7 @@
- low
+ low
@@ -41,7 +41,7 @@
- low
+ low
@@ -51,7 +51,7 @@
- low
+ low
@@ -61,19 +61,19 @@
- low
+ low
- low
+ low
- low
+ low
@@ -82,6 +82,6 @@
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Block/Adminhtml/Promo/Catalog.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Block/Adminhtml/Promo/Catalog.php
index 01ae06dc07d55..3390387e5853d 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Block/Adminhtml/Promo/Catalog.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Block/Adminhtml/Promo/Catalog.php
@@ -10,20 +10,26 @@
use Mtf\Client\Element\Locator;
/**
- * Class Catalog
- * Backend catalog price rule grid
+ * Backend catalog price rule grid.
*/
class Catalog extends Grid
{
/**
- * An element locator which allows to select first entity in grid
+ * An element locator which allows to select first entity in grid.
*
* @var string
*/
protected $editLink = '#promo_catalog_grid_table tbody tr:first-child td';
/**
- * Filters array mapping
+ * First row selector.
+ *
+ * @var string
+ */
+ protected $firstRowSelector = '//tr[@data-role="row"]/td[@data-column="rule_id"]';
+
+ /**
+ * Filters array mapping.
*
* @var array
*/
@@ -51,7 +57,7 @@ class Catalog extends Grid
];
/**
- * Return row with given catalog price rule name
+ * Return row with given catalog price rule name.
*
* @param string $ruleName
* @return Element
@@ -62,7 +68,7 @@ public function getGridRow($ruleName)
}
/**
- * Return id of catalog price rule with given name
+ * Return id of catalog price rule with given name.
*
* @param string $ruleName
* @return string
@@ -73,7 +79,7 @@ public function getCatalogPriceId($ruleName)
}
/**
- * Check if specific row exists in grid
+ * Check if specific row exists in grid.
*
* @param array $filter
* @param bool $isSearchable
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedCatalogPage.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedCatalogPage.php
index 9890b9cd69853..f88141e403788 100755
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedCatalogPage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedCatalogPage.php
@@ -15,12 +15,9 @@
*/
class AssertCatalogPriceRuleAppliedCatalogPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that Catalog Price Rule is applied for product(s) in Catalog
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedProductPage.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedProductPage.php
index 116fe146cced6..92fdf8f0d6feb 100755
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertCatalogPriceRuleAppliedProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that Catalog Price Rule is applied & it impacts on product's discount price on Product page
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedShoppingCart.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedShoppingCart.php
index c087d660dabcb..c9165158602b7 100755
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedShoppingCart.php
@@ -17,12 +17,9 @@
*/
class AssertCatalogPriceRuleAppliedShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that Catalog Price Rule is applied for product(s) in Shopping Cart
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleForm.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleForm.php
index f2ac5427c71e8..c8a093983bdb8 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleForm.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleForm.php
@@ -15,12 +15,9 @@
*/
class AssertCatalogPriceRuleForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed Catalog Price Rule data on edit page equals passed from fixture.
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleInGrid.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleInGrid.php
index beb9649650433..d44220288676e 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertCatalogPriceRuleInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that data in grid on Catalog Price Rules page according to fixture
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNotInGrid.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNotInGrid.php
index 38bfdb243687f..794ebf12cf43f 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertCatalogPriceRuleNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Catalog Price Rule is not presented in grid and cannot be found using ID, Rule name
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNoticeMessage.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNoticeMessage.php
index c1ac9598206d3..222ac7beaf197 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNoticeMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleNoticeMessage.php
@@ -13,16 +13,13 @@
*/
class AssertCatalogPriceRuleNoticeMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
const NOTICE_MESSAGE_RULES = 'There are rules that have been changed but were not applied.';
const NOTICE_MESSAGE_APPLY = ' Please, click Apply Rules in order to see immediate effect in the catalog.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that message "There are rules that have been changed but were not applied..."
* is present on page after Save (without applying Rule)
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessDeleteMessage.php
index 898095ecdd71f..338e6196fe135 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCatalogPriceRuleSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The rule has been deleted.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = 'The rule has been deleted.';
/**
* Assert that message "The rule has been deleted." is appeared on Catalog Price Rules page.
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessSaveMessage.php
index 2ea67d0961039..5a5b7fac30cf6 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCatalogPriceRuleSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The rule has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The rule has been saved.';
/**
* Assert that success message is displayed after Catalog Price Rule saved
diff --git a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/etc/constraint.xml
index e7c91a10c31b6..31c1075a6f574 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogRule/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CatalogRule/Test/etc/constraint.xml
@@ -6,13 +6,13 @@
-->
- low
+ low
- low
+ low
@@ -20,20 +20,20 @@
- low
+ low
- low
+ low
- high
+ high
@@ -42,20 +42,20 @@
- low
+ low
- low
+ low
- high
+ high
@@ -63,7 +63,7 @@
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertAdvancedSearchProductsResult.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertAdvancedSearchProductsResult.php
index fb988a54c9e0c..e7ecea285adf6 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertAdvancedSearchProductsResult.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertAdvancedSearchProductsResult.php
@@ -14,6 +14,10 @@
*/
class AssertAdvancedSearchProductsResult extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text for notice messages
*/
@@ -24,13 +28,6 @@ class AssertAdvancedSearchProductsResult extends AbstractConstraint
*/
const ERROR_MESSAGE = 'No items were found using the following search criteria.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Search results page
*
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertCatalogSearchResult.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertCatalogSearchResult.php
index 22f7d602b5771..03035ce728f13 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertCatalogSearchResult.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertCatalogSearchResult.php
@@ -13,12 +13,9 @@
*/
class AssertCatalogSearchResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that result page contains all products, according to search request, from fixture
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymMassActionNotOnFrontend.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymMassActionNotOnFrontend.php
index 901a10844f7ae..1078c8628cc8a 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymMassActionNotOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymMassActionNotOnFrontend.php
@@ -15,12 +15,9 @@
*/
class AssertSearchSynonymMassActionNotOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that you will be not redirected to url from dataset after mass delete search term
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymNotOnFrontend.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymNotOnFrontend.php
index 82e9e2fe2752e..66a345529c253 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymNotOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchSynonymNotOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertSearchSynonymNotOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that you will be not redirected to url from dataset
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermForm.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermForm.php
index da7bdbfb93162..132885d14d23f 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermForm.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermForm.php
@@ -16,12 +16,9 @@
*/
class AssertSearchTermForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after save a search term on edit term search page displays:
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermInGrid.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermInGrid.php
index 52d874cf09c50..0be98506864fb 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertSearchTermInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after save a term search on edit term search page displays:
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionNotOnFrontend.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionNotOnFrontend.php
index 33bc31bdc9b16..5571ccc2f8fee 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionNotOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionNotOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertSearchTermMassActionNotOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after mass delete a search term not redirect to url in dataset
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionsNotInGrid.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionsNotInGrid.php
index 654ca3f08b48a..c266bd3e243f0 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionsNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermMassActionsNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertSearchTermMassActionsNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after mass delete search terms on grid page are not displayed
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotInGrid.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotInGrid.php
index 41dcdd8d7dc7e..b408d176d2d4c 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertSearchTermNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after delete a search term on grid page not displayed
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotOnFrontend.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotOnFrontend.php
index 0e7271aa1b46d..581cd1488e9f3 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermNotOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertSearchTermNotOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that after delete a search term not redirect to url in dataset
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermOnFrontend.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermOnFrontend.php
index 8b1e0bf5a1272..49f557382be90 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermOnFrontend.php
@@ -17,12 +17,9 @@
*/
class AssertSearchTermOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Search block on CMS index page
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessDeleteMessage.php
index 063d3ebfd7176..b452330b1448b 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertSearchTermSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted the search.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success message is displayed after search term deleted
*
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessMassDeleteMessage.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessMassDeleteMessage.php
index 6ebbf7422aaba..56387dee5fd36 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessMassDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessMassDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertSearchTermSuccessMassDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'Total of %d record(s) were deleted';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success message is displayed after search terms were mass deleted
*
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessSaveMessage.php
index b4ab1860ac90e..bec2ac3324ebd 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertSearchTermSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'You saved the search term.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success message is displayed after search term save
*
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSynonymOnFrontend.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSynonymOnFrontend.php
index 8ebd22f29949f..d8684a2ec5855 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSynonymOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSearchTermSynonymOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertSearchTermSynonymOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that you will be redirected to url from dataset
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSuggestSearchingResult.php b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSuggestSearchingResult.php
index 9e5e3c3f242b0..c0f89989b0be2 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSuggestSearchingResult.php
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/Constraint/AssertSuggestSearchingResult.php
@@ -14,12 +14,9 @@
*/
class AssertSuggestSearchingResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Check that after input some text(e.g. product name) into search field, drop-down window is appeared.
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/TestCase/AdvancedSearchEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/TestCase/AdvancedSearchEntityTest/test.csv
index 25bbad9bcc99f..687344b622bc9 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/TestCase/AdvancedSearchEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/TestCase/AdvancedSearchEntityTest/test.csv
@@ -1,13 +1,13 @@
-"products/simple_1";"products/simple_2";"productSearch/data/name";"productSearch/data/sku";"productSearch/data/description";"productSearch/data/short_description";"productSearch/data/price/value/price_from";"productSearch/data/price/value/price_to";"constraint";"issue"
-"Yes";"-";"abc_dfj";"abc_dfj";"adc_Full";"abc_short";49;500;"assertAdvancedSearchProductsResult";""
-"Yes";"-";"abc";"-";"-";"-";"-";"-";"assertAdvancedSearchProductsResult";"MAGETWO-30318"
-"-";"Yes";"adc_123";"-";"-";"-";"-";"-";"assertAdvancedSearchProductsResult";""
-"Yes";"-";"-";"abc";"-";"-";"-";"-";"assertAdvancedSearchProductsResult";""
-"Yes";"-";"-";"abc_dfj";"-";"-";"-";"-";"assertAdvancedSearchProductsResult";""
-"Yes";"-";"-";"abc";"full";"-";"-";"-";"assertAdvancedSearchProductsResult";"MAGETWO-30318"
-"-";"Yes";"-";"-";"dfj_full";"-";"-";"-";"assertAdvancedSearchProductsResult";""
-"Yes";"-";"-";"-";"-";"short";"-";"-";"assertAdvancedSearchProductsResult";"MAGETWO-30318"
-"-";"-";"-";"-";"-";"dfj_short";"-";"-";"assertAdvancedSearchProductsResult";""
-"Yes";"-";"-";"-";"-";"-";50;50;"assertAdvancedSearchProductsResult";"MAGETWO-30318"
-"Yes";"Yes";"-";"-";"-";"-";"-";100;"assertAdvancedSearchProductsResult";"MAGETWO-30318"
-"Yes";"-";"abc_dfj";"abc_dfj";"adc_Full";"abc_short";49;50;"assertAdvancedSearchProductsResult";"MAGETWO-30318"
+"products/simple_1";"products/simple_2";"productSearch/data/name";"productSearch/data/sku";"productSearch/data/description";"productSearch/data/short_description";"productSearch/data/price/value/price_from";"productSearch/data/price/value/price_to";"constraint"
+"Yes";"-";"abc_dfj";"abc_dfj";"adc_Full";"abc_short";49;500;"assertAdvancedSearchProductsResult"
+"Yes";"-";"abc";"-";"-";"-";"-";"-";"assertAdvancedSearchProductsResult"
+"-";"Yes";"adc_123";"-";"-";"-";"-";"-";"assertAdvancedSearchProductsResult"
+"Yes";"-";"-";"abc";"-";"-";"-";"-";"assertAdvancedSearchProductsResult"
+"Yes";"-";"-";"abc_dfj";"-";"-";"-";"-";"assertAdvancedSearchProductsResult"
+"Yes";"-";"-";"abc";"adc_full";"-";"-";"-";"assertAdvancedSearchProductsResult"
+"-";"Yes";"-";"-";"dfj_full";"-";"-";"-";"assertAdvancedSearchProductsResult"
+"Yes";"-";"-";"-";"-";"abc_short";"-";"-";"assertAdvancedSearchProductsResult"
+"-";"-";"-";"-";"-";"dfj_short";"-";"-";"assertAdvancedSearchProductsResult"
+"Yes";"-";"-";"-";"-";"-";50;50;"assertAdvancedSearchProductsResult"
+"Yes";"Yes";"-";"-";"-";"-";"-";100;"assertAdvancedSearchProductsResult"
+"Yes";"-";"abc_dfj";"abc_dfj";"adc_Full";"abc_short";49;50;"assertAdvancedSearchProductsResult"
diff --git a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/etc/constraint.xml
index b5d5a966c43bf..5cb45afd90ea7 100644
--- a/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CatalogSearch/Test/etc/constraint.xml
@@ -6,21 +6,21 @@
-->
- high
+ high
- high
+ high
- high
+ high
@@ -28,7 +28,7 @@
- high
+ high
@@ -36,14 +36,14 @@
- high
+ high
- high
+ high
@@ -51,13 +51,13 @@
- high
+ high
- high
+ high
@@ -65,20 +65,20 @@
- high
+ high
- high
+ high
- high
+ high
@@ -86,7 +86,7 @@
- high
+ high
@@ -94,26 +94,26 @@
- high
+ high
- high
+ high
- high
+ high
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/CartItem.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/CartItem.php
index 326152515a195..c16fd46bb9660 100755
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/CartItem.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/CartItem.php
@@ -39,7 +39,7 @@ class CartItem extends AbstractCartItem
*
* @var string
*/
- protected $wishlistButton = '.actions .towishlist';
+ protected $wishlistButton = '.towishlist';
/**
* Quantity input selector
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Totals.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Totals.php
index a08c1320d5687..a9db2d568234b 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Totals.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Totals.php
@@ -75,7 +75,7 @@ class Totals extends Block
*
* @var string
*/
- protected $discount = '//tr[normalize-space(td)="Discount"]//span';
+ protected $discount = '//tr[normalize-space(th)="Discount"]//span';
/**
* Get shipping price including tax selector
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Billing.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Billing.php
index f127a7525187c..be98db0bcc84d 100755
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Billing.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Billing.php
@@ -69,6 +69,13 @@ public function fillBilling(
public function clickContinue()
{
$this->_rootElement->find($this->continue)->click();
- $this->waitForElementNotVisible($this->waitElement);
+ $browser = $this->browser;
+ $selector = $this->waitElement;
+ $browser->waitUntil(
+ function () use ($browser, $selector) {
+ $element = $browser->find($selector);
+ return $element->isVisible() == false ? true : null;
+ }
+ );
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Login.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Login.php
index 598d38b084600..bbc8045a33a9c 100755
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Login.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Login.php
@@ -110,6 +110,13 @@ public function loginCustomer(FixtureInterface $customer)
public function clickContinue()
{
$this->_rootElement->find($this->continue)->click();
- $this->waitForElementNotVisible($this->loadingMask);
+ $browser = $this->browser;
+ $selector = $this->loadingMask;
+ $browser->waitUntil(
+ function () use ($browser, $selector) {
+ $element = $browser->find($selector);
+ return $element->isVisible() == false ? true : null;
+ }
+ );
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Payment/Methods.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Payment/Methods.php
index 06a00f980a0da..6860ff962305c 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Payment/Methods.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Payment/Methods.php
@@ -97,6 +97,13 @@ public function selectPaymentMethod(array $payment)
public function clickContinue()
{
$this->_rootElement->find($this->continue)->click();
- $this->waitForElementNotVisible($this->waitElement);
+ $browser = $this->browser;
+ $selector = $this->waitElement;
+ $browser->waitUntil(
+ function () use ($browser, $selector) {
+ $element = $browser->find($selector);
+ return $element->isVisible() == false ? true : null;
+ }
+ );
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping/Method.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping/Method.php
index 740e62309ff2a..8d78df6e28b03 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping/Method.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping/Method.php
@@ -57,6 +57,13 @@ public function selectShippingMethod(array $method)
public function clickContinue()
{
$this->_rootElement->find($this->continue)->click();
- $this->waitForElementNotVisible($this->waitElement);
+ $browser = $this->browser;
+ $selector = $this->waitElement;
+ $browser->waitUntil(
+ function () use ($browser, $selector) {
+ $element = $browser->find($selector);
+ return $element->isVisible() == false ? true : null;
+ }
+ );
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertAddedProductToCartSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertAddedProductToCartSuccessMessage.php
index 37f9240b5ea13..7e3bf2a25091e 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertAddedProductToCartSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertAddedProductToCartSuccessMessage.php
@@ -15,18 +15,15 @@
*/
class AssertAddedProductToCartSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success add to cart message
*/
const SUCCESS_MESSAGE = 'You added %s to your shopping cart.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert success message is appeared on Shopping Cart page
*
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartIsEmpty.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartIsEmpty.php
index b8a2b0b6ded93..c3bf38ed68bc8 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartIsEmpty.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartIsEmpty.php
@@ -16,18 +16,15 @@
*/
class AssertCartIsEmpty extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
+
/**
* Text of empty cart.
*/
const TEXT_EMPTY_CART = 'You have no items in your shopping cart. Click here to continue shopping.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
-
/**
* Check that Shopping Cart is empty, opened page contains text "You have no items in your shopping cart.
* Click here to continue shopping." where 'here' is link that leads to index page
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartItemsOptions.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartItemsOptions.php
index 9d322ee6cccc6..012b8c93d959a 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartItemsOptions.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertCartItemsOptions.php
@@ -20,12 +20,9 @@
*/
class AssertCartItemsOptions extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Error message for verify options
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertGrandTotalInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertGrandTotalInShoppingCart.php
index 4f72a39ecc97a..2ebf1fdf8739d 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertGrandTotalInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertGrandTotalInShoppingCart.php
@@ -15,12 +15,9 @@
*/
class AssertGrandTotalInShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that grand total is equal to expected
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderSuccessPlacedMessage.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderSuccessPlacedMessage.php
index ec9d5fc410723..366a932b7d4f9 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderSuccessPlacedMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderSuccessPlacedMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderSuccessPlacedMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message of success checkout
*/
const SUCCESS_MESSAGE = 'Thank you for your purchase!';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success message is correct
*
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderTotalOnReviewPage.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderTotalOnReviewPage.php
index 05b0a19ab813b..3a6519e8a0149 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderTotalOnReviewPage.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertOrderTotalOnReviewPage.php
@@ -14,12 +14,9 @@
*/
class AssertOrderTotalOnReviewPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that Order Grand Total is correct on checkoutOnePage
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertPriceInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertPriceInShoppingCart.php
index e847d4a94941f..d78462b09b197 100755
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertPriceInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertPriceInShoppingCart.php
@@ -18,12 +18,9 @@
*/
class AssertPriceInShoppingCart extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that price in the shopping cart equals to expected price from data set
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductAbsentInMiniShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductAbsentInMiniShoppingCart.php
index 8f6e5bab5f11b..2330375ed3d61 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductAbsentInMiniShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductAbsentInMiniShoppingCart.php
@@ -15,12 +15,9 @@
*/
class AssertProductAbsentInMiniShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert product is absent on mini shopping cart
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductIsNotEditable.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductIsNotEditable.php
index 831e30d772b1b..b3d5a8e839135 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductIsNotEditable.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductIsNotEditable.php
@@ -14,12 +14,9 @@
*/
class AssertProductIsNotEditable extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that after adding products by sku to shopping cart products are not editable
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInMiniShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInMiniShoppingCart.php
index 666bd03faef90..3406dcd5a13e1 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInMiniShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInMiniShoppingCart.php
@@ -14,12 +14,9 @@
*/
class AssertProductPresentInMiniShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert product is present on mini shopping cart
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInShoppingCart.php
index 8972eb988c19f..e6462f1d6bd3e 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductPresentInShoppingCart.php
@@ -14,12 +14,9 @@
*/
class AssertProductPresentInShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that products are present in shopping cart
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInMiniShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInMiniShoppingCart.php
index 15afe1b503173..40965b58dba31 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInMiniShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInMiniShoppingCart.php
@@ -18,12 +18,9 @@
*/
class AssertProductQtyInMiniShoppingCart extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product quantity in the mini shopping cart is equals to expected quantity from data set
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInShoppingCart.php
index eafcb8e8254c9..9eb776fbe0441 100755
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductQtyInShoppingCart.php
@@ -18,12 +18,9 @@
*/
class AssertProductQtyInShoppingCart extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that quantity in the shopping cart is equals to expected quantity from data set
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductsAbsentInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductsAbsentInShoppingCart.php
index d6afd6ead57d4..afdc84c3e1175 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductsAbsentInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertProductsAbsentInShoppingCart.php
@@ -13,12 +13,9 @@
*/
class AssertProductsAbsentInShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that products are absent in shopping cart.
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertSubtotalInShoppingCart.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertSubtotalInShoppingCart.php
index b1737d081ff4e..714c892ebb992 100755
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertSubtotalInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/Constraint/AssertSubtotalInShoppingCart.php
@@ -18,12 +18,9 @@
*/
class AssertSubtotalInShoppingCart extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that subtotal total in the shopping cart is equals to expected total from data set
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/OnePageCheckoutTest.php b/dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/OnePageCheckoutTest.php
index 3c70d197a28bc..0a5e0983602ab 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/OnePageCheckoutTest.php
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/OnePageCheckoutTest.php
@@ -96,17 +96,16 @@ public function test()
*/
public function tearDown()
{
- $setConfigStep = $this->objectManager->create(
- 'Magento\Core\Test\TestStep\SetupConfigurationStep',
- ['configData' => $this->currentVariation['arguments']['configData'], 'rollback' => true]
- );
- $setConfigStep->run();
- $this->customerAccountLogout->open();
// Deleting exchange rates
$this->rewardRateIndexPage->open();
while ($this->rewardRateIndexPage->getRewardRateGrid()->isFirstRowVisible()) {
$this->rewardRateIndexPage->getRewardRateGrid()->openFirstRow();
$this->rewardRateNewPage->getFormPageActions()->delete();
}
+ $this->customerAccountLogout->open();
+ $this->objectManager->create(
+ 'Magento\Core\Test\TestStep\SetupConfigurationStep',
+ ['configData' => $this->currentVariation['arguments']['configData'], 'rollback' => true]
+ )->run();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Checkout/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Checkout/Test/etc/constraint.xml
index d69ba6b2b4d3a..3fe824217264b 100644
--- a/dev/tests/functional/tests/app/Magento/Checkout/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Checkout/Test/etc/constraint.xml
@@ -6,51 +6,51 @@
-->
- middle
+ middle
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentInGrid.php b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentInGrid.php
index 759cde768461a..934d76bb1a55a 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertTermAbsentInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that checkout agreement is absent in agreement grid.
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentOnCheckout.php b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentOnCheckout.php
index 448210dccd934..b7378c6ec925d 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentOnCheckout.php
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermAbsentOnCheckout.php
@@ -20,12 +20,9 @@
*/
class AssertTermAbsentOnCheckout extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Place order and verify there is no checkbox Terms and Conditions.
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermInGrid.php b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermInGrid.php
index 7b2e8e2e0c784..7b68299d51cc6 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertTermInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that checkout agreement is present in agreement grid.
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermOnCheckout.php b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermOnCheckout.php
index cefceb9faef82..60b0a2cf7ed5a 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermOnCheckout.php
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermOnCheckout.php
@@ -21,18 +21,15 @@
*/
class AssertTermOnCheckout extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Notification message
*/
const NOTIFICATION_MESSAGE = 'This is a required field.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Check that checkbox is present on the last checkout step - Order Review.
* Check that after Place order without click on checkbox "Terms and Conditions" order was not successfully placed.
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessDeleteMessage.php
index 45609ba6cf6fe..108af365a812b 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertTermSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Success terms and conditions delete message
*/
const SUCCESS_DELETE_MESSAGE = 'The condition has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after deleting Term successful delete message appears.
*
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessSaveMessage.php
index 826e7074ed2c8..5b7abc860efc1 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Constraint/AssertTermSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertTermSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Success terms and conditions save message
*/
const SUCCESS_SAVE_MESSAGE = 'The condition has been saved.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after save block successful message appears.
*
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/CreateTermEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/CreateTermEntityTest/test.csv
index 45ac149ca4243..2d45351830d47 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/CreateTermEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/CreateTermEntityTest/test.csv
@@ -1,5 +1,5 @@
-"product";"agreement/data/name";"agreement/data/is_active";"agreement/data/is_html";"agreement/data/stores/dataSet/0";"agreement/data/checkbox_text";"agreement/data/content";"shipping/shipping_service";"shipping/shipping_method";"payment/method";"constraint"
-"catalogProductSimple::default";"name%isolation%";"Enabled";"Text";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout"
-"catalogProductSimple::default";"name%isolation%";"Enabled";"HTML";"default";"test_checkbox%isolation%";"";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout"
-"catalogProductSimple::default";"name%isolation%";"Enabled";"Text";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout"
-"catalogProductSimple::default";"name%isolation%";"Disabled";"Text";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermAbsentOnCheckout"
+"product";"agreement/data/name";"agreement/data/is_active";"agreement/data/is_html";"agreement/data/stores/dataSet/0";"agreement/data/checkbox_text";"agreement/data/content";"shipping/shipping_service";"shipping/shipping_method";"payment/method";"constraint";"issue"
+"catalogProductSimple::default";"name%isolation%";"Enabled";"Text";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout";"MAGETWO-31306"
+"catalogProductSimple::default";"name%isolation%";"Enabled";"HTML";"default";"test_checkbox%isolation%";"";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout";"MAGETWO-31306"
+"catalogProductSimple::default";"name%isolation%";"Enabled";"Text";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout";"MAGETWO-31306"
+"catalogProductSimple::default";"name%isolation%";"Disabled";"Text";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermAbsentOnCheckout";""
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/UpdateTermEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/UpdateTermEntityTest/test.csv
index 5c9fa47f3d824..8b971e8284429 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/UpdateTermEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/TestCase/UpdateTermEntityTest/test.csv
@@ -1,4 +1,4 @@
-"product";"agreementOrigin/dataSet";"agreement/data/name";"agreement/data/is_active";"agreement/data/is_html";"agreement/data/stores/dataSet/0";"agreement/data/checkbox_text";"agreement/data/content";"shipping/shipping_service";"shipping/shipping_method";"payment/method";"constraint"
-"catalogProductSimple::default";"term_disabled_text";"name%isolation%";"Enabled";"HTML";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout"
-"catalogProductSimple::default";"term_disabled_html";"name%isolation%";"Enabled";"Text";"default";"test_checkbox%isolation%";"";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout"
-"catalogProductSimple::default";"term_enabled_text";"name%isolation%";"Disabled";"HTML";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermAbsentOnCheckout"
+"product";"agreementOrigin/dataSet";"agreement/data/name";"agreement/data/is_active";"agreement/data/is_html";"agreement/data/stores/dataSet/0";"agreement/data/checkbox_text";"agreement/data/content";"shipping/shipping_service";"shipping/shipping_method";"payment/method";"constraint";"issue"
+"catalogProductSimple::default";"term_disabled_text";"name%isolation%";"Enabled";"HTML";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout";"MAGETWO-31306"
+"catalogProductSimple::default";"term_disabled_html";"name%isolation%";"Enabled";"Text";"default";"test_checkbox%isolation%";"";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermOnCheckout";"MAGETWO-31306"
+"catalogProductSimple::default";"term_enabled_text";"name%isolation%";"Disabled";"HTML";"default";"test_checkbox%isolation%";"TestMessage%isolation%";"Flat Rate";"Fixed";"checkmo";"assertTermSuccessSaveMessage, assertTermInGrid, assertTermAbsentOnCheckout";""
diff --git a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/etc/constraint.xml
index 2ef9a4714aa9e..f8540733ad2da 100644
--- a/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/etc/constraint.xml
@@ -6,21 +6,21 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockDeleteMessage.php
index a8d92c224cfc3..d73e31987db72 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockDeleteMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCmsBlockDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The block has been deleted.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_DELETE_MESSAGE = 'The block has been deleted.';
/**
* Assert that after delete CMS block successful message appears
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockInGrid.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockInGrid.php
index 622b81ad3320e..ce206694c966e 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCmsBlockInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created CMS block can be found in grid via:
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotInGrid.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotInGrid.php
index bbd3cf70fb279..f702e0437617c 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCmsBlockNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created CMS block can't be found in grid via:
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotOnCategoryPage.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotOnCategoryPage.php
index 294fb449a96b3..f20eb8abc2844 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotOnCategoryPage.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockNotOnCategoryPage.php
@@ -17,12 +17,9 @@
*/
class AssertCmsBlockNotOnCategoryPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that created CMS block non visible on frontend category page
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockOnCategoryPage.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockOnCategoryPage.php
index 33fe24ee2cb00..8f8de2f6c360a 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockOnCategoryPage.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockOnCategoryPage.php
@@ -17,12 +17,9 @@
*/
class AssertCmsBlockOnCategoryPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that created CMS block displayed on frontend category page (in order to assign block to category:
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockSuccessSaveMessage.php
index 16a525b9f3541..91c9d85d0ceb9 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsBlockSuccessSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCmsBlockSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'The block has been saved.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_SAVE_MESSAGE = 'The block has been saved.';
/**
* Assert that after save block successful message appears
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDeleteMessage.php
index 5627dacb51a45..d6a5fedbd6024 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCmsPageDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The page has been deleted.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = 'The page has been deleted.';
/**
* Assert that success message is displayed after Cms page delete
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDisabledOnFrontend.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDisabledOnFrontend.php
index 02f8bddd50ff9..8a8184fd74377 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDisabledOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDisabledOnFrontend.php
@@ -17,14 +17,11 @@
*/
class AssertCmsPageDisabledOnFrontend extends AbstractConstraint
{
- const NOT_FOUND_MESSAGE = 'Whoops, our bad...';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const NOT_FOUND_MESSAGE = 'Whoops, our bad...';
/**
* Assert that created CMS page with 'Status' - Disabled displays with '404 Not Found' message on Frontend.
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDuplicateErrorMessage.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDuplicateErrorMessage.php
index 681438f1607fb..f6edec0ab79d9 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDuplicateErrorMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageDuplicateErrorMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCmsPageDuplicateErrorMessage extends AbstractConstraint
{
- const ERROR_SAVE_MESSAGE = 'A page URL key for specified store already exists.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const ERROR_SAVE_MESSAGE = 'A page URL key for specified store already exists.';
/**
* Verify that page has not been created
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageForm.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageForm.php
index 85e432fcea463..50775af83727b 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageForm.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageForm.php
@@ -16,12 +16,9 @@
*/
class AssertCmsPageForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields for verify data
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageInGrid.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageInGrid.php
index e6a762f6cc791..3f7de355b0d0b 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCmsPageInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that cms page is present in pages grid
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageNotInGrid.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageNotInGrid.php
index b23c7a4144bf5..3984f7e520a02 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertCmsPageNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Cms page is not present in pages grid
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPagePreview.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPagePreview.php
index ad286799d9c99..a3d30935640b9 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPagePreview.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPagePreview.php
@@ -18,12 +18,9 @@
*/
class AssertCmsPagePreview extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that content of created cms page displayed in section 'maincontent' and equals passed from fixture.
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageSuccessSaveMessage.php
index 3ace5d831ef71..6c8f66a199cc4 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertCmsPageSuccessSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCmsPageSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'The page has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_SAVE_MESSAGE = 'The page has been saved.';
/**
* Assert that after save a CMS page "The page has been saved." successful message appears
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertUrlRewriteCmsPageRedirect.php b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertUrlRewriteCmsPageRedirect.php
index 2ce394b712fb8..81ba3fcb864a6 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertUrlRewriteCmsPageRedirect.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/Constraint/AssertUrlRewriteCmsPageRedirect.php
@@ -17,12 +17,9 @@
*/
class AssertUrlRewriteCmsPageRedirect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created CMS Page URL Rewrite lead to appropriate page in frontend
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/AbstractCmsBlockEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/AbstractCmsBlockEntityTest.php
index de72b500270d9..4a9f1876002df 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/AbstractCmsBlockEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/AbstractCmsBlockEntityTest.php
@@ -111,7 +111,7 @@ public function tearDown()
$this->storeIndex->getStoreGrid()->searchAndOpen($filter);
$this->storeNew->getFormPageActions()->delete();
$this->storeDelete->getStoreForm()->fillForm(['create_backup' => 'No']);
- $this->storeDelete->getFormPageFooterActions()->delete();
+ $this->storeDelete->getFormPageActions()->delete();
}
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsBlockEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsBlockEntityTest.php
index e67b95ee703f6..6e96872106de4 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsBlockEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsBlockEntityTest.php
@@ -35,7 +35,6 @@ class CreateCmsBlockEntityTest extends AbstractCmsBlockEntityTest
*/
public function test(CmsBlock $cmsBlock)
{
- $this->markTestIncomplete('MAGETWO-28916, MAGETWO-30362');
// Prepare data for tearDown
$this->storeName = $cmsBlock->getStores();
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsPageEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsPageEntityTest.php
index 6bdea75561e6c..9bca655fbcdd1 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsPageEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreateCmsPageEntityTest.php
@@ -62,7 +62,6 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew)
*/
public function test(CmsPageFixture $cms)
{
- $this->markTestIncomplete('MAGETWO-30362');
// Steps
$this->cmsIndex->open();
$this->cmsIndex->getPageActionsBlock()->addNew();
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreatePageTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreatePageTest.php
index 2e57c2a33da9a..9596d8fca7bdd 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreatePageTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/CreatePageTest.php
@@ -20,7 +20,7 @@ class CreatePageTest extends Functional
*/
protected function setUp()
{
- $this->markTestIncomplete('MAGETWO-29634, MAGETWO-30362');
+ $this->markTestIncomplete('MAGETWO-29634');
Factory::getApp()->magentoBackendLoginUser();
}
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsBlockEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsBlockEntityTest.php
index afd31a625d651..a921942a35338 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsBlockEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsBlockEntityTest.php
@@ -67,7 +67,6 @@ public function __inject(
*/
public function test(CmsBlock $cmsBlock)
{
- $this->markTestIncomplete('MAGETWO-28916, MAGETWO-30362');
// Precondition
$cmsBlock->persist();
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsPageEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsPageEntityTest.php
index 81e360b6e731d..47574ebb71a95 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsPageEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/DeleteCmsPageEntityTest.php
@@ -65,7 +65,6 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew)
*/
public function test(CmsPage $cmsPage)
{
- $this->markTestIncomplete('MAGETWO-30362');
// Preconditions
$cmsPage->persist();
$filter = [
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsBlockEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsBlockEntityTest.php
index 2f2322985147f..791e8e6fd2e4d 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsBlockEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsBlockEntityTest.php
@@ -37,7 +37,6 @@ class UpdateCmsBlockEntityTest extends AbstractCmsBlockEntityTest
*/
public function test(CmsBlock $initialCmsBlock, CmsBlock $cmsBlock)
{
- $this->markTestIncomplete('MAGETWO-28916, MAGETWO-30362');
// Precondition
$initialCmsBlock->persist();
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageEntityTest.php
index 102abee0fc164..17e31a45a5e3d 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageEntityTest.php
@@ -80,7 +80,7 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew, CmsPage $cmsOrigina
*/
public function test(CmsPage $cms, CmsPage $cmsOriginal)
{
- $this->markTestIncomplete('MAGETWO-29634, MAGETWO-30362');
+ $this->markTestIncomplete('MAGETWO-29634');
// Steps
$this->cmsIndex->open();
$filter = ['title' => $cmsOriginal->getTitle()];
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageRewriteEntityTest.php b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageRewriteEntityTest.php
index 92708a55fc697..aae15f7fbeafe 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageRewriteEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/TestCase/UpdateCmsPageRewriteEntityTest.php
@@ -149,6 +149,6 @@ public function tearDown()
$this->storeIndex->getStoreGrid()->searchAndOpen($filter);
$this->storeNew->getFormPageActions()->delete();
$this->storeDelete->getStoreForm()->fillForm(['create_backup' => 'No']);
- $this->storeDelete->getFormPageFooterActions()->delete();
+ $this->storeDelete->getFormPageActions()->delete();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Cms/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Cms/Test/etc/constraint.xml
index 51a80ff76997b..337f6cfdf80e9 100644
--- a/dev/tests/functional/tests/app/Magento/Cms/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Cms/Test/etc/constraint.xml
@@ -6,32 +6,32 @@
-->
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- high
+ high
@@ -40,7 +40,7 @@
- high
+ high
@@ -49,7 +49,7 @@
- low
+ low
@@ -58,7 +58,7 @@
- low
+ low
@@ -66,7 +66,7 @@
- low
+ low
@@ -76,26 +76,26 @@
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
@@ -103,6 +103,6 @@
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductIsNotDisplayedSeparately.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductIsNotDisplayedSeparately.php
index e3b2228f619a8..51b56ffe5da6f 100644
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductIsNotDisplayedSeparately.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductIsNotDisplayedSeparately.php
@@ -16,12 +16,9 @@
*/
class AssertChildProductIsNotDisplayedSeparately extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that products generated during configurable product creation - are not visible on frontend(by default).
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php
index 8705104e198d4..7beb7d05683e4 100755
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php
@@ -15,18 +15,15 @@
*/
class AssertChildProductsInGrid extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Default status visibility on child products
*/
const NOT_VISIBLE_INDIVIDUALLY = 'Not Visible Individually';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that child products generated during configurable product are present in products grid
*
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesAbsentOnProductPage.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesAbsentOnProductPage.php
index 4aee31a50d837..59a23c1e9e1f9 100644
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesAbsentOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesAbsentOnProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertConfigurableAttributesAbsentOnProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted configurable attributes are absent on product page on frontend.
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesBlockIsAbsentOnProductPage.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesBlockIsAbsentOnProductPage.php
index 08c590daf1ec3..4c565a232550a 100644
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesBlockIsAbsentOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableAttributesBlockIsAbsentOnProductPage.php
@@ -15,12 +15,9 @@
*/
class AssertConfigurableAttributesBlockIsAbsentOnProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that all configurable attributes is absent on product page on frontend.
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductDuplicateForm.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductDuplicateForm.php
index cfeb9d1b8e4da..4c6ea9e268ee9 100644
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductDuplicateForm.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductDuplicateForm.php
@@ -10,20 +10,16 @@
use Mtf\Fixture\FixtureInterface;
/**
- * Class AssertConfigurableProductDuplicateForm
- * Assert form data equals duplicate product configurable data
+ * Assert form data equals duplicate product configurable data.
*/
class AssertConfigurableProductDuplicateForm extends AssertConfigurableProductForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
- * Assert form data equals duplicate product configurable data
+ * Assert form data equals duplicate product configurable data.
*
* @param FixtureInterface $product
* @param CatalogProductIndex $productGrid
@@ -50,7 +46,33 @@ public function processAssert(
}
/**
- * Returns a string representation of the object
+ * Prepares fixture data for comparison.
+ *
+ * @param array $data
+ * @param array $sortFields [optional]
+ * @return array
+ */
+ protected function prepareFixtureData(array $data, array $sortFields = [])
+ {
+ $data['url_key'] = $this->prepareUrlKey($data['url_key']);
+ return parent::prepareFixtureData($data, $sortFields);
+ }
+
+ /**
+ * Prepare url key.
+ *
+ * @param string $urlKey
+ * @return string
+ */
+ protected function prepareUrlKey($urlKey)
+ {
+ preg_match("~\d+$~", $urlKey, $matches);
+ $key = intval($matches[0]) + 1;
+ return str_replace($matches[0], $key, $urlKey);
+ }
+
+ /**
+ * Returns a string representation of the object.
*
* @return string
*/
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductForm.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductForm.php
index a7de0406e861e..840dd0a6f9f80 100755
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductForm.php
@@ -13,6 +13,10 @@
*/
class AssertConfigurableProductForm extends AssertProductForm
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* List skipped fixture fields in verify
*
@@ -56,13 +60,6 @@ class AssertConfigurableProductForm extends AssertProductForm
'configurable_attribute',
];
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Prepares fixture data for comparison
*
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeAbsenceInVariationsSearch.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeAbsenceInVariationsSearch.php
index 6d7eb4257b510..dde6688d19a5d 100644
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeAbsenceInVariationsSearch.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeAbsenceInVariationsSearch.php
@@ -18,18 +18,15 @@
*/
class AssertProductAttributeAbsenceInVariationsSearch extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Label "Variations" tab
*/
const TAB_VARIATIONS = 'variations';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that deleted attribute can't be added to product template on Product Page via Add Attribute control
*
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeIsConfigurable.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeIsConfigurable.php
index d2beabb26f30c..8e75bb524c611 100644
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeIsConfigurable.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertProductAttributeIsConfigurable.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeIsConfigurable extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert check whether the attribute is used to create a configurable products.
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/etc/constraint.xml
index 57573eab9f0b9..afba8d58b2c35 100644
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/etc/constraint.xml
@@ -6,39 +6,39 @@
-->
- low
+ low
- high
+ high
- middle
+ middle
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- high
+ high
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableForm.php b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableForm.php
index e58d3903ec42d..5eb80ff77d1d9 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableForm.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableForm.php
@@ -17,12 +17,9 @@
*/
class AssertCustomVariableForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields for verify data
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInGrid.php b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInGrid.php
index d389eb798b6a8..56e36a60aeaa9 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertCustomVariableInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert custom variable is displayed on backend in custom variable grid
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInPage.php b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInPage.php
index 5a3cab10ee50a..62b2df94d024b 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInPage.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableInPage.php
@@ -17,12 +17,9 @@
*/
class AssertCustomVariableInPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Add created variable to page and assert that Custom Variable is displayed on frontend page and has
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInCmsPageForm.php b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInCmsPageForm.php
index 2597200cfe38e..0eb9acb770eca 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInCmsPageForm.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInCmsPageForm.php
@@ -14,12 +14,9 @@
*/
class AssertCustomVariableNotInCmsPageForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that custom system variable not in cms page form
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInGrid.php b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInGrid.php
index 9f07e5912f745..130d940682d2f 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertCustomVariableNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert Custom System Variable not available in System Variable grid
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessDeleteMessage.php
index 79df2412d06f2..c33b618a4e0e0 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCustomVariableSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'You deleted the custom variable.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = 'You deleted the custom variable.';
/**
* Assert that success delete message is correct after Custom System Variable deleted
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessSaveMessage.php
index 24480eb498402..2583597add05b 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Constraint/AssertCustomVariableSuccessSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCustomVariableSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'You saved the custom variable.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_SAVE_MESSAGE = 'You saved the custom variable.';
/**
* Assert that success delete message is correct after Custom System Variable deleted
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/Repository/ConfigData.php b/dev/tests/functional/tests/app/Magento/Core/Test/Repository/ConfigData.php
index 3e1d69ac93f09..3520957a0d690 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/Repository/ConfigData.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/Repository/ConfigData.php
@@ -24,6 +24,15 @@ class ConfigData extends AbstractRepository
*/
public function __construct(array $defaultConfig = [], array $defaultData = [])
{
+ $this->_data['secure_url'] = [
+ 'section' => [
+ 'path' => 'web/secure/base_url',
+ 'scope' => 'default',
+ 'scope_id' => 1,
+ 'value' => str_replace('http:', 'https:', $_ENV['app_backend_url']),
+ ]
+ ];
+
$this->_data['compare_products'] = [
'section' => [
[
@@ -1254,6 +1263,28 @@ public function __construct(array $defaultConfig = [], array $defaultData = [])
],
];
+ $this->_data['shipping_tax_class_taxable_goods'] = [
+ 'section' => [
+ [
+ 'path' => 'tax/classes/shipping_tax_class',
+ 'scope' => 'tax',
+ 'scope_id' => '1',
+ 'value' => '2'
+ ]
+ ]
+ ];
+
+ $this->_data['shipping_tax_class_taxable_goods_rollback'] = [
+ 'section' => [
+ [
+ 'path' => 'tax/classes/shipping_tax_class',
+ 'scope' => 'tax',
+ 'scope_id' => '1',
+ 'value' => '0'
+ ]
+ ]
+ ];
+
$this->_data['row_cat_incl_ship_excl_after_disc_on_excl'] =
array_replace_recursive(
$taxCalculationConf,
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/TestCase/UpdateCustomVariableEntityTest.php b/dev/tests/functional/tests/app/Magento/Core/Test/TestCase/UpdateCustomVariableEntityTest.php
index ef9ff97885bb2..565463e154879 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/TestCase/UpdateCustomVariableEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/TestCase/UpdateCustomVariableEntityTest.php
@@ -135,6 +135,6 @@ public static function tearDownAfterClass()
$storeNew->getFormPageActions()->delete();
$storeDelete = ObjectManager::getInstance()->create('Magento\Backend\Test\Page\Adminhtml\StoreDelete');
$storeDelete->getStoreForm()->fillForm(['create_backup' => 'No']);
- $storeDelete->getFormPageFooterActions()->delete();
+ $storeDelete->getFormPageActions()->delete();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Core/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Core/Test/etc/constraint.xml
index 1e66bbe7ac451..9d55de2150388 100644
--- a/dev/tests/functional/tests/app/Magento/Core/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Core/Test/etc/constraint.xml
@@ -6,27 +6,27 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnCatalogPage.php b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnCatalogPage.php
index ee06c41025320..b095afb9e1a75 100644
--- a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnCatalogPage.php
+++ b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnCatalogPage.php
@@ -17,12 +17,9 @@
*/
class AssertCurrencySymbolOnCatalogPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that after applying changes, currency symbol changed on Catalog page
diff --git a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnProductPage.php b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnProductPage.php
index 8787f6d1fb88f..1342144a74b65 100644
--- a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolOnProductPage.php
@@ -17,12 +17,9 @@
*/
class AssertCurrencySymbolOnProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that after applying changes, currency symbol changed on Product Details Page.
diff --git a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolSuccessSaveMessage.php
index af0f841a8670b..307413dad2ad5 100644
--- a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Constraint/AssertCurrencySymbolSuccessSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCurrencySymbolSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'The custom currency symbols were applied.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_SAVE_MESSAGE = 'The custom currency symbols were applied.';
/**
* Assert that after clicking on 'Save Currency Symbols' button success message appears.
diff --git a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/etc/constraint.xml
index e517674ba85f3..0f1d7f25df7d2 100644
--- a/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/etc/constraint.xml
@@ -6,13 +6,13 @@
-->
- low
+ low
- low
+ low
@@ -22,7 +22,7 @@
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/CustomerForm.xml b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/CustomerForm.xml
index 8e4af46e3ba2d..edd9de53702cb 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/CustomerForm.xml
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/CustomerForm.xml
@@ -27,7 +27,7 @@
\Magento\Customer\Test\Block\Adminhtml\Edit\Tab\Addresses
- #customer_info_tabs_addresses
+ #tab_customer_addresscss selector
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/FormPageActions.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/FormPageActions.php
index 697cd9bd57ac5..5d185b181e8c4 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/FormPageActions.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/FormPageActions.php
@@ -29,4 +29,15 @@ public function createOrder()
{
$this->_rootElement->find($this->createOrderButton)->click();
}
+
+ /**
+ * Wait for User before click on any Button which calls JS validation on correspondent form.
+ * See details in MAGETWO-31121.
+ *
+ * @return void
+ */
+ protected function waitBeforeClick()
+ {
+ sleep(0.2);
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.php
index 7cf921551e869..3fa6c1f373f8e 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.php
@@ -22,14 +22,14 @@ class Addresses extends Tab
*
* @var string
*/
- protected $addNewAddress = '#add_address_button';
+ protected $addNewAddress = '.address-list-actions .add';
/**
* Open customer address
*
* @var string
*/
- protected $customerAddress = '//*[@id="address_list"]/li[%d]/a';
+ protected $customerAddress = '//*[contains(@class, "address-list-item")][%d]';
/**
* Magento loader
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.xml b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.xml
index 1b28870768415..877cdbedaab9c 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.xml
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.xml
@@ -7,65 +7,65 @@
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[prefix]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[prefix]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[firstname]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[firstname]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[middlename]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[middlename]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[lastname]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[lastname]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[suffix]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[suffix]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[company]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[company]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[street][0]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[street][0]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[city]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[city]"]css selector
select
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[country_id]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[country_id]"]css selector
select
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[region_id]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[region_id]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[region]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[region]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[postcode]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[postcode]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[telephone]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[telephone]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[fax]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[fax]"]css selector
- #address_form_container [aria-hidden="false"] [name^="address"][name$="[vat_id]"]
+ .address-item-edit:not([style="display: none;"]) [name$="[vat_id]"]css selector
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Form/CustomerForm.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Form/CustomerForm.php
index 1f205adcf4bde..2239c93e3c384 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Form/CustomerForm.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Block/Form/CustomerForm.php
@@ -6,29 +6,36 @@
namespace Magento\Customer\Test\Block\Form;
use Mtf\Block\Form;
+use Magento\Customer\Test\Fixture\CustomerInjectable;
/**
- * Class CustomerForm
- * Customer account edit form
+ * Customer account edit form.
*/
class CustomerForm extends Form
{
/**
- * Save button button css selector
+ * Save button button css selector.
*
* @var string
*/
protected $saveButton = '[type="submit"]';
/**
- * Locator for customer attribute on Edit Account Information page
+ * Locator for customer attribute on Edit Account Information page.
*
* @var string
*/
protected $customerAttribute = "[name='%s[]']";
/**
- * Click on save button
+ * Validation text message for a field.
+ *
+ * @var string
+ */
+ protected $validationText = '.mage-error[for="%s"]';
+
+ /**
+ * Click on save button.
*
* @return void
*/
@@ -36,4 +43,23 @@ public function submit()
{
$this->_rootElement->find($this->saveButton)->click();
}
+
+ /**
+ * Get all error validation messages for fields.
+ *
+ * @param CustomerInjectable $customer
+ * @return array
+ */
+ public function getValidationMessages(CustomerInjectable $customer)
+ {
+ $messages = [];
+ foreach (array_keys($customer->getData()) as $field) {
+ $element = $this->_rootElement->find(sprintf($this->validationText, str_replace('_', '-', $field)));
+ if ($element->isVisible()) {
+ $messages[$field] = $element->getText();
+ }
+ }
+
+ return $messages;
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedBackend.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedBackend.php
index e982b0679ec4b..1324e570887fd 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedBackend.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedBackend.php
@@ -17,12 +17,9 @@
*/
class AssertAddressDeletedBackend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted customers address is not displayed on backend during order creation
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedFrontend.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedFrontend.php
index 0cb8b92283136..715f486d2ea37 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertAddressDeletedFrontend.php
@@ -14,18 +14,15 @@
*/
class AssertAddressDeletedFrontend extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Expected message
*/
const EXPECTED_MESSAGE = 'You have no additional address entries in your address book.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Asserts that Asserts that 'Additional Address Entries' contains expected message
*
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertChangePasswordFailMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertChangePasswordFailMessage.php
index 303396983dd64..8aa04ec41ebae 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertChangePasswordFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertChangePasswordFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertChangePasswordFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Fail message
*/
const FAIL_MESSAGE = "Password doesn't match for this account.";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that fail message is present
*
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerAddressSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerAddressSuccessSaveMessage.php
index f3f15e0e595e4..f67967415e805 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerAddressSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerAddressSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCustomerAddressSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The address has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The address has been saved.';
/**
* Asserts that success message equals to expected message
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerDefaultAddresses.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerDefaultAddresses.php
index 705fc4fe3b6ee..4c4e0444ef18e 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerDefaultAddresses.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerDefaultAddresses.php
@@ -14,12 +14,9 @@
*/
class AssertCustomerDefaultAddresses extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that Default Billing Address and Default Shipping Address equal to data from fixture
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerFailRegisterMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerFailRegisterMessage.php
index 7011fc186ed04..fe58f72b4ea5c 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerFailRegisterMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerFailRegisterMessage.php
@@ -13,12 +13,9 @@
*/
class AssertCustomerFailRegisterMessage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that error message is displayed on "Create New Customer Account" page(frontend)
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerForm.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerForm.php
index ad6c854fc6e5d..8a5d7eccb108e 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerForm.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerForm.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Skipped fields for verify data
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupAlreadyExists.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupAlreadyExists.php
index a25028f2fca1f..2110b965f27a5 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupAlreadyExists.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupAlreadyExists.php
@@ -13,14 +13,11 @@
*/
class AssertCustomerGroupAlreadyExists extends AbstractConstraint
{
- const ERROR_MESSAGE = 'Customer Group already exists.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const ERROR_MESSAGE = 'Customer Group already exists.';
/**
* Assert that customer group already exist
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupForm.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupForm.php
index e3802aec8ef22..e351c823a5b17 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupForm.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupForm.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerGroupForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields while verifying
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupInGrid.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupInGrid.php
index 103079c891f93..01a077bc67cf8 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertCustomerGroupInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customer group in grid
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupNotInGrid.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupNotInGrid.php
index 030fd19b007b1..0e15cae8dc4a8 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertCustomerGroupNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customer group not in grid
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupOnCustomerForm.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupOnCustomerForm.php
index 43e5f337e7917..b9f65ebc6a135 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupOnCustomerForm.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupOnCustomerForm.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerGroupOnCustomerForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customer group find on account information page
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessDeleteMessage.php
index b405b2592df2a..0e41d813a855b 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCustomerGroupSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = "The customer group has been deleted.";
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_DELETE_MESSAGE= "The customer group has been deleted.";
/**
* Assert that message "The customer group has been deleted." is displayed on Customer Group page.
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessSaveMessage.php
index 63778b9060f2a..51c7bd74cede4 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerGroupSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCustomerGroupSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The customer group has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The customer group has been saved.';
/**
* Assert that success message is displayed after customer group save
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInGrid.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInGrid.php
index 88bcc70e9dc80..8b0e33b22ba80 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert customer availability in Customer Grid
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInfoSuccessSavedMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInfoSuccessSavedMessage.php
index 0ebe3f78886fc..6f52c76daf006 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInfoSuccessSavedMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInfoSuccessSavedMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCustomerInfoSuccessSavedMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The account information has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The account information has been saved.';
/**
* Asserts that success message equals to expected message
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInvalidEmail.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInvalidEmail.php
index c2c3b7384f313..4c2126fdebd3d 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInvalidEmail.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerInvalidEmail.php
@@ -15,14 +15,11 @@
*/
class AssertCustomerInvalidEmail extends AbstractConstraint
{
- const ERROR_EMAIL_MESSAGE = 'Please correct this email address: "%email%".';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ const ERROR_EMAIL_MESSAGE = 'Please correct this email address: "%email%".';
/**
* Assert that error message "Please correct this email address: "%email%"." is displayed
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteInGrid.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteInGrid.php
index 1816ba92d482a..38d155bd06df4 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerMassDeleteInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customers which haven't been deleted are present in customer grid
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteNotInGrid.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteNotInGrid.php
index 9f07488b73bbf..2a591e1f32294 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerMassDeleteNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that mass deleted customers are not in customer's grid
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteSuccessMessage.php
index b30037df9b044..7c65b45050019 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerMassDeleteSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCustomerMassDeleteSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message that appears after deletion via mass actions
*/
const SUCCESS_DELETE_MESSAGE = 'A total of %d record(s) were deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that message "A total of "x" record(s) were deleted."
*
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerNotInGrid.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerNotInGrid.php
index b449817f0d1a5..7f9ea84155b5d 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Asserts that customer is not in customer's grid
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerPasswordChanged.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerPasswordChanged.php
index 8782b7fc05c42..9e749fff3625d 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerPasswordChanged.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerPasswordChanged.php
@@ -12,28 +12,18 @@
use Mtf\Fixture\FixtureFactory;
/**
- * Class AssertCustomerPasswordChanged
- * Check that login again to frontend with new password was success
+ * Check that login again to frontend with new password was success.
*/
class AssertCustomerPasswordChanged extends AbstractConstraint
{
- /**
- * Welcome message after login
- */
- const SUCCESS_MESSAGE = 'Hello, %s!';
-
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
- * Assert that login again to frontend with new password was success
+ * Assert that login again to frontend with new password was success.
*
* @param FixtureFactory $fixtureFactory
- * @param CmsIndex $cmsIndex
* @param CustomerAccountIndex $customerAccountIndex
* @param CustomerInjectable $initialCustomer
* @param CustomerInjectable $customer
@@ -41,16 +31,10 @@ class AssertCustomerPasswordChanged extends AbstractConstraint
*/
public function processAssert(
FixtureFactory $fixtureFactory,
- CmsIndex $cmsIndex,
CustomerAccountIndex $customerAccountIndex,
CustomerInjectable $initialCustomer,
CustomerInjectable $customer
) {
- $cmsIndex->open();
- if ($cmsIndex->getLinksBlock()->isVisible()) {
- $cmsIndex->getLinksBlock()->openLink('Log Out');
- }
-
$customer = $fixtureFactory->createByCode(
'customerInjectable',
[
@@ -63,21 +47,19 @@ public function processAssert(
]
);
- $loginCustomer = $this->objectManager->create(
+ $this->objectManager->create(
'Magento\Customer\Test\TestStep\LoginCustomerOnFrontendStep',
['customer' => $customer]
- );
- $loginCustomer->run();
+ )->run();
- $customerName = $initialCustomer->getFirstname() . " " . $initialCustomer->getLastname();
- \PHPUnit_Framework_Assert::assertEquals(
- sprintf(self::SUCCESS_MESSAGE, $customerName),
- $customerAccountIndex->getInfoBlock()->getWelcomeText()
+ \PHPUnit_Framework_Assert::assertTrue(
+ $customerAccountIndex->getAccountMenuBlock()->isVisible(),
+ 'Customer Account Dashboard is not visible.'
);
}
/**
- * Returns a string representation of the object
+ * Returns a string representation of the object.
*
* @return string
*/
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessDeleteMessage.php
index 067452aad8d8a..88ab8881dac7b 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCustomerSuccessDeleteMessage extends AbstractConstraint
{
- const DELETE_MESSAGE = 'You deleted the customer.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const DELETE_MESSAGE = 'You deleted the customer.';
/**
* Asserts that actual delete message equals expected
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessRegisterMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessRegisterMessage.php
index 76e729d7a36f8..460299ed2bb06 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessRegisterMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessRegisterMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCustomerSuccessRegisterMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'Thank you for registering with Main Website Store.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'Thank you for registering with Main Website Store.';
/**
* Assert that success message is displayed after customer registered on frontend
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessSaveMessage.php
index 943c391734474..1cbfa225cbf62 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerSuccessSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCustomerSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the customer.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You saved the customer.';
/**
* Assert that success message is displayed after customer save
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertMassActionSuccessUpdateMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertMassActionSuccessUpdateMessage.php
index 8c6c03f915e04..fb3385e37ea79 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertMassActionSuccessUpdateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertMassActionSuccessUpdateMessage.php
@@ -15,18 +15,15 @@
*/
class AssertMassActionSuccessUpdateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const UPDATE_MESSAGE = 'A total of %d record(s) were updated.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert update message is appears on customer grid (Customers > All Customers)
*
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertWrongPassConfirmationMessage.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertWrongPassConfirmationMessage.php
index 07419bbe8929b..1d5ac6eaa5d12 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertWrongPassConfirmationMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertWrongPassConfirmationMessage.php
@@ -5,48 +5,52 @@
namespace Magento\Customer\Test\Constraint;
+use Magento\Customer\Test\Fixture\CustomerInjectable;
use Magento\Customer\Test\Page\CustomerAccountEdit;
use Mtf\Constraint\AbstractConstraint;
/**
- * Class AssertWrongPassConfirmationMessage
- * Check that conformation message is present
+ * Check that conformation message is present.
*/
class AssertWrongPassConfirmationMessage extends AbstractConstraint
{
- /**
- * Conformation message
- */
- const CONFIRMATION_MESSAGE = 'Confirm your new password';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
- * Constraint severeness
- *
- * @var string
+ * Conformation message
*/
- protected $severeness = 'low';
+ const CONFIRMATION_MESSAGE = 'Please enter the same value again.';
/**
- * Assert that conformation message is present
+ * Assert that conformation message is present.
*
+ * @param CustomerInjectable $customer
* @param CustomerAccountEdit $customerAccountEdit
* @return void
*/
- public function processAssert(CustomerAccountEdit $customerAccountEdit)
+ public function processAssert(CustomerInjectable $customer, CustomerAccountEdit $customerAccountEdit)
{
- \PHPUnit_Framework_Assert::assertEquals(
- self::CONFIRMATION_MESSAGE,
- $customerAccountEdit->getMessages()->getErrorMessages()
- );
+ $validationMessages = $customerAccountEdit->getAccountInfoForm()->getValidationMessages($customer);
+ if (isset($validationMessages['password_confirmation'])) {
+ \PHPUnit_Framework_Assert::assertEquals(
+ self::CONFIRMATION_MESSAGE,
+ $validationMessages['password_confirmation'],
+ 'Wrong password confirmation validation text message.'
+ );
+ } else {
+ \PHPUnit_Framework_TestCase::fail('Password confirmation validation message is absent.');
+ }
}
/**
- * Returns a string representation of the object
+ * Returns a string representation of the object.
*
* @return string
*/
public function toString()
{
- return 'Conformation message is displayed.';
+ return 'Password confirmation validation text message is displayed.';
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Handler/CustomerInjectable/Curl.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Handler/CustomerInjectable/Curl.php
index e5fd1b32a46ac..737a31217f859 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Handler/CustomerInjectable/Curl.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Handler/CustomerInjectable/Curl.php
@@ -22,7 +22,7 @@ class Curl extends AbstractCurl implements CustomerInjectableInterface
/**
* Default customer group
*/
- const GENERAL_GROUP = 'General';
+ const GENERAL_GROUP = '1';
/**
* Mapping values for data
@@ -30,13 +30,8 @@ class Curl extends AbstractCurl implements CustomerInjectableInterface
* @var array
*/
protected $mappingData = [
- 'group_id' => [
- self::GENERAL_GROUP => 1,
- 'Wholesale' => 2,
- 'Retailer' => 3,
- ],
'country_id' => [
- 'United States' => 'US',
+ 'United States' => 'US'
],
'region_id' => [
'California' => 12,
@@ -58,8 +53,8 @@ class Curl extends AbstractCurl implements CustomerInjectableInterface
'email',
'dob',
'taxvat',
- 'gender',
- ],
+ 'gender'
+ ]
];
/**
@@ -76,6 +71,7 @@ public function persist(FixtureInterface $customer = null)
/** @var CustomerInjectable $customer */
$url = $_ENV['app_frontend_url'] . 'customer/account/createpost/?nocookie=true';
$data = $customer->getData();
+ $data['group_id'] = $this->getCustomerGroup($customer);
if ($customer->hasData('address')) {
$address = $customer->getAddress();
@@ -120,6 +116,19 @@ protected function getCustomerId($email)
return empty($match[1]) ? null : $match[1];
}
+ /**
+ * Prepare customer for curl
+ *
+ * @param FixtureInterface $customer
+ * @return string
+ */
+ protected function getCustomerGroup(FixtureInterface $customer)
+ {
+ return $customer->hasData('group_id')
+ ? $customer->getDataFieldConfig('group_id')['source']->getCustomerGroup()->getCustomerGroupId()
+ : self::GENERAL_GROUP;
+ }
+
/**
* Add addresses in to customer account
*
@@ -130,7 +139,7 @@ protected function getCustomerId($email)
protected function addAddress(array $data)
{
$curlData = [];
- $url = $_ENV['app_backend_url'] . 'customer/index/save';
+ $url = $_ENV['app_backend_url'] . 'customer/index/save/id/' . $data['customer_id'];
foreach ($data as $key => $value) {
foreach ($this->curlMapping as $prefix => $prefixValues) {
if (in_array($key, $prefixValues)) {
@@ -140,9 +149,6 @@ protected function addAddress(array $data)
}
}
unset($data['password'], $data['password_confirmation']);
- $curlData['account']['group_id'] = isset($curlData['account']['group_id'])
- ? $curlData['account']['group_id']
- : self::GENERAL_GROUP;
$curlData = $this->replaceMappingData(array_merge($curlData, $data));
$curlData = $this->prepareAddressData($curlData);
@@ -173,18 +179,18 @@ protected function prepareAddressData(array $curlData)
$curlData['address'][$key]['street'] = [];
$curlData['address'][$key]['street'][] = $street;
}
- $newKey = '_item' . ($key + 1);
- if ($curlData['address'][$key]['default_billing'] === 'Yes') {
- unset($curlData['address'][$key]['default_billing']);
- $curlData['account']['default_billing'] = $newKey;
+ $newKey = 'new_' . ($key);
+ if (isset($curlData['address'][$key]['default_billing'])) {
+ $value = $curlData['address'][$key]['default_billing'] === 'Yes' ? 'true' : 'false';
+ $curlData['address'][$key]['default_billing'] = $value;
}
- if ($curlData['address'][$key]['default_shipping'] === 'Yes') {
- unset($curlData['address'][$key]['default_shipping']);
- $curlData['account']['default_shipping'] = $newKey;
+ if (isset($curlData['address'][$key]['default_shipping'])) {
+ $value = $curlData['address'][$key]['default_shipping'] === 'Yes' ? 'true' : 'false';
+ $curlData['address'][$key]['default_shipping'] = $value;
}
- $curlData['address'][$newKey] = $curlData['address'][$key];
- unset($curlData['address'][$key]);
+ $curlData['account']['customer_address'][$newKey] = $curlData['address'][$key];
}
+ unset($curlData['address']);
return $curlData;
}
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Page/CustomerAccountIndex.xml b/dev/tests/functional/tests/app/Magento/Customer/Test/Page/CustomerAccountIndex.xml
index 3d4e165acba63..ef6ffe23e31a6 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Page/CustomerAccountIndex.xml
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Page/CustomerAccountIndex.xml
@@ -33,7 +33,7 @@
Magento\Catalog\Test\Block\Product\Compare\Sidebar
- .block.compare
+ .block-comparecss selector
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/Repository/CustomerInjectable.php b/dev/tests/functional/tests/app/Magento/Customer/Test/Repository/CustomerInjectable.php
index 55d3af3d2ec2b..9a0b737ef2733 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/Repository/CustomerInjectable.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/Repository/CustomerInjectable.php
@@ -64,6 +64,7 @@ public function __construct(array $defaultConfig = [], array $defaultData = [])
];
$this->_data['defaultBackend'] = [
+ 'website_id' => 'Main Website',
'firstname' => 'John',
'lastname' => 'Doe',
'email' => 'JohnDoe_%isolation%@example.com',
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/ChangeCustomerPasswordTest/test.csv b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/ChangeCustomerPasswordTest/test.csv
index 726c0a3d22d1f..b002dd32e3b58 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/ChangeCustomerPasswordTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/ChangeCustomerPasswordTest/test.csv
@@ -1,4 +1,4 @@
-"initialCustomer/dataSet";"customer/data/current_password";"customer/data/password";"customer/data/password_confirmation";"constraint";"issue"
-"default";"123123q";"123123a";"123123a";"assertCustomerInfoSuccessSavedMessage, assertCustomerPasswordChanged";"Bug: MAGETWO-29412"
-"default";"123123";"123123a";"123123a";"assertChangePasswordFailMessage";""
-"default";"123123q";"123123a";"123123";"assertWrongPassConfirmationMessage";""
+"initialCustomer/dataSet";"customer/data/current_password";"customer/data/password";"customer/data/password_confirmation";"constraint";
+"default";"123123q";"123123a";"123123a";"assertCustomerInfoSuccessSavedMessage, assertCustomerPasswordChanged";
+"default";"123123";"123123a";"123123a";"assertChangePasswordFailMessage";
+"default";"123123q";"123123a";"123123";"assertWrongPassConfirmationMessage";
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateCustomerBackendEntityTest/testCreateCustomerBackendEntity.csv b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateCustomerBackendEntityTest/testCreateCustomerBackendEntity.csv
index e6e356a43c234..47b35a7511a61 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateCustomerBackendEntityTest/testCreateCustomerBackendEntity.csv
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateCustomerBackendEntityTest/testCreateCustomerBackendEntity.csv
@@ -1,6 +1,6 @@
-"customer/data/website_id";"customer/data/group_id/dataSet";"customer/data/prefix";"customer/data/firstname";"customer/data/middlename";"customer/data/lastname";"customer/data/suffix";"customer/data/email";"customer/data/dob";"customer/data/taxvat";"customer/data/gender";"address/data/firstname";"address/data/lastname";"address/data/street";"address/data/city";"address/data/country_id";"address/data/region_id";"address/data/postcode";"address/data/telephone";"constraint";"issue"
-"Main Website";"General";"-";"John%isolation%";"-";"Doe%isolation%";"-";"JohnDoe%isolation%@example.com";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm";""
-"Admin";"Wholesale";"M";"John%isolation%";"Jack";"Doe%isolation%";"S";"JohnDoe%isolation%@example.com";"3/16/2004";"-";"Male";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm";""
-"Main Website";"General";"-";"John%isolation%";"-";"Doe%isolation%";"-";"JohnDoe%isolation%@example.com";"-";"-";"-";"Joe";"Doe";"1 Main Street";"Culver City";"United States";"California";"90230";"3109450345";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm";"Bug: MAGETWO-30226"
-"Main Website";"Retailer";"-";"John%isolation%";"-";"Doe%isolation%";"-";"JohnDoe%isolation%@example.ccc";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerInvalidEmail";"Bug: MAGETWO-28875"
-"Main Website";"General";"-";"Thomas%isolation%";"-";"Oster%isolation%";"-";"Thomas%isolation%@example.com";"-";"5250008057";"-";"Thomas";"Oster";"Chmielna 113";"Bielsko-Biala";"Poland";"-";"43-310 ";"799885616";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm";"Bug: MAGETWO-30226"
+"customer/data/website_id";"customer/data/group_id/dataSet";"customer/data/prefix";"customer/data/firstname";"customer/data/middlename";"customer/data/lastname";"customer/data/suffix";"customer/data/email";"customer/data/dob";"customer/data/taxvat";"customer/data/gender";"address/data/firstname";"address/data/lastname";"address/data/street";"address/data/city";"address/data/country_id";"address/data/region_id";"address/data/postcode";"address/data/telephone";"constraint"
+"Main Website";"General";"-";"John%isolation%";"-";"Doe%isolation%";"-";"JohnDoe%isolation%@example.com";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm"
+"Admin";"Wholesale";"M";"John%isolation%";"Jack";"Doe%isolation%";"S";"JohnDoe%isolation%@example.com";"3/16/2004";"-";"Male";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm"
+"Main Website";"General";"-";"John%isolation%";"-";"Doe%isolation%";"-";"JohnDoe%isolation%@example.com";"-";"-";"-";"Joe";"Doe";"1 Main Street";"Culver City";"United States";"California";"90230";"3109450345";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm"
+"Main Website";"Retailer";"-";"John%isolation%";"-";"Doe%isolation%";"-";"JohnDoe%isolation%@example.ccc";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerInvalidEmail"
+"Main Website";"General";"-";"Thomas%isolation%";"-";"Oster%isolation%";"-";"Thomas%isolation%@example.com";"-";"5250008057";"-";"Thomas";"Oster";"Chmielna 113";"Bielsko-Biala";"Poland";"-";"43-310 ";"799885616";"assertCustomerSuccessSaveMessage, assertCustomerInGrid, assertCustomerForm"
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateOrderFromCustomerPageTest.php b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateOrderFromCustomerPageTest.php
index 3f020bb8a3dcf..d8858d535e314 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateOrderFromCustomerPageTest.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/CreateOrderFromCustomerPageTest.php
@@ -93,18 +93,16 @@ public function test()
*/
public function tearDown()
{
- $setConfigStep = $this->objectManager->create(
- 'Magento\Core\Test\TestStep\SetupConfigurationStep',
- ['configData' => $this->currentVariation['arguments']['configData'], 'rollback' => true]
- );
- $setConfigStep->run();
- $this->customerAccountLogout->open();
-
// Deleting exchange rates
$this->rewardRateIndexPage->open();
while ($this->rewardRateIndexPage->getRewardRateGrid()->isFirstRowVisible()) {
$this->rewardRateIndexPage->getRewardRateGrid()->openFirstRow();
$this->rewardRateNewPage->getFormPageActions()->delete();
}
+ $this->customerAccountLogout->open();
+ $this->objectManager->create(
+ 'Magento\Core\Test\TestStep\SetupConfigurationStep',
+ ['configData' => $this->currentVariation['arguments']['configData'], 'rollback' => true]
+ )->run();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerBackendEntityTest/testUpdateCustomerBackendEntity.csv b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerBackendEntityTest/testUpdateCustomerBackendEntity.csv
index aabdfc2d31fb4..649c9f7842c9f 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerBackendEntityTest/testUpdateCustomerBackendEntity.csv
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerBackendEntityTest/testUpdateCustomerBackendEntity.csv
@@ -1,4 +1,4 @@
"initialCustomer/dataSet";"customer/data/group_id/dataSet";"customer/data/prefix";"customer/data/firstname";"customer/data/middlename";"customer/data/lastname";"customer/data/suffix";"customer/data/email";"customer/data/dob";"customer/data/taxvat";"customer/data/gender";"address/data/prefix";"address/data/firstname";"address/data/middlename";"address/data/lastname";"address/data/suffix";"address/data/company";"address/data/street";"address/data/city";"address/data/country_id";"address/data/region_id";"address/data/region";"address/data/postcode";"address/data/telephone";"address/data/fax";"address/data/vat_id";"constraint";"issue"
-"default";"Wholesale";"%isolation%Prefix_";"John_%isolation%";"Middle Name %isolation%";"Doe%isolation%";"_Suffix%isolation%";"JohnDoe%isolation%@example.com";1/8/1986;123456789001;"Male";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerSuccessSaveMessage, assertCustomerForm, assertCustomerInGrid";""
-"default";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"Prefix%isolation%_";"Doe%isolation%";"Middle Name %isolation%";"Doe%isolation%";"_Suffix%isolation%";"Company%isolation%";"3962 Horner Street";"Dothan";"United States";"Alabama";"-";36303;"334-200-4060";"555-666-777-8910";"U1234567890";"assertCustomerSuccessSaveMessage, assertCustomerForm, assertCustomerInGrid";"Bug: MAGETWO-30226"
-"default";"Retailer";"%isolation%Prefix_";"Jane_%isolation%";"Jane Middle Name %isolation%";"Doe%isolation%";"_JaneSuffix%isolation%";"Jane%isolation%@example.com";1/12/2000;987654321;"Female";"Prefix%isolation%_";"Doe%isolation%";"Middle Name %isolation%";"Doe%isolation%";"_Suffix%isolation%";"Company%isolation%";"39 Northgate Street";"BICKTON";"United Kingdom";"-";"PINMINNOCH";"KA26 1PF ";"999-777-111-2345";"-";987654321;"assertCustomerSuccessSaveMessage, assertCustomerForm, assertCustomerInGrid";"Bug: MAGETWO-30226"
+"default";"Wholesale";"%isolation%Prefix_";"John_%isolation%";"Middle Name %isolation%";"Doe%isolation%";"_Suffix%isolation%";"JohnDoe%isolation%@example.com";1/8/1986;123456789001;"Male";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertCustomerSuccessSaveMessage, assertCustomerForm, assertCustomerInGrid";"Bug: MAGETWO-31689"
+"default";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"Prefix%isolation%_";"Doe%isolation%";"Middle Name %isolation%";"Doe%isolation%";"_Suffix%isolation%";"Company%isolation%";"3962 Horner Street";"Dothan";"United States";"Alabama";"-";36303;"334-200-4060";"555-666-777-8910";"U1234567890";"assertCustomerSuccessSaveMessage, assertCustomerForm, assertCustomerInGrid";""
+"default";"Retailer";"%isolation%Prefix_";"Jane_%isolation%";"Jane Middle Name %isolation%";"Doe%isolation%";"_JaneSuffix%isolation%";"Jane%isolation%@example.com";1/12/2000;987654321;"Female";"Prefix%isolation%_";"Doe%isolation%";"Middle Name %isolation%";"Doe%isolation%";"_Suffix%isolation%";"Company%isolation%";"39 Northgate Street";"BICKTON";"United Kingdom";"-";"PINMINNOCH";"KA26 1PF ";"999-777-111-2345";"-";987654321;"assertCustomerSuccessSaveMessage, assertCustomerForm, assertCustomerInGrid";""
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerFrontendEntity.php b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerFrontendEntity.php
index 1e38cf75dc121..ee0b3fbc58322 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerFrontendEntity.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerFrontendEntity.php
@@ -34,6 +34,8 @@
*
* @group Customer_Account_(CS)
* @ZephyrId MAGETWO-25925
+ *
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class UpdateCustomerFrontendEntity extends Injectable
{
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/VatGroupAssignmentTest.php b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/VatGroupAssignmentTest.php
index a052d02b70c65..0df559a2205ac 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/VatGroupAssignmentTest.php
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/VatGroupAssignmentTest.php
@@ -27,7 +27,6 @@ class VatGroupAssignmentTest extends Functional
*/
protected function setUp()
{
- $this->markTestIncomplete('Bug: MAGETWO-30630');
Factory::getApp()->magentoBackendLoginUser();
$this->vatFixture = Factory::getFixtureFactory()->getMagentoCustomerVatGroup();
}
diff --git a/dev/tests/functional/tests/app/Magento/Customer/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Customer/Test/etc/constraint.xml
index fc4197089a59f..8d2d4b7694e95 100644
--- a/dev/tests/functional/tests/app/Magento/Customer/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Customer/Test/etc/constraint.xml
@@ -6,39 +6,39 @@
-->
- low
+ low
- low
+ low
- low
+ low
- middle
+ middle
- middle
+ middle
- middle
+ middle
@@ -46,7 +46,7 @@
- middle
+ middle
@@ -54,79 +54,79 @@
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Block/Adminhtml/Edit/CustomerForm.xml b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Block/Adminhtml/Edit/CustomerForm.xml
index b0c82c514588a..d58fb87e02bd7 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Block/Adminhtml/Edit/CustomerForm.xml
+++ b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Block/Adminhtml/Edit/CustomerForm.xml
@@ -7,7 +7,7 @@
\Magento\CustomerBalance\Test\Block\Adminhtml\Customer\Edit\Tab\Tab
- #customer_info_tabs_customerbalance
+ #tab_customerbalancecss selectorcustomerbalance
diff --git a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceAmount.php b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceAmount.php
index ff5f71754e43b..2be047eb0269a 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceAmount.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceAmount.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerBalanceAmount extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customer balance amount is changed
diff --git a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceHistory.php b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceHistory.php
index 0b46aeac47c63..3f6a174a06f41 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceHistory.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertCustomerBalanceHistory.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerBalanceHistory extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customer balance history is changed
diff --git a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertRemoveStoreCreditSuccessMessage.php b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertRemoveStoreCreditSuccessMessage.php
index 2799a9b88d22f..648b0cce3b6fb 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertRemoveStoreCreditSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/Constraint/AssertRemoveStoreCreditSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertRemoveStoreCreditSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message displayed after remove store credit
*/
const SUCCESS_REMOVE_MESSAGE = 'The store credit payment has been removed from shopping cart.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after remove store credit successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/TestCase/DeleteStoreCreditFromCurrentQuoteTest.php b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/TestCase/DeleteStoreCreditFromCurrentQuoteTest.php
index 8103d3f7b3593..8eba08129801c 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/TestCase/DeleteStoreCreditFromCurrentQuoteTest.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/TestCase/DeleteStoreCreditFromCurrentQuoteTest.php
@@ -150,8 +150,6 @@ public function test(
array $shipping,
array $payment
) {
- $this->markTestIncomplete("Bug: MAGETWO-30435");
-
// Precondition
$customer->persist();
$customerBalance = $this->fixtureFactory->createByCode(
diff --git a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/etc/constraint.xml
index b9ff95d52a446..f0f7be8978a98 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CustomerBalance/Test/etc/constraint.xml
@@ -6,12 +6,12 @@
-->
- low
+ low
- low
+ low
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeErrorDuplicateMessage.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeErrorDuplicateMessage.php
index fe20105a81f9f..d71d319dd7bd2 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeErrorDuplicateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeErrorDuplicateMessage.php
@@ -13,18 +13,15 @@
*/
class AssertCustomerCustomAttributeErrorDuplicateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text of error duplicate message
*/
const ERROR_DUPLICATE_MESSAGE = 'An attribute with this code already exists.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after customer attribute error duplicate message appears
*
@@ -33,11 +30,9 @@ class AssertCustomerCustomAttributeErrorDuplicateMessage extends AbstractConstra
*/
public function processAssert(CustomerAttributeNew $customerAttributeNew)
{
- $customerAttributeNew->getCustomerCustomAttributesForm()->openTab('properties');
- $errors = $customerAttributeNew->getCustomerCustomAttributesForm()->getTabElement('properties')->getJsErrors();
\PHPUnit_Framework_Assert::assertEquals(
self::ERROR_DUPLICATE_MESSAGE,
- $errors['Attribute Code']
+ $customerAttributeNew->getMessagesBlock()->getErrorMessages()
);
}
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInCustomerSegment.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInCustomerSegment.php
index a1bb1649419eb..4838be5fc887b 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInCustomerSegment.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInCustomerSegment.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerCustomAttributeInCustomerSegment extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is available during creation of customer segments
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInGrid.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInGrid.php
index bf3a9afcaafff..b043851f3358c 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerCustomAttributeInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Customer Attribute can be found in grid via:
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInCustomerSegment.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInCustomerSegment.php
index b4f909f816e64..94f5c5116573e 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInCustomerSegment.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInCustomerSegment.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerCustomAttributeNotInCustomerSegment extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted customer attribute is not available during creation of customer segments
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInGrid.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInGrid.php
index 0ccebcf808ee1..feae3b53ad08e 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerCustomAttributeNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted customer attribute cannot be found in grid
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCheckoutRegister.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCheckoutRegister.php
index 64ff73634fd78..4d8643bed4b81 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCheckoutRegister.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCheckoutRegister.php
@@ -19,12 +19,9 @@
*/
class AssertCustomerCustomAttributeNotOnCheckoutRegister extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted customer attribute is not available during register customer on checkout
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCreateOrderBackend.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCreateOrderBackend.php
index c2f2310a3e259..9afc50636cb5a 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCreateOrderBackend.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCreateOrderBackend.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerCustomAttributeNotOnCreateOrderBackend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is absent during creating order on backend
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerEditPage.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerEditPage.php
index 34dc9a5a50b83..6f9270ef157a6 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerEditPage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerEditPage.php
@@ -19,12 +19,9 @@
*/
class AssertCustomerCustomAttributeNotOnCustomerEditPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is absent during edit customer account on frontend
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerRegister.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerRegister.php
index e6d2e5abac88d..05785fc42f8ca 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerRegister.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeNotOnCustomerRegister.php
@@ -16,12 +16,9 @@
*/
class AssertCustomerCustomAttributeNotOnCustomerRegister extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is absent during register customer on frontend
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCheckoutRegister.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCheckoutRegister.php
index d7e5b70cc48de..90351365fc97e 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCheckoutRegister.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCheckoutRegister.php
@@ -20,12 +20,9 @@
*/
class AssertCustomerCustomAttributeOnCheckoutRegister extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is available during register customer on checkout
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCreateOrderBackend.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCreateOrderBackend.php
index ce61024ba7551..40969f1182b88 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCreateOrderBackend.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCreateOrderBackend.php
@@ -17,12 +17,9 @@
*/
class AssertCustomerCustomAttributeOnCreateOrderBackend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is available during creating order on backend
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerEditPage.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerEditPage.php
index 230a67767b4ea..fb3fb9839378d 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerEditPage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerEditPage.php
@@ -18,12 +18,9 @@
*/
class AssertCustomerCustomAttributeOnCustomerEditPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is available during edit customer account on frontend
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerRegister.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerRegister.php
index 02cb968a8f3b2..db3556c9ea03e 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerRegister.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeOnCustomerRegister.php
@@ -16,12 +16,9 @@
*/
class AssertCustomerCustomAttributeOnCustomerRegister extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer attribute is available during register customer on frontend
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessDeleteMessage.php
index 5959dd099210f..a6605f3bad000 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCustomerCustomAttributeSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text of delete success message
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted the customer attribute.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after delete customer attribute successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessSaveMessage.php
index a234e8781059e..d0624fea9f46f 100755
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/Constraint/AssertCustomerCustomAttributeSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCustomerCustomAttributeSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text of save success message
*/
const SUCCESS_SAVE_MESSAGE = 'You saved the customer attribute.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after customer attribute save successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/TestCase/ValidationAttributeCodeCustomerCustomAttributesEntityTest.php b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/TestCase/ValidationAttributeCodeCustomerCustomAttributesEntityTest.php
index 999edd12aa355..386d26670baba 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/TestCase/ValidationAttributeCodeCustomerCustomAttributesEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/TestCase/ValidationAttributeCodeCustomerCustomAttributesEntityTest.php
@@ -74,7 +74,6 @@ public function test(
CustomerCustomAttribute $customerAttribute,
CustomerCustomAttribute $initialCustomerAttribute
) {
- $this->markTestIncomplete('MAGETWO-28194');
//Preconditions
$initialCustomerAttribute->persist();
$customerAttribute = $fixtureFactory->createByCode(
diff --git a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/etc/constraint.xml
index 2ce5969d4cd36..73f40c8fa8a86 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CustomerCustomAttributes/Test/etc/constraint.xml
@@ -6,33 +6,33 @@
-->
- high
+ high
- high
+ high
- low
+ low
- low
+ low
- low
+ low
@@ -43,7 +43,7 @@
- low
+ low
@@ -54,7 +54,7 @@
- low
+ low
@@ -63,7 +63,7 @@
- low
+ low
@@ -74,7 +74,7 @@
- low
+ low
@@ -83,7 +83,7 @@
- low
+ low
@@ -92,7 +92,7 @@
- low
+ low
@@ -101,7 +101,7 @@
- low
+ low
@@ -109,7 +109,7 @@
- low
+ low
@@ -118,7 +118,7 @@
- low
+ low
@@ -128,6 +128,6 @@
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentAvailableInBannerForm.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentAvailableInBannerForm.php
index 3d0988dec0300..50c06362ae610 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentAvailableInBannerForm.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentAvailableInBannerForm.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerSegmentAvailableInBannerForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer segment is available in Banner edit page
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentForm.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentForm.php
index 4ad4c46949b12..e4586239ab7f2 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentForm.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentForm.php
@@ -16,6 +16,10 @@
*/
class AssertCustomerSegmentForm extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Skipped fields for verify data
*
@@ -23,13 +27,6 @@ class AssertCustomerSegmentForm extends AbstractAssertForm
*/
protected $skippedFields = ['conditions_serialized', 'segment_id'];
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that displayed segment data on edit page is equals passed from fixture
*
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsApplying.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsApplying.php
index 28b7f5d658db3..6d3b23d3f1e35 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsApplying.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsApplying.php
@@ -11,12 +11,9 @@
*/
class AssertCustomerSegmentInCartPriceRuleIsApplying extends AbstractAssertCustomerSegmentPriceRuleApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Catalog Price Rule is applied on product(s) in shopping cart according to rule condition has been
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsNotApplying.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsNotApplying.php
index 9dde9b5d44f1b..5bb87ae995fc2 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsNotApplying.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInCartPriceRuleIsNotApplying.php
@@ -11,12 +11,9 @@
*/
class AssertCustomerSegmentInCartPriceRuleIsNotApplying extends AbstractAssertCustomerSegmentPriceRuleApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that shopping cart subtotal equals with grand total
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInGrid.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInGrid.php
index a8952e6577e01..9e61b2ae9c50d 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerSegmentInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer segment presents in grid and has correct 'Segment','Status','Website'
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomer.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomer.php
index 122a9533c643e..371f2c35c59da 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomer.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomer.php
@@ -18,12 +18,9 @@
*/
class AssertCustomerSegmentMatchedCustomer extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that grid on 'Matched Customer' tab contains customer according to conditions
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomerWithCart.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomerWithCart.php
index 896197703241a..ca98182b6e814 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomerWithCart.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomerWithCart.php
@@ -11,12 +11,9 @@
*/
class AssertCustomerSegmentMatchedCustomerWithCart extends AbstractAssertCustomerSegmentPriceRuleApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that grid on 'Matched Customer' tab contains customer according to conditions(it need save condition
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomersInGrid.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomersInGrid.php
index d475d744e4820..60195d462bd4b 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomersInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentMatchedCustomersInGrid.php
@@ -18,12 +18,9 @@
*/
class AssertCustomerSegmentMatchedCustomersInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that the customer according to search criteria presents in the grid and have correct values for
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotApplicableToBanner.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotApplicableToBanner.php
index cf3cd29ed9895..8d59bf386bd8d 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotApplicableToBanner.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotApplicableToBanner.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerSegmentNotApplicableToBanner extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer segment is not available in Banner edit page
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotInGrid.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotInGrid.php
index 85e524287c95b..8b6536cd79c90 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerSegmentNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created customer segment not presents in grid
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportInGrid.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportInGrid.php
index 97649afd4b3db..0dd92b0a66345 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertCustomerSegmentReportInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that created customer segment report presents in the grid and customer from it has correct values
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportMessage.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportMessage.php
index 00b5d772c81e6..5689a294090cd 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportMessage.php
@@ -15,18 +15,15 @@
*/
class AssertCustomerSegmentReportMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Customer segments report messages
*/
const REPORT_MESSAGES = 'Viewing combined "%s" report from segments: %s.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that message is displayed on the customer segment report detail page
*
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportNotInGrid.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportNotInGrid.php
index e008793bdb834..6e0bace5abdf2 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentReportNotInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertCustomerSegmentReportNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that created customer is absent in a customer segment grid
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessDeleteMessage.php
index a7ded8dd3434c..ec691f1f4a460 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCustomerSegmentSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success delete message
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted the segment.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success delete message is displayed after Customer Segments has been deleted
*
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessSaveMessage.php
index 1e1da03f7030a..0e07991932078 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/Constraint/AssertCustomerSegmentSuccessSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCustomerSegmentSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the segment.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You saved the segment.';
/**
* Assert that success message is displayed after Customer Segments saved
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/CreateCustomerSegmentEntityTest.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/CreateCustomerSegmentEntityTest.php
index a203f1255af34..5c5e15bb9f693 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/CreateCustomerSegmentEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/CreateCustomerSegmentEntityTest.php
@@ -173,7 +173,6 @@ public function test(
array $salesRule,
AssertCustomerSegmentSuccessSaveMessage $assertCustomerSegmentSuccessSaveMessage
) {
- $this->markTestIncomplete('MAGETWO-30226');
//Preconditions
$customer->persist();
$filter = ['email' => $customer->getEmail()];
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/UpdateCustomerSegmentEntityTest.php b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/UpdateCustomerSegmentEntityTest.php
index 73e9869be9d26..3125701d8c61f 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/UpdateCustomerSegmentEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/TestCase/UpdateCustomerSegmentEntityTest.php
@@ -159,7 +159,6 @@ public function test(
CustomerSegment $customerSegment,
CustomerSegment $customerSegmentOriginal
) {
- $this->markTestIncomplete('MAGETWO-30226');
//Preconditions
$customer->persist();
$this->customerIndexPage->open();
diff --git a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/etc/constraint.xml
index 82dfcb99f15bc..6245a1fc416a9 100644
--- a/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/CustomerSegment/Test/etc/constraint.xml
@@ -6,48 +6,48 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- high
+ high
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableDuplicateForm.php b/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableDuplicateForm.php
index 5101e25b5885e..7f970611ba238 100644
--- a/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableDuplicateForm.php
+++ b/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableDuplicateForm.php
@@ -15,12 +15,9 @@
*/
class AssertDownloadableDuplicateForm extends AssertProductDuplicateForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert form data equals duplicate product downloadable data
diff --git a/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableLinksData.php b/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableLinksData.php
index 0bd66102e5358..e2fe6770bafa2 100644
--- a/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableLinksData.php
+++ b/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableLinksData.php
@@ -17,6 +17,10 @@
*/
class AssertDownloadableLinksData extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* List downloadable link fields for verify
*
@@ -38,13 +42,6 @@ class AssertDownloadableLinksData extends AbstractAssertForm
'price',
];
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert Link block for downloadable product on front-end
*
diff --git a/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableSamplesData.php b/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableSamplesData.php
index be912e602950c..1c216b2325626 100644
--- a/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableSamplesData.php
+++ b/dev/tests/functional/tests/app/Magento/Downloadable/Test/Constraint/AssertDownloadableSamplesData.php
@@ -17,6 +17,10 @@
*/
class AssertDownloadableSamplesData extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* List downloadable sample links fields for verify
*
@@ -36,13 +40,6 @@ class AssertDownloadableSamplesData extends AbstractAssertForm
'title',
];
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert Sample block for downloadable product on front-end
*
diff --git a/dev/tests/functional/tests/app/Magento/Downloadable/Test/TestCase/CreateDownloadableProductEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Downloadable/Test/TestCase/CreateDownloadableProductEntityTest/test.csv
index 1b875f13b3663..486f051573ba4 100644
--- a/dev/tests/functional/tests/app/Magento/Downloadable/Test/TestCase/CreateDownloadableProductEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Downloadable/Test/TestCase/CreateDownloadableProductEntityTest/test.csv
@@ -1,15 +1,15 @@
-"product/data/name";"product/data/sku";"product/data/price/value";"product/data/tax_class_id/dataSet";"product/data/quantity_and_stock_status/qty";"product/data/quantity_and_stock_status/is_in_stock";"product/data/is_virtual";"product/data/category";"product/data/description";"product/data/short_description";"product/data/stock_data/manage_stock";"product/data/stock_data/qty";"product/data/stock_data/use_config_min_qty";"product/data/stock_data/min_qty";"product/data/downloadable_sample/preset";"product/data/downloadable_links/preset";"product/data/custom_options/preset";"product/data/custom_options/import_products";"product/data/special_price";"product/data/group_price/preset";"product/data/tier_price/preset";"product/data/url_key";"constraint";"issue"
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"100";"Taxable Goods";"1";"In Stock";"Yes";"Default Category";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductVisibleInCategory, assertProductPage, assertProductInStock";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"1";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"default";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductVisibleInCategory, assertDownloadableSamplesData, assertDownloadableLinksData";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"33";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"default";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertDownloadableProductForm, assertProductCustomOptionsOnProductPage, assertProductVisibleInCategory, assertProductPage, assertDownloadableLinksData";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"55";"Taxable Goods";"10";"In Stock";"Yes";"-";"-";"-";"-";"-";"-";"-";"with_three_samples";"with_three_links";"two_options";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductCustomOptionsOnProductPage, assertProductInGrid, assertDownloadableProductForm, assertProductVisibleInCategory, assertProductPage, assertDownloadableLinksData, assertProductInStock, assertProductSearchableBySku";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"100";"Taxable Goods";"50";"Out of Stock";"Yes";"Default Category";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductOutOfStock, assertProductInGrid, assertDownloadableProductForm";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"9999";"Taxable Goods";"-";"-";"Yes";"Default Category";"-";"-";"Yes";"123";"No";"123";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductOutOfStock";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"98";"None";"5";"In Stock";"Yes";"Default Category";"This is description for downloadable product";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"57";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"This is short description for downloadable product";"-";"-";"-";"-";"default";"with_three_links";"default";"catalogProductSimple::with_two_custom_option,catalogProductSimple::with_all_custom_option";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductCustomOptionsOnProductPage, assertDownloadableSamplesData, assertDownloadableLinksData";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"65";"Taxable Goods";"11";"In Stock";"Yes";"category %isolation%";"This is description for downloadable product";"This is short description for downloadable product";"-";"-";"-";"-";"default";"with_three_links";"default";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductPage, assertProductInGrid, assertDownloadableProductForm, assertProductCustomOptionsOnProductPage, assertDownloadableSamplesData, assertDownloadableLinksData";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"65";"Taxable Goods";"11";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"default";"with_three_links";"default";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertDownloadableLinksData, assertProductCustomOptionsOnProductPage";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"100";"Taxable Goods";"-";"-";"Yes";"Default Category";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertDownloadableProductForm, assertProductVisibleInCategory, assertProductPage";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"10";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"5";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductSpecialPriceOnProductPage";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"365";"Taxable Goods";"23";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"default";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductGroupedPriceOnProductPage";""
-"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"250";"Taxable Goods";"65";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"default";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductTierPriceOnProductPage";""
+"product/data/name";"product/data/sku";"product/data/price/value";"product/data/tax_class_id/dataSet";"product/data/quantity_and_stock_status/qty";"product/data/quantity_and_stock_status/is_in_stock";"product/data/is_virtual";"product/data/category";"product/data/description";"product/data/short_description";"product/data/stock_data/manage_stock";"product/data/stock_data/qty";"product/data/stock_data/use_config_min_qty";"product/data/stock_data/min_qty";"product/data/downloadable_sample/preset";"product/data/downloadable_links/preset";"product/data/custom_options/preset";"product/data/custom_options/import_products";"product/data/special_price";"product/data/group_price/preset";"product/data/tier_price/preset";"product/data/url_key";"constraint"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"100";"Taxable Goods";"1";"In Stock";"Yes";"Default Category";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductVisibleInCategory, assertProductPage, assertProductInStock"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"1";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"default";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductVisibleInCategory, assertDownloadableSamplesData, assertDownloadableLinksData"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"33";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"default";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertDownloadableProductForm, assertProductCustomOptionsOnProductPage, assertProductVisibleInCategory, assertProductPage, assertDownloadableLinksData"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"55";"Taxable Goods";"10";"In Stock";"Yes";"-";"-";"-";"-";"-";"-";"-";"with_three_samples";"with_three_links";"two_options";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductCustomOptionsOnProductPage, assertProductInGrid, assertDownloadableProductForm, assertProductVisibleInCategory, assertProductPage, assertDownloadableLinksData, assertProductInStock, assertProductSearchableBySku"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"100";"Taxable Goods";"50";"Out of Stock";"Yes";"Default Category";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductOutOfStock, assertProductInGrid, assertDownloadableProductForm"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"9999";"Taxable Goods";"-";"-";"Yes";"Default Category";"-";"-";"Yes";"123";"No";"123";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductOutOfStock"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"98";"None";"5";"In Stock";"Yes";"Default Category";"This is description for downloadable product";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"57";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"This is short description for downloadable product";"-";"-";"-";"-";"default";"with_three_links";"default";"catalogProductSimple::with_two_custom_option,catalogProductSimple::with_all_custom_option";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductCustomOptionsOnProductPage, assertDownloadableSamplesData, assertDownloadableLinksData"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"65";"Taxable Goods";"11";"In Stock";"Yes";"category %isolation%";"This is description for downloadable product";"This is short description for downloadable product";"-";"-";"-";"-";"default";"with_three_links";"default";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductPage, assertProductInGrid, assertDownloadableProductForm, assertProductCustomOptionsOnProductPage, assertDownloadableSamplesData, assertDownloadableLinksData"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"65";"Taxable Goods";"11";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"default";"with_three_links";"default";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertDownloadableLinksData, assertProductCustomOptionsOnProductPage"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"100";"Taxable Goods";"-";"-";"Yes";"Default Category";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertDownloadableProductForm, assertProductVisibleInCategory, assertProductPage"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"10";"Taxable Goods";"10";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"5";"-";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductSpecialPriceOnProductPage"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"365";"Taxable Goods";"23";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"default";"-";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductGroupedPriceOnProductPage"
+"DownloadableProduct_%isolation%";"DownloadableProduct_%isolation%";"250";"Taxable Goods";"65";"In Stock";"Yes";"category %isolation%";"-";"-";"-";"-";"-";"-";"-";"default";"-";"-";"-";"-";"default";"downloadableproduct-%isolation%";"assertProductSaveMessage, assertProductInGrid, assertDownloadableProductForm, assertProductPage, assertProductTierPriceOnProductPage"
diff --git a/dev/tests/functional/tests/app/Magento/Downloadable/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Downloadable/Test/etc/constraint.xml
index f121e08d53c56..b10f5bbe51463 100644
--- a/dev/tests/functional/tests/app/Magento/Downloadable/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Downloadable/Test/etc/constraint.xml
@@ -6,16 +6,16 @@
-->
- low
+ low
- low
+ low
- low
+ low
- high
+ high
@@ -23,6 +23,6 @@
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicateForm.php b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicateForm.php
index aa8be1019c762..21fe39f26c44a 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicateForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicateForm.php
@@ -11,19 +11,16 @@
use Mtf\Fixture\FixtureInterface;
/**
- * Class AssertGiftCardDuplicateForm
+ * Assert form data equals fixture data.
*/
class AssertGiftCardDuplicateForm extends AssertProductDuplicateForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
- * Assert form data equals duplicate gift card data
+ * Assert form data equals duplicate gift card data.
*
* @param FixtureInterface $product
* @param CatalogProductIndex $productGrid
@@ -36,7 +33,8 @@ public function processAssert(
CatalogProductEdit $productPage
) {
$filter = ['sku' => $product->getSku() . '-1'];
- $productGrid->open()->getProductGrid()->searchAndOpen($filter);
+ $productGrid->open();
+ $productGrid->getProductGrid()->searchAndOpen($filter);
$formData = $productPage->getProductForm()->getData($product);
$fixtureData = $this->prepareFixtureData($product->getData());
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicatedInGrid.php b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicatedInGrid.php
index 55e2046d2c849..67a3d2e768039 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicatedInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardDuplicatedInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertGiftCardDuplicatedInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that duplicated product is found by sku and has correct product type, product template,
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductAddToCartForm.php b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductAddToCartForm.php
index 4c13b93122d8f..0b4a77acac657 100755
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductAddToCartForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductAddToCartForm.php
@@ -17,18 +17,15 @@
*/
class AssertGiftCardProductAddToCartForm extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Value for choose custom option
*/
const CUSTOM_OPTION = 'custom';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that displayed amount, "Sender Name", "Sender Email", "Recipient Name", "Recipient Email", "Message" data
* on product page(front-end) equals passed from fixture.
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductForm.php b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductForm.php
index 1148abaa0aa43..6edf38c748341 100755
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Constraint/AssertGiftCardProductForm.php
@@ -12,6 +12,10 @@
*/
class AssertGiftCardProductForm extends AssertProductForm
{
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
+
/**
* Sort fields for fixture and form data
*
@@ -20,11 +24,4 @@ class AssertGiftCardProductForm extends AssertProductForm
protected $sortFields = [
'giftcard_amounts::price',
];
-
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
}
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.php b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.php
index f86a9283dd2d8..2d0287740d03d 100755
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.php
@@ -338,6 +338,11 @@ class GiftCardProduct extends InjectableFixture
'group' => 'websites',
];
+ protected $id = [
+ 'attribute_code' => 'id',
+ 'backend_type' => 'virtual',
+ ];
+
public function getWebsiteIds()
{
return $this->getData('website_ids');
@@ -497,4 +502,9 @@ public function getStatus()
{
return $this->getData('status');
}
+
+ public function getId()
+ {
+ return $this->getData('id');
+ }
}
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.xml b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.xml
index e12cecf5c847c..352f2401310ce 100755
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.xml
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Fixture/GiftCardProduct.xml
@@ -257,6 +257,10 @@
Main Websitewebsites
+
+ id
+ virtual
+
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Repository/GiftCardProduct.php b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Repository/GiftCardProduct.php
index 85e8989f01329..6d9511042c34a 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/Repository/GiftCardProduct.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/Repository/GiftCardProduct.php
@@ -46,7 +46,7 @@ public function __construct(array $defaultConfig = [], array $defaultData = [])
'allow_message' => 'Yes',
'use_config_allow_message' => 'Yes',
'email_template' => 'Gift Card(s) Purchase (Default)',
- 'use_config_email_template' => 'Yes',
+ 'use_config_email_template' => 'No',
'visibility' => 'Catalog, Search',
'url_key' => 'test-product-giftcard-%isolation%',
'use_config_gift_message_available' => 'Yes',
diff --git a/dev/tests/functional/tests/app/Magento/GiftCard/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/GiftCard/Test/etc/constraint.xml
index 3a2dab5ce19df..55bc29f16d598 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCard/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/GiftCard/Test/etc/constraint.xml
@@ -6,16 +6,16 @@
-->
- high
+ high
- middle
+ middle
- middle
+ middle
- high
+ high
@@ -23,16 +23,16 @@
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountForm.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountForm.php
index 58ecd197ed6c1..64d7ac55db874 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountForm.php
@@ -16,6 +16,10 @@
*/
class AssertGiftCardAccountForm extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Skipped fields for verify data
*
@@ -23,13 +27,6 @@ class AssertGiftCardAccountForm extends AbstractAssertForm
*/
protected $skippedFields = ['code'];
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that gift card account equals to passed from fixture
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountInGrid.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountInGrid.php
index 302c967d443da..94c93857ebef8 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertGiftCardAccountInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that gift card account in grid.
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountIsNotUsableInCartOnFrontend.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountIsNotUsableInCartOnFrontend.php
index 4a8ccee7328f0..9fff9ca558595 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountIsNotUsableInCartOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountIsNotUsableInCartOnFrontend.php
@@ -17,12 +17,9 @@
*/
class AssertGiftCardAccountIsNotUsableInCartOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that gift card is not usable in cart on frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotInGrid.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotInGrid.php
index 59e47aff20f46..553def22b0a9a 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGiftCardAccountNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that gift card account not in grid
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotRedeemableOnFrontend.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotRedeemableOnFrontend.php
index 29ced112d1c54..155e1d89919a6 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotRedeemableOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountNotRedeemableOnFrontend.php
@@ -15,12 +15,9 @@
*/
class AssertGiftCardAccountNotRedeemableOnFrontend extends AbstractAssertGiftCardAccountOnFrontend
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that gift card is not redeemable on frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountOnPrintOrder.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountOnPrintOrder.php
index 25c093ac10fc1..738819543c12f 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountOnPrintOrder.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountOnPrintOrder.php
@@ -14,12 +14,9 @@
*/
class AssertGiftCardAccountOnPrintOrder extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that gift card amount printed correctly on sales guest print page.
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountRedeemableOnFrontend.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountRedeemableOnFrontend.php
index d496c3caa1101..5b46175f0c29e 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountRedeemableOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountRedeemableOnFrontend.php
@@ -16,18 +16,15 @@
*/
class AssertGiftCardAccountRedeemableOnFrontend extends AbstractAssertGiftCardAccountOnFrontend
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'Gift Card "%s" was redeemed.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that gift card is redeemable on frontend
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSaveMessage.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSaveMessage.php
index def95ae2a0936..3590b9668339d 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftCardAccountSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'You saved the gift card account.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after gift card account save
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInCustomerAccount.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInCustomerAccount.php
index eaeadf6c42581..8a13fe338d5d9 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInCustomerAccount.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInCustomerAccount.php
@@ -16,12 +16,9 @@
*/
class AssertGiftCardAccountStatusInCustomerAccount extends AbstractAssertGiftCardAccountOnFrontend
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created gift card account can be verified on the frontend on My Account page
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInShoppingCart.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInShoppingCart.php
index 95bd6d37a36d8..c1701a81b9547 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountStatusInShoppingCart.php
@@ -18,12 +18,9 @@
*/
class AssertGiftCardAccountStatusInShoppingCart extends AbstractAssertGiftCardAccountOnFrontend
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created gift card account can be verified on the frontend in Shopping Cart
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSuccessDeleteMessage.php
index 7b9f13fc55dac..6f7a95f6a1cae 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftCardAccountSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_DELETE_MESSAGE = 'This gift card account has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that gift card account delete success message is present
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountUsableInCartOnFrontend.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountUsableInCartOnFrontend.php
index 0afd0d8af68bc..d1d417fcac429 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountUsableInCartOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardAccountUsableInCartOnFrontend.php
@@ -17,12 +17,9 @@
*/
class AssertGiftCardAccountUsableInCartOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that gift card usable in frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardDiscount.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardDiscount.php
index bb8ebbec2f8d4..153e7a153049d 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardDiscount.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardDiscount.php
@@ -14,12 +14,9 @@
*/
class AssertGiftCardDiscount extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sum of gift card discount is equal to passed from dataSet in shopping cart
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardSuccessAddMessage.php b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardSuccessAddMessage.php
index ba80a414ca1bb..dcf7d2361676e 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardSuccessAddMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/Constraint/AssertGiftCardSuccessAddMessage.php
@@ -15,18 +15,15 @@
*/
class AssertGiftCardSuccessAddMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_APPLY_MESSAGE = 'Gift Card "%s" was added.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success apply message is displayed on "Shopping Cart" frontend page
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/etc/constraint.xml
index 84d0ed6172119..90212d9ddb28b 100644
--- a/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/GiftCardAccount/Test/etc/constraint.xml
@@ -6,45 +6,45 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInBackendOrder.php b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInBackendOrder.php
index af6b504bacc99..d8358b6df9d1c 100644
--- a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInBackendOrder.php
+++ b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInBackendOrder.php
@@ -16,12 +16,9 @@
*/
class AssertGiftMessageInBackendOrder extends AbstractAssertForm
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Skipped fields for verify data.
diff --git a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrder.php b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrder.php
index a5739bcf1e3ce..e21c1a245cd09 100644
--- a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrder.php
+++ b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrder.php
@@ -18,12 +18,9 @@
*/
class AssertGiftMessageInFrontendOrder extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that message from dataSet is displayed on order(s) view page on frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrderItems.php b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrderItems.php
index 34ea83cdcce70..15d740f2412cf 100644
--- a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrderItems.php
+++ b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/Constraint/AssertGiftMessageInFrontendOrderItems.php
@@ -18,12 +18,9 @@
*/
class AssertGiftMessageInFrontendOrderItems extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that message from dataSet is displayed for each items on order(s) view page on frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/TestCase/CheckoutWithGiftMessagesTest.php b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/TestCase/CheckoutWithGiftMessagesTest.php
index 9280a88bf8ec5..48e9b9fb95a7a 100644
--- a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/TestCase/CheckoutWithGiftMessagesTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/TestCase/CheckoutWithGiftMessagesTest.php
@@ -35,7 +35,6 @@ class CheckoutWithGiftMessagesTest extends Scenario
*/
public function test()
{
- $this->markTestIncomplete("Bug: MAGETWO-30593");
$this->executeScenario();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/etc/constraint.xml
index 571bc650957c6..9edbcc7193389 100644
--- a/dev/tests/functional/tests/app/Magento/GiftMessage/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/GiftMessage/Test/etc/constraint.xml
@@ -6,12 +6,12 @@
-->
- high
+ high
- high
+ high
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Block/Adminhtml/Edit/CustomerForm.xml b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Block/Adminhtml/Edit/CustomerForm.xml
index a160f96194ff0..ad4d51fb47380 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Block/Adminhtml/Edit/CustomerForm.xml
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Block/Adminhtml/Edit/CustomerForm.xml
@@ -7,7 +7,7 @@
\Magento\GiftRegistry\Test\Block\Adminhtml\Customer\Edit\Tab\GiftRegistry
- #customer_info_tabs_giftregistry
+ #tab_giftregistrycss selector
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInShoppingCart.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInShoppingCart.php
index c3b041260888c..99cdba78d2314 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInShoppingCart.php
@@ -19,12 +19,9 @@
*/
class AssertGiftRegistryActiveInShoppingCart extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product can be added to active gift registry from Shopping Cart
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInWishlist.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInWishlist.php
index 712201adf5b2b..d465ab7aacd7b 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryActiveInWishlist.php
@@ -20,18 +20,15 @@
*/
class AssertGiftRegistryActiveInWishlist extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success message after gift registry has been added
*/
const SUCCESS_MESSAGE = 'The wish list item has been added to this gift registry.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that product can be added to active gift registry from Wishlist
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryForm.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryForm.php
index 3db27169482da..34e7f4cc1f0c7 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryForm.php
@@ -16,12 +16,9 @@
*/
class AssertGiftRegistryForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields for verify data
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInGrid.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInGrid.php
index da0b9e44af4a6..6d21e672ff99d 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGiftRegistryInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Gift Registry can be found at Gift Registry grid by title
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInactiveNotInWishlist.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInactiveNotInWishlist.php
index 5bbcfbf1e84ae..417ecb398ee44 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInactiveNotInWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryInactiveNotInWishlist.php
@@ -18,12 +18,9 @@
*/
class AssertGiftRegistryInactiveNotInWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product can not be added to inactive gift registry from Wishlist
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryIsEmptyMessage.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryIsEmptyMessage.php
index 4afc136205545..f31e889ec5d7a 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryIsEmptyMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryIsEmptyMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistryIsEmptyMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Gift registry info message
*/
const INFO_MESSAGE = 'This gift registry has no items.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that notice message appears if Gift Registry doesn't have any items after delete
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsForm.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsForm.php
index 8356c582d29df..2b65067cd3e40 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsForm.php
@@ -19,12 +19,9 @@
*/
class AssertGiftRegistryItemsForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed Gift Registry items data on edit page equals passed from fixture
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedFrontendSuccessMessage.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedFrontendSuccessMessage.php
index c583a934722dd..7ed64a1dc8fca 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedFrontendSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedFrontendSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistryItemsUpdatedFrontendSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry items update message
*/
const SUCCESS_MESSAGE = 'You updated the gift registry items.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after gift registry items has been updated
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedSuccessMessage.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedSuccessMessage.php
index 9c4c9ed6ec7d8..ffdd1fee09ba8 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryItemsUpdatedSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistryItemsUpdatedSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry update message
*/
const SUCCESS_MESSAGE = 'You updated this gift registry.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success update message is displayed after gift registry items updating on backend
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryManageItemsTab.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryManageItemsTab.php
index da319f179c2f3..14e394a657bc1 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryManageItemsTab.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryManageItemsTab.php
@@ -18,12 +18,9 @@
*/
class AssertGiftRegistryManageItemsTab extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Manage Items page on frontend contains correct product name and quantity
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryNotInGrid.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryNotInGrid.php
index a002c75975735..4fa77d9dd1fd8 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGiftRegistryNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Gift Registry can not be found at Gift Registry grid by title
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessAddedItemsMessage.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessAddedItemsMessage.php
index 2e8bf3920fee0..e626b1ce2c111 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessAddedItemsMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessAddedItemsMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistrySuccessAddedItemsMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success added to gift registry message
*/
const SUCCESS_MESSAGE = 'Shopping cart items have been added to gift registry.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after adding products to gift registry on backend
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessDeleteMessageOnBackend.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessDeleteMessageOnBackend.php
index b740fd8735667..ab09ae71fd2e2 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessDeleteMessageOnBackend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessDeleteMessageOnBackend.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistrySuccessDeleteMessageOnBackend extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry delete message
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted this gift registry entity.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert message appears after delete gift registry on backend
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessSaveMessage.php
index 3a5ff34a85048..ff2c5f5bc8a57 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistrySuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry save message
*/
const SUCCESS_MESSAGE = 'You saved this gift registry.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after gift registry has been created
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnBackend.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnBackend.php
index 6eed2ed0e7a60..506cfec0279dc 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnBackend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnBackend.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistrySuccessShareMessageOnBackend extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry share message on backend
*/
const SUCCESS_MESSAGE = '%d email(s) were sent.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after gift registry has been share on backend
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnFrontend.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnFrontend.php
index 97e68795d2e1d..5f5062e80f83b 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistrySuccessShareMessageOnFrontend.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistrySuccessShareMessageOnFrontend extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry share message on frontend
*/
const SUCCESS_MESSAGE = 'You shared the gift registry for %d emails.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after gift registry has been shared on frontend
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeForm.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeForm.php
index 52d9f05b347e4..9bd52ad4fb653 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeForm.php
@@ -16,12 +16,9 @@
*/
class AssertGiftRegistryTypeForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that GiftRegistryType form filled correctly
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeInGrid.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeInGrid.php
index f7bbe1e33e63c..a58893139cd49 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGiftRegistryTypeInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Gift Registry type can be found at Stores > Gift Registry grid in backend
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotInGrid.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotInGrid.php
index 161dbce8993c5..491ab0f333a9e 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGiftRegistryTypeNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted Gift Registry type is absent in Stores > Gift Registry grid in backend
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotOnFrontend.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotOnFrontend.php
index 7ea2682b43be3..32aa616264712 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeNotOnFrontend.php
@@ -20,12 +20,9 @@
*/
class AssertGiftRegistryTypeNotOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted Gift Registry type is absent on creation new gift registry form on my account on frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeOnFrontend.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeOnFrontend.php
index 9fd9d9404f355..f78cb0c69ce52 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeOnFrontend.php
@@ -18,12 +18,9 @@
*/
class AssertGiftRegistryTypeOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Gift Registry type can be found at Customer Account > Gift Registry
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessDeleteMessage.php
index ccff5891401cb..9d3567e419242 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistryTypeSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry delete message
*/
const DELETE_MESSAGE = 'You deleted the gift registry type.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success delete message is displayed after gift registry has been deleted
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessSaveMessage.php
index 3483207cb7b4a..fe554c9aac368 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/Constraint/AssertGiftRegistryTypeSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftRegistryTypeSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success gift registry type save message
*/
const SUCCESS_MESSAGE = 'You saved the gift registry type.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after save a Gift Registry type success message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryFrontendEntityTest.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryFrontendEntityTest.php
index a20039d95bfd6..e804daae43246 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryFrontendEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryFrontendEntityTest.php
@@ -36,7 +36,7 @@
* 8. Perform Asserts
*
* @group Gift_Registry_(CS)
- * @ZephyrId MAGETWO-26176
+ * @ZephyrId MAGETWO-26962
*/
class CreateGiftRegistryFrontendEntityTest extends Injectable
{
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryTypeEntityTest.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryTypeEntityTest.php
index 4b69df1ac7e28..d49672496155a 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryTypeEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/CreateGiftRegistryTypeEntityTest.php
@@ -88,6 +88,7 @@ public function __inject(
*/
public function test(GiftRegistryType $giftRegistryType)
{
+ $this->markTestIncomplete('Bug: MAGETWO-31247');
// Steps
$this->giftRegistryIndex->open();
$this->giftRegistryIndex->getPageActions()->addNew();
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/UpdateGiftRegistryTypeEntityTest.php b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/UpdateGiftRegistryTypeEntityTest.php
index 5035e9bd306a2..363241067e19e 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/UpdateGiftRegistryTypeEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/TestCase/UpdateGiftRegistryTypeEntityTest.php
@@ -99,6 +99,7 @@ public function __inject(
*/
public function test(GiftRegistryType $giftRegistryType, GiftRegistryType $giftRegistryTypeInitial)
{
+ $this->markTestIncomplete('Bug: MAGETWO-31247');
// Steps
$giftRegistryTypeInitial->persist();
$filter = ['label' => $giftRegistryTypeInitial->getLabel()];
diff --git a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/etc/constraint.xml
index 38269f9145a7d..abf9a9e68085a 100644
--- a/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/GiftRegistry/Test/etc/constraint.xml
@@ -6,75 +6,75 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingForm.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingForm.php
index 82e7088a25048..fac7efd6b5d33 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingForm.php
@@ -15,12 +15,9 @@
*/
class AssertGiftWrappingForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields while verifying
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingInGrid.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingInGrid.php
index 7188bbcca4fe3..fd8f2ba49f1c0 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertGiftWrappingInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert Gift Wrapping availability in Gift Wrapping grid
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionForm.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionForm.php
index 2a22f6aae0c55..43f4d34628757 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionForm.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionForm.php
@@ -16,12 +16,9 @@
*/
class AssertGiftWrappingMassActionForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @param GiftWrappingIndex $giftWrappingIndexPage
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionInGrid.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionInGrid.php
index 808d3caa34e89..e90eef577ffaa 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGiftWrappingMassActionInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert Gift Wrapping availability in Gift Wrapping grid after mass action
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionNotInGrid.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionNotInGrid.php
index 77daad677cc72..2b6f8bc283ef2 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertGiftWrappingMassActionNotInGrid extends AssertGiftWrappingNotInGrid
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted Gift Wrapping can not be found in grid via: id, design, website_id, status, price
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionSuccessDeleteMessage.php
index 8ef33e5079b11..50e8d947dc12c 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingMassActionSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftWrappingMassActionSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message displayed after delete gift wrapping
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted a total of %d records.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after mass delete Gift Wrapping successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotInGrid.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotInGrid.php
index a3f399027663c..cf26df3854146 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGiftWrappingNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted Gift Wrapping can not be found in grid via: id, design, website_id, status, price
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnFrontendCheckout.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnFrontendCheckout.php
index 2f9afb32713ff..947ed06a36a6c 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnFrontendCheckout.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnFrontendCheckout.php
@@ -22,12 +22,9 @@
*/
class AssertGiftWrappingNotOnFrontendCheckout extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted Gift Wrapping can not be found during one page checkout on frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnOrderCreationPage.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnOrderCreationPage.php
index 81c71c75ac78e..52d865582ac8c 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnOrderCreationPage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingNotOnOrderCreationPage.php
@@ -16,12 +16,9 @@
*/
class AssertGiftWrappingNotOnOrderCreationPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted Gift Wrapping can not be found on order creation page in backend
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingOnFrontendCheckout.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingOnFrontendCheckout.php
index 40bc6807075a1..efb3b23c3f4ee 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingOnFrontendCheckout.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingOnFrontendCheckout.php
@@ -22,12 +22,9 @@
*/
class AssertGiftWrappingOnFrontendCheckout extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Gift Wrapping can be found during one page checkout on frontend
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessDeleteMessage.php
index 0aa6790eb3f6c..c0f7975f99a39 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftWrappingSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message displayed after delete gift wrapping
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted the gift wrapping.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after delete Gift Wrapping successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessSaveMessage.php
index ba312cb79909b..f98df84aa5846 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertGiftWrappingSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'You saved the gift wrapping.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_SAVE_MESSAGE = 'You saved the gift wrapping.';
/**
* Assert that success message is displayed after Gift Wrapping saved
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessUpdateMessage.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessUpdateMessage.php
index 3b99526eab338..d96560fff2793 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessUpdateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/Constraint/AssertGiftWrappingSuccessUpdateMessage.php
@@ -14,18 +14,15 @@
*/
class AssertGiftWrappingSuccessUpdateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message displayed after update gift wrapping
*/
const SUCCESS_UPDATE_MESSAGE = 'You updated a total of %d records.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after update Gift Wrapping successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/CreateGiftWrappingEntityTest.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/CreateGiftWrappingEntityTest.php
index 63201bc3e8b8d..36595e4c9b84b 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/CreateGiftWrappingEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/CreateGiftWrappingEntityTest.php
@@ -62,7 +62,6 @@ public function __inject(GiftWrappingIndex $giftWrappingIndexPage, GiftWrappingN
*/
public function test(GiftWrapping $giftWrapping)
{
- $this->markTestIncomplete('Bug: MAGETWO-30995');
// Steps
$this->giftWrappingIndexPage->open();
$this->giftWrappingIndexPage->getGridPageActions()->addNew();
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/DeleteGiftWrappingEntityTest.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/DeleteGiftWrappingEntityTest.php
index 4f81c04993cc9..50532cdedcb31 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/DeleteGiftWrappingEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/DeleteGiftWrappingEntityTest.php
@@ -64,7 +64,6 @@ public function __inject(GiftWrappingIndex $giftWrappingIndexPage, GiftWrappingN
*/
public function test(GiftWrapping $giftWrapping)
{
- $this->markTestIncomplete('Bug: MAGETWO-30995');
// Precondition
$giftWrapping->persist();
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/MassActionsGiftWrappingEntityTest.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/MassActionsGiftWrappingEntityTest.php
index 4b307a0f298b8..413f96bc78f71 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/MassActionsGiftWrappingEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/MassActionsGiftWrappingEntityTest.php
@@ -82,7 +82,6 @@ public function __inject(
*/
public function test($giftWrappings, $giftWrappingsIndexToSelect, $action, $status, $giftWrappingsIndexToStay)
{
- $this->markTestIncomplete('Bug: MAGETWO-30995');
// Precondition
$giftWrappingsInitial = explode(",", $giftWrappings);
$giftWrappings = $this->createGiftWrappings($giftWrappingsInitial);
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/UpdateGiftWrappingEntityTest.php b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/UpdateGiftWrappingEntityTest.php
index 7929d1b78987b..103af19e7241b 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/UpdateGiftWrappingEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/TestCase/UpdateGiftWrappingEntityTest.php
@@ -66,7 +66,6 @@ public function __inject(GiftWrappingIndex $giftWrappingIndexPage, GiftWrappingN
*/
public function test(GiftWrapping $initialGiftWrapping, GiftWrapping $giftWrapping)
{
- $this->markTestIncomplete('Bug: MAGETWO-30995');
// Precondition
$initialGiftWrapping->persist();
diff --git a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/etc/constraint.xml
index 69f4ca8b85c0b..41bcb79ad811d 100644
--- a/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/GiftWrapping/Test/etc/constraint.xml
@@ -6,42 +6,42 @@
-->
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Block/Adminhtml/Types/Edit/GoogleShoppingForm.php b/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Block/Adminhtml/Types/Edit/GoogleShoppingForm.php
index 2f6e5aa7df7f1..88a833c9bd469 100644
--- a/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Block/Adminhtml/Types/Edit/GoogleShoppingForm.php
+++ b/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Block/Adminhtml/Types/Edit/GoogleShoppingForm.php
@@ -23,11 +23,11 @@ class GoogleShoppingForm extends Form
protected $attributeOptions = '//select[@id="gcontent_attribute_0_attribute"]//option';
/**
- * Loading Mask locator
+ * Locator for root elements
*
* @var string
*/
- protected $loadingMask = '//ancestor::body/div[@id="loading-mask"]';
+ protected $loaderRootLocator = 'body';
/**
* Fill specified form data
@@ -43,7 +43,10 @@ protected function _fill(array $fields, Element $element = null)
$element = $this->getElement($context, $field);
if ($this->mappingMode || ($element->isVisible() && !$element->isDisabled())) {
$element->setValue($field['value']);
- $this->waitForElementNotVisible($this->loadingMask, Locator::SELECTOR_XPATH);
+ $this->blockFactory->create(
+ 'Magento\Backend\Test\Block\Template',
+ ['element' => $this->browser->find($this->loaderRootLocator)]
+ )->waitLoader();
}
}
}
diff --git a/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Constraint/AssertProductAttributeAbsenceForAttributeMapping.php b/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Constraint/AssertProductAttributeAbsenceForAttributeMapping.php
index 34073127adf82..5ea98e194dae5 100644
--- a/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Constraint/AssertProductAttributeAbsenceForAttributeMapping.php
+++ b/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Constraint/AssertProductAttributeAbsenceForAttributeMapping.php
@@ -17,12 +17,9 @@
*/
class AssertProductAttributeAbsenceForAttributeMapping extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that deleted attribute can't be mapped to Google Attribute (attribute doesn't appear in Attributes
diff --git a/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/etc/constraint.xml
index 0884f0c88fa2c..6850ea9c550f3 100644
--- a/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/GoogleShopping/Test/etc/constraint.xml
@@ -6,6 +6,6 @@
-->
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedPriceOnGroupedProductPage.php b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedPriceOnGroupedProductPage.php
index 5222da7b40367..3b487c34e10bc 100644
--- a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedPriceOnGroupedProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedPriceOnGroupedProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertGroupedPriceOnGroupedProductPage extends AbstractAssertPriceOnGroupedProductPage
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Format error message
diff --git a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductForm.php b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductForm.php
index 6bca2665fbc84..b1e63455ab07e 100644
--- a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductForm.php
+++ b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductForm.php
@@ -15,12 +15,9 @@
*/
class AssertGroupedProductForm extends AssertProductForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert form data equals fixture data
diff --git a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductInItemsOrderedGrid.php b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductInItemsOrderedGrid.php
index 629deeb3489a1..7ac9a7d6c9ccc 100644
--- a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductInItemsOrderedGrid.php
+++ b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductInItemsOrderedGrid.php
@@ -15,12 +15,9 @@
*/
class AssertGroupedProductInItemsOrderedGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Fields for assert
diff --git a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductsDefaultQty.php b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductsDefaultQty.php
index efd8aceafff82..a1002454955ec 100644
--- a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductsDefaultQty.php
+++ b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductsDefaultQty.php
@@ -16,12 +16,9 @@
*/
class AssertGroupedProductsDefaultQty extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that default qty for sub products in grouped product displays according to dataset on product page
diff --git a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertSpecialPriceOnGroupedProductPage.php b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertSpecialPriceOnGroupedProductPage.php
index 2ed585d04503f..d0d23336d90da 100644
--- a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertSpecialPriceOnGroupedProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertSpecialPriceOnGroupedProductPage.php
@@ -15,12 +15,9 @@
*/
class AssertSpecialPriceOnGroupedProductPage extends AbstractAssertPriceOnGroupedProductPage
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Format error message
diff --git a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertTierPriceOnGroupedProductPage.php b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertTierPriceOnGroupedProductPage.php
index 7ba05a579a764..754ddefe0621b 100644
--- a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertTierPriceOnGroupedProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertTierPriceOnGroupedProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertTierPriceOnGroupedProductPage extends AbstractAssertPriceOnGroupedProductPage
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Format error message
diff --git a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/etc/constraint.xml
index d3a7eec9ae9e3..60649f87112c9 100644
--- a/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/GroupedProduct/Test/etc/constraint.xml
@@ -6,24 +6,24 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/ImportExport/Test/Constraint/AssertProductAttributeAbsenceForExport.php b/dev/tests/functional/tests/app/Magento/ImportExport/Test/Constraint/AssertProductAttributeAbsenceForExport.php
index c8fda92ba3872..e3c735a261a93 100644
--- a/dev/tests/functional/tests/app/Magento/ImportExport/Test/Constraint/AssertProductAttributeAbsenceForExport.php
+++ b/dev/tests/functional/tests/app/Magento/ImportExport/Test/Constraint/AssertProductAttributeAbsenceForExport.php
@@ -16,12 +16,9 @@
*/
class AssertProductAttributeAbsenceForExport extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that deleted attribute can't be used for Products' Export
diff --git a/dev/tests/functional/tests/app/Magento/ImportExport/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/ImportExport/Test/etc/constraint.xml
index 5351e708af77c..bb39c61e343f3 100644
--- a/dev/tests/functional/tests/app/Magento/ImportExport/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/ImportExport/Test/etc/constraint.xml
@@ -6,6 +6,6 @@
-->
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/CreateAdmin.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CreateAdmin.php
new file mode 100644
index 0000000000000..cd025b734f794
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CreateAdmin.php
@@ -0,0 +1,32 @@
+_rootElement->find($this->next, Locator::SELECTOR_CSS)->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/CreateAdmin.xml b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CreateAdmin.xml
new file mode 100644
index 0000000000000..87f9389c51434
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CreateAdmin.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ [name='adminUsername']
+
+
+ [name='adminEmail']
+
+
+ [name='adminPassword']
+
+
+ [name='adminConfirm']
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/CustomizeStore.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CustomizeStore.php
new file mode 100644
index 0000000000000..af5707450b52e
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CustomizeStore.php
@@ -0,0 +1,32 @@
+_rootElement->find($this->next, Locator::SELECTOR_CSS)->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/CustomizeStore.xml b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CustomizeStore.xml
new file mode 100644
index 0000000000000..afca361627a82
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/CustomizeStore.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ [ng-model*='currency']
+ select
+
+
+ [ng-model*='language']
+ select
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/Database.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Database.php
new file mode 100644
index 0000000000000..efc112709e88d
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Database.php
@@ -0,0 +1,66 @@
+_rootElement->find($this->testConnection, Locator::SELECTOR_CSS)->click();
+ }
+
+ /**
+ * Get 'Test connection successful.' message.
+ *
+ * @return string
+ */
+ public function getSuccessConnectionMessage()
+ {
+ return $this->_rootElement->find($this->successConnectionMessage, Locator::SELECTOR_CSS)->getText();
+ }
+
+ /**
+ * Click on 'Next' button.
+ *
+ * @return void
+ */
+ public function clickNext()
+ {
+ $this->_rootElement->find($this->next, Locator::SELECTOR_CSS)->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/Database.xml b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Database.xml
new file mode 100644
index 0000000000000..c09b95b5d282e
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Database.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+ [name="dbname"]
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/Install.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Install.php
new file mode 100644
index 0000000000000..8df7ca8d6c0c2
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Install.php
@@ -0,0 +1,100 @@
+_rootElement->find($this->installNow, Locator::SELECTOR_XPATH)->click();
+ $this->waitForElementVisible($this->launchAdmin, Locator::SELECTOR_XPATH);
+ }
+
+ /**
+ * Get admin info.
+ *
+ * @return string
+ */
+ public function getAdminInfo()
+ {
+ $adminData = [];
+ $rows = $this->_rootElement->find('#admin-info .row')->getElements();
+ foreach ($rows as $row) {
+ $dataRow = $row->find('div')->getElements();
+ $key = strtolower(str_replace(' ', '_', str_replace(':', '', $dataRow[0]->getText())));
+ $adminData[$key] = $dataRow[1]->getText();
+ }
+
+ return $adminData;
+ }
+
+ /**
+ * Get database info.
+ *
+ * @return string
+ */
+ public function getDbInfo()
+ {
+ $dbData = [];
+ $rows = $this->_rootElement->find('#db-info .row')->getElements();
+ foreach ($rows as $row) {
+ $dataRow = $row->find('div')->getElements();
+ $key = strtolower(str_replace(' ', '_', str_replace(':', '', $dataRow[0]->getText())));
+ $dbData[$key] = $dataRow[1]->getText();
+ }
+
+ return $dbData;
+ }
+
+ /**
+ * Click on 'Launch Magento Admin' button.
+ *
+ * @return void
+ */
+ public function clickLaunchAdmin()
+ {
+ $this->_rootElement->find($this->launchAdmin, Locator::SELECTOR_XPATH)->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/Landing.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Landing.php
new file mode 100644
index 0000000000000..75085d53c7507
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Landing.php
@@ -0,0 +1,49 @@
+_rootElement->find($this->agreeAndSetup, Locator::SELECTOR_CSS)->click();
+ }
+
+ /**
+ * Click on 'Terms & Agreement' link.
+ *
+ * @return void
+ */
+ public function clickTermsAndAgreement()
+ {
+ $this->_rootElement->find($this->termsAndAgreement, Locator::SELECTOR_CSS)->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/License.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/License.php
new file mode 100644
index 0000000000000..83f59f7159d4d
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/License.php
@@ -0,0 +1,49 @@
+_rootElement->find($this->back, Locator::SELECTOR_CSS)->click();
+ }
+
+ /**
+ * Get license text.
+ *
+ * @return string
+ */
+ public function getLicense()
+ {
+ return $this->_rootElement->find($this->license, Locator::SELECTOR_CSS)->getText();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/Readiness.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Readiness.php
new file mode 100644
index 0000000000000..72fcfcb1aa26a
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/Readiness.php
@@ -0,0 +1,108 @@
+_rootElement->find($this->readinessCheck, Locator::SELECTOR_CSS)->click();
+ $this->waitForElementVisible($this->completedMessage, Locator::SELECTOR_CSS);
+ }
+
+ /**
+ * Click on 'Next' button.
+ *
+ * @return void
+ */
+ public function clickNext()
+ {
+ $this->_rootElement->find($this->next, Locator::SELECTOR_CSS)->click();
+ }
+
+ /**
+ * Get File Permissions check result.
+ *
+ * @return string
+ */
+ public function getFilePermissionCheck()
+ {
+ return $this->_rootElement->find($this->filePermissionCheck, Locator::SELECTOR_CSS)->getText();
+ }
+
+ /**
+ * Get PHP Version check result.
+ *
+ * @return string
+ */
+ public function getPhpVersionCheck()
+ {
+ return $this->_rootElement->find($this->phpVersionCheck, Locator::SELECTOR_CSS)->getText();
+ }
+
+ /**
+ * Get PHP Extensions check result.
+ *
+ * @return string
+ */
+ public function getPhpExtensionsCheck()
+ {
+ return $this->_rootElement->find($this->phpExtensionCheck, Locator::SELECTOR_CSS)->getText();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/WebConfiguration.php b/dev/tests/functional/tests/app/Magento/Install/Test/Block/WebConfiguration.php
new file mode 100644
index 0000000000000..08ca27d4d6f98
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/WebConfiguration.php
@@ -0,0 +1,48 @@
+_rootElement->find($this->next)->click();
+ }
+
+ /**
+ * Click on 'Advanced Options' button.
+ *
+ * @return void
+ */
+ public function clickAdvancedOptions()
+ {
+ $this->_rootElement->find($this->advancedOptions)->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Block/WebConfiguration.xml b/dev/tests/functional/tests/app/Magento/Install/Test/Block/WebConfiguration.xml
new file mode 100644
index 0000000000000..b610ce62b6a1f
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Block/WebConfiguration.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+ [value="user"]
+ checkbox
+
+
+ [name="key"]
+
+
+ [ng-model*="rewrites"]
+ checkbox
+
+
+ [ng-model*="front"]
+ checkbox
+
+
+ [ng-model*="admin"]
+ checkbox
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertAgreementTextPresent.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertAgreementTextPresent.php
new file mode 100644
index 0000000000000..673956def75bf
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertAgreementTextPresent.php
@@ -0,0 +1,49 @@
+getLicenseBlock()->getLicense(),
+ 'License agreement text is absent.'
+ );
+ }
+
+ /**
+ * Returns a string representation of successful assertion.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return "License agreement text is present on Terms & Agreement page.";
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertCurrencySelected.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertCurrencySelected.php
new file mode 100644
index 0000000000000..b2da3668ba26f
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertCurrencySelected.php
@@ -0,0 +1,44 @@
+getMainBlock()->getRevenuePrice(), $currencySymbol) !== false,
+ 'Selected currency symbol not displays on dashboard.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Selected currency displays in admin.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertKeyCreated.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertKeyCreated.php
new file mode 100644
index 0000000000000..13cd5642be416
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertKeyCreated.php
@@ -0,0 +1,46 @@
+getKeyValue(),
+ $installPage->getInstallBlock()->getAdminInfo()['encryption_key'],
+ 'Selected encryption key on install page not equals to data from fixture.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Selected encryption key displays on success full install page.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertLanguageSelected.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertLanguageSelected.php
new file mode 100644
index 0000000000000..177673c0adb93
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertLanguageSelected.php
@@ -0,0 +1,45 @@
+open();
+ \PHPUnit_Framework_Assert::assertTrue(
+ $indexPage->getLinksBlock()->isLinkVisible($languageTemplate),
+ 'Selected language not displays on frontend.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Selected language currently displays on frontend.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertRewritesEnabled.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertRewritesEnabled.php
new file mode 100644
index 0000000000000..7c9672dfb3c3c
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertRewritesEnabled.php
@@ -0,0 +1,50 @@
+persist();
+ $homePage->open();
+ $homePage->getTopmenu()->selectCategoryByName($category->getName());
+
+ \PHPUnit_Framework_Assert::assertTrue(
+ strpos($browser->getUrl(), 'index.php') === false,
+ 'Apache redirect for category does not work.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Apache redirect works correct.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSecureUrlEnabled.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSecureUrlEnabled.php
new file mode 100644
index 0000000000000..8f10986c665da
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSecureUrlEnabled.php
@@ -0,0 +1,66 @@
+createByCode('configData', ['dataSet' => 'secure_url']);
+ $config->persist();
+ $browser->getUrl();
+ \PHPUnit_Framework_Assert::assertTrue(
+ strpos($browser->getUrl(), 'https://') !== false,
+ 'Secure Urls are not displayed on backend.'
+ );
+
+ $productSimple->persist();
+ $stepFactory->create(
+ 'Magento\Catalog\Test\TestStep\AddProductsToTheCartStep',
+ ['products' => [$productSimple]]
+ )->run();
+ $stepFactory->create('Magento\Catalog\Test\TestStep\ProceedToCheckoutStep')->run();
+ \PHPUnit_Framework_Assert::assertTrue(
+ strpos($browser->getUrl(), 'https://') !== false,
+ 'Secure Urls are not displayed on frontend.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Secure Urls display successful.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessDbConnection.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessDbConnection.php
new file mode 100644
index 0000000000000..96f01b94d167b
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessDbConnection.php
@@ -0,0 +1,50 @@
+getDatabaseBlock()->clickTestConnection();
+ \PHPUnit_Framework_Assert::assertContains(
+ self::SUCCESSFUL_CONNECTION,
+ $installPage->getDatabaseBlock()->getSuccessConnectionMessage(),
+ 'Unable to connect to database.'
+ );
+ }
+
+ /**
+ * Returns a string representation of successful assertion.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return "System successfully connected to DB.";
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessInstall.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessInstall.php
new file mode 100644
index 0000000000000..47df11f0aacea
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessInstall.php
@@ -0,0 +1,85 @@
+ 'username', 'fixture' => 'username'],
+ ['pageData' => 'e-mail', 'fixture' => 'email'],
+ ['pageData' => 'your_store_address', 'fixture' => 'web'],
+ ['pageData' => 'magento_admin_address', 'fixture' => 'admin']
+ ];
+
+ /**
+ * Database info fields mapping.
+ *
+ * @var array
+ */
+ protected $dbFieldsList = [
+ ['pageData' => 'database_name', 'fixture' => 'dbName'],
+ ['pageData' => 'username', 'fixture' => 'dbUser']
+ ];
+
+ /**
+ * Assert that Magento successfully installed.
+ *
+ * @param InstallConfig $installConfig
+ * @param User $user
+ * @param Install $installPage
+ * @return void
+ */
+ public function processAssert(Install $installPage, InstallConfig $installConfig, User $user)
+ {
+ $adminData = $installPage->getInstallBlock()->getAdminInfo();
+ $dbData = $installPage->getInstallBlock()->getDbInfo();
+
+ $allData = array_merge($user->getData(), $installConfig->getData());
+ $allData['admin'] = $allData['web'] . $allData['admin'] . '/';
+
+ foreach ($this->adminFieldsList as $field) {
+ \PHPUnit_Framework_Assert::assertEquals(
+ $allData[$field['fixture']],
+ $adminData[$field['pageData']],
+ 'Wrong admin information is displayed.'
+ );
+ }
+ foreach ($this->dbFieldsList as $field) {
+ \PHPUnit_Framework_Assert::assertEquals(
+ $allData[$field['fixture']],
+ $dbData[$field['pageData']],
+ 'Wrong database information is displayed.'
+ );
+ }
+ }
+
+ /**
+ * Returns a string representation of successful assertion.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return "Install successfully finished.";
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessfulReadinessCheck.php b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessfulReadinessCheck.php
new file mode 100644
index 0000000000000..22db21f2f57ab
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Constraint/AssertSuccessfulReadinessCheck.php
@@ -0,0 +1,69 @@
+getReadinessBlock()->getPhpVersionCheck(),
+ 'PHP version is incorrect.'
+ );
+ \PHPUnit_Framework_Assert::assertContains(
+ self::PHP_EXTENSIONS_MESSAGE,
+ $installPage->getReadinessBlock()->getPhpExtensionsCheck(),
+ 'PHP extensions missed.'
+ );
+ \PHPUnit_Framework_Assert::assertContains(
+ self::FILE_PERMISSION_MESSAGE,
+ $installPage->getReadinessBlock()->getFilePermissionCheck(),
+ 'File permissions does not meet requirements.'
+ );
+ }
+
+ /**
+ * Returns a string representation of successful assertion.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return "PHP Version, PHP Extensions and File Permission are ok.";
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Fixture/Install.php b/dev/tests/functional/tests/app/Magento/Install/Test/Fixture/Install.php
new file mode 100644
index 0000000000000..c8cdfe81c280e
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Fixture/Install.php
@@ -0,0 +1,209 @@
+ 'dbHost',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $dbUser = [
+ 'attribute_code' => 'dbUser',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $dbPassword = [
+ 'attribute_code' => 'dbPassword',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $dbName = [
+ 'attribute_code' => 'dbName',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $web = [
+ 'attribute_code' => 'web',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $admin = [
+ 'attribute_code' => 'admin',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $adminUsername = [
+ 'attribute_code' => 'adminUsername',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $adminEmail = [
+ 'attribute_code' => 'adminEmail',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $adminPassword = [
+ 'attribute_code' => 'adminPassword',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $adminConfirm = [
+ 'attribute_code' => 'adminConfirm',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $apacheRewrites = [
+ 'attribute_code' => 'apacheRewrites',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $dbTablePrefix = [
+ 'attribute_code' => 'dbTablePrefix',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $keyOwn = [
+ 'attribute_code' => 'keyOwn',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $httpsAdmin = [
+ 'attribute_code' => 'httpsAdmin',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $httpsFront = [
+ 'attribute_code' => 'httpsFront',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $keyValue = [
+ 'attribute_code' => 'keyValue',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $language = [
+ 'attribute_code' => 'language',
+ 'backend_type' => 'virtual',
+ ];
+
+ protected $currency = [
+ 'attribute_code' => 'language',
+ 'backend_type' => 'virtual',
+ ];
+
+ public function getDbHost()
+ {
+ return $this->getData('dbHost');
+ }
+
+ public function getDbUser()
+ {
+ return $this->getData('dbUser');
+ }
+
+ public function getDbPassword()
+ {
+ return $this->getData('dbPassword');
+ }
+
+ public function getDbName()
+ {
+ return $this->getData('dbName');
+ }
+
+ public function getWeb()
+ {
+ return $this->getData('web');
+ }
+
+ public function getAdmin()
+ {
+ return $this->getData('admin');
+ }
+
+ public function getAdminUsername()
+ {
+ return $this->getData('adminUsername');
+ }
+
+ public function getAdminEmail()
+ {
+ return $this->getData('adminEmail');
+ }
+
+ public function getAdminPassword()
+ {
+ return $this->getData('adminPassword');
+ }
+
+ public function getAdminConfirm()
+ {
+ return $this->getData('adminConfirm');
+ }
+
+ public function getCurrency()
+ {
+ return $this->getData('currency');
+ }
+
+ public function getApacheRewrites()
+ {
+ return $this->getData('apacheRewrites');
+ }
+
+ public function getKeyOwn()
+ {
+ return $this->getData('keyOwn');
+ }
+
+ public function getKeyValue()
+ {
+ return $this->getData('keyValue');
+ }
+
+ public function getLanguage()
+ {
+ return $this->getData('language');
+ }
+
+ public function getHttpsAdmin()
+ {
+ return $this->getData('httpsAdmin');
+ }
+
+ public function getHttpsFront()
+ {
+ return $this->getData('httpsFront');
+ }
+
+ public function getDbTablePrefix()
+ {
+ return $this->getData('dbTablePrefix');
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Fixture/Install.xml b/dev/tests/functional/tests/app/Magento/Install/Test/Fixture/Install.xml
new file mode 100644
index 0000000000000..aad8122cc39c7
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Fixture/Install.xml
@@ -0,0 +1,75 @@
+
+
+
+ Magento_Install
+ virtual
+ install
+
+
+ dbHost
+ virtual
+
+
+ dbUser
+ virtual
+
+
+ dbTablePrefix
+ virtual
+
+
+ dbPassword
+ virtual
+
+
+ dbname
+ virtual
+
+
+ web
+ virtual
+
+
+ dbTablePrefix
+ virtual
+
+
+ admin
+ virtual
+
+
+ httpsFront
+ virtual
+
+
+ httpsAdmin
+ virtual
+
+
+ apacheRewrites
+ virtual
+
+
+ keyOwn
+ virtual
+
+
+ keyValue
+ virtual
+
+
+ language
+ virtual
+
+
+ currency
+ virtual
+
+
+ Magento\Install\Test\Repository\Install
+ Magento\Install\Test\Handler\Install\InstallInterface
+
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/Page/Install.xml b/dev/tests/functional/tests/app/Magento/Install/Test/Page/Install.xml
new file mode 100644
index 0000000000000..06f3b3a33b408
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/Page/Install.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+ Magento\Install\Test\Block\Landing
+ body
+ css selector
+
+
+ Magento\Install\Test\Block\License
+ body
+ css selector
+
+
+ Magento\Install\Test\Block\Readiness
+ body
+ css selector
+
+
+ Magento\Install\Test\Block\Database
+ body
+ css selector
+
+
+ Magento\Install\Test\Block\WebConfiguration
+ body
+ css selector
+
+
+ Magento\Install\Test\Block\CustomizeStore
+ body
+ css selector
+
+
+ Magento\Install\Test\Block\CreateAdmin
+ body
+ css selector
+
+
+ Magento\Install\Test\Block\Install
+ body
+ css selector
+
+
+
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/TestCase/InstallTest.php b/dev/tests/functional/tests/app/Magento/Install/Test/TestCase/InstallTest.php
new file mode 100644
index 0000000000000..726337a42a551
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/TestCase/InstallTest.php
@@ -0,0 +1,150 @@
+getConfigParam('install_data/db_credentials');
+ $urlConfig = $systemConfig->getConfigParam('install_data/url');
+ $configData['web'] = $urlConfig['base_url'];
+ $configData['admin'] = $urlConfig['backend_frontname'];
+
+ return ['configData' => $configData];
+ }
+
+ /**
+ * Injection data.
+ *
+ * @param CmsIndex $homePage
+ * @param Install $installPage
+ * @return void
+ */
+ public function __inject(Install $installPage, CmsIndex $homePage)
+ {
+ $magentoBaseDir = dirname(dirname(dirname(MTF_BP)));
+ // Uninstall Magento.
+ shell_exec("php -f $magentoBaseDir/setup/index.php uninstall");
+ $this->installPage = $installPage;
+ $this->homePage = $homePage;
+ }
+
+ /**
+ * Install Magento via web interface.
+ *
+ * @param User $user
+ * @param array $install
+ * @param array $configData
+ * @param FixtureFactory $fixtureFactory
+ * @param AssertAgreementTextPresent $assertLicense
+ * @param AssertSuccessfulReadinessCheck $assertReadiness
+ * @param AssertSuccessDbConnection $assertDbConnection
+ * @return array
+ */
+ public function test(
+ User $user,
+ array $install,
+ array $configData,
+ FixtureFactory $fixtureFactory,
+ AssertAgreementTextPresent $assertLicense,
+ AssertSuccessfulReadinessCheck $assertReadiness,
+ AssertSuccessDbConnection $assertDbConnection
+ ) {
+ $this->markTestIncomplete('Bug: MAGETWO-31622');
+ $dataConfig = array_merge($install, $configData);
+ /** @var InstallConfig $installConfig */
+ $installConfig = $fixtureFactory->create('Magento\Install\Test\Fixture\Install', ['data' => $dataConfig]);
+ // Steps
+ $this->homePage->open();
+ // Verify license agreement.
+ $this->installPage->getLandingBlock()->clickTermsAndAgreement();
+ $assertLicense->processAssert($this->installPage);
+ $this->installPage->getLicenseBlock()->clickBack();
+ $this->installPage->getLandingBlock()->clickAgreeAndSetup();
+ // Step 1: Readiness Check.
+ $this->installPage->getReadinessBlock()->clickReadinessCheck();
+ $assertReadiness->processAssert($this->installPage);
+ $this->installPage->getReadinessBlock()->clickNext();
+ // Step 2: Add a Database.
+ $this->installPage->getDatabaseBlock()->fill($installConfig);
+ $assertDbConnection->processAssert($this->installPage);
+ $this->installPage->getDatabaseBlock()->clickNext();
+ // Step 3: Web Configuration.
+ $this->installPage->getWebConfigBlock()->clickAdvancedOptions();
+ $this->installPage->getWebConfigBlock()->fill($installConfig);
+ $this->installPage->getWebConfigBlock()->clickNext();
+ // Step 4: Customize Your Store
+ $this->installPage->getCustomizeStoreBlock()->fill($installConfig);
+ $this->installPage->getCustomizeStoreBlock()->clickNext();
+ // Step 5: Create Admin Account.
+ $this->installPage->getCreateAdminBlock()->fill($user);
+ $this->installPage->getCreateAdminBlock()->clickNext();
+ // Step 6: Install.
+ $this->installPage->getInstallBlock()->clickInstallNow();
+
+ return ['installConfig' => $installConfig];
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/TestCase/InstallTest/test.csv b/dev/tests/functional/tests/app/Magento/Install/Test/TestCase/InstallTest/test.csv
new file mode 100644
index 0000000000000..4a3b6dc96aef1
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/TestCase/InstallTest/test.csv
@@ -0,0 +1,7 @@
+"user/dataSet";"install/dbTablePrefix";"install/admin";"install/httpsFront";"install/httpsAdmin";"install/apacheRewrites";"install/keyOwn";"install/keyValue";"install/language";"install/currency";"currencySymbol";"languageTemplate";"constraint";"description";"issue"
+"default";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertSuccessInstall, assertUserSuccessLogin";"install with default values";""
+"default";"-";"custom";"-";"-";"-";"-";"-";"-";"-";"-";"-";"assertSuccessInstall, assertUserSuccessLogin";"install with custom admin path";""
+"default";"-";"-";"-";"-";"-";"Yes";"123123qa";"German (Germany)";"Euro (EUR)";"€";"Suchbegriffe";"assertSuccessInstall, assertKeyCreated, assertUserSuccessLogin, assertCurrencySelected, assertLanguageSelected";"install with custom encryption key and changed currency and locale";""
+"default";"prefix1_";"-";"-";"-";"-";"-";"-";"Chinese (China)";"-";"-";"-";"assertSuccessInstall, assertUserSuccessLogin";"install with table prefix";"MAGETWO-31658"
+"default";"-";"-";"-";"-";"Yes";"-";"-";"-";"-";"-";"-";"assertSuccessInstall, assertUserSuccessLogin, assertRewritesEnabled";"install with enabled url rewrites";""
+"default";"-";"-";"Yes";"Yes";"-";"-";"-";"-";"-";"-";"-";"assertSuccessInstall, assertUserSuccessLogin, assertSecureUrlEnabled";"install with enabled secure urls";"MAGETWO-31409"
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Install/Test/etc/constraint.xml
new file mode 100644
index 0000000000000..921f167e82432
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/etc/constraint.xml
@@ -0,0 +1,35 @@
+
+
+
+
+ low
+
+
+ low
+
+
+ low
+
+
+ low
+
+
+ low
+
+
+ low
+
+
+ low
+
+
+ low
+
+
+ low
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/etc/fixture.xml b/dev/tests/functional/tests/app/Magento/Install/Test/etc/fixture.xml
new file mode 100644
index 0000000000000..c5c091aad3d47
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/etc/fixture.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ virtual
+ install
+
+
+ dbHost
+ virtual
+
+
+ dbUser
+ virtual
+
+
+ dbPassword
+ virtual
+
+
+ dbname
+ virtual
+
+
+ web
+ virtual
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Install/Test/etc/page.xml b/dev/tests/functional/tests/app/Magento/Install/Test/etc/page.xml
new file mode 100644
index 0000000000000..523ecd7d0672c
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Install/Test/etc/page.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ setup/
+ Magento\Install\Test\Page\Install
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationForm.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationForm.php
index ade2be8551d58..a63736cd0586e 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationForm.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationForm.php
@@ -16,12 +16,9 @@
*/
class AssertIntegrationForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Skipped fields while verifying
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationInGrid.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationInGrid.php
index 64e75ebc36f1f..9f951bf4cbbf0 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertIntegrationInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that data in grid on Integrations page according to fixture by name field
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationNotInGrid.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationNotInGrid.php
index 7d20f923a05ba..4ede24580af26 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertIntegrationNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that Integration is not presented in grid and cannot be found using name
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationResourcesPopup.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationResourcesPopup.php
index 20f4131a889cf..0775f54fb5946 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationResourcesPopup.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationResourcesPopup.php
@@ -15,12 +15,9 @@
*/
class AssertIntegrationResourcesPopup extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that pop-up with resources, that were specified for integration are shown
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessActivationMessage.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessActivationMessage.php
index 4be66304d1da7..b01706c3357e6 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessActivationMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessActivationMessage.php
@@ -15,14 +15,11 @@
*/
class AssertIntegrationSuccessActivationMessage extends AbstractConstraint
{
- const SUCCESS_ACTIVATION_MESSAGE = "The integration '%s' has been activated.";
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_ACTIVATION_MESSAGE = "The integration '%s' has been activated.";
/**
* Assert that success activation message is appeared on the Integrations page
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessDeleteMessage.php
index be93e0fea3bbc..b4eebeb1be76e 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessDeleteMessage.php
@@ -15,14 +15,11 @@
*/
class AssertIntegrationSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = "The integration '%s' has been deleted.";
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = "The integration '%s' has been deleted.";
/**
* Assert that success delete message is appeared on the Integrations page
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessReauthorizeMessage.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessReauthorizeMessage.php
index 356d4332647f4..a9ebd1799a305 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessReauthorizeMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessReauthorizeMessage.php
@@ -15,18 +15,15 @@
*/
class AssertIntegrationSuccessReauthorizeMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Integration success reauthorize message.
*/
const SUCCESS_REAUTHORIZE_MESSAGE = "The integration '%s' has been re-authorized.";
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success reauthorize message is appeared on the Integrations page.
*
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessSaveMessage.php
index ad5e2dc64d9b2..2e0d060bad29b 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationSuccessSaveMessage.php
@@ -15,14 +15,11 @@
*/
class AssertIntegrationSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = "The integration '%s' has been saved.";
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_SAVE_MESSAGE = "The integration '%s' has been saved.";
/**
* Assert that success save message is appeared on the Integrations page
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensAfterReauthorize.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensAfterReauthorize.php
index 9b388b9f5b09a..8d94bb2da09fd 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensAfterReauthorize.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensAfterReauthorize.php
@@ -16,12 +16,9 @@
*/
class AssertIntegrationTokensAfterReauthorize extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Fields don't have to change.
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensPopup.php b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensPopup.php
index a4b1cde53f7de..65c56809d69f7 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensPopup.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/Constraint/AssertIntegrationTokensPopup.php
@@ -14,12 +14,9 @@
*/
class AssertIntegrationTokensPopup extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Fields to be checked
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/TestCase/ActivateIntegrationEntityTest.php b/dev/tests/functional/tests/app/Magento/Integration/Test/TestCase/ActivateIntegrationEntityTest.php
index d808721ac0c3c..c665073f124b7 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/TestCase/ActivateIntegrationEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/TestCase/ActivateIntegrationEntityTest.php
@@ -53,7 +53,6 @@ public function __inject(IntegrationIndex $integrationIndex)
*/
public function test(Integration $integration)
{
- $this->markTestIncomplete('Bug: MAGETWO-30270');
// Preconditions
$integration->persist();
diff --git a/dev/tests/functional/tests/app/Magento/Integration/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Integration/Test/etc/constraint.xml
index 9c2790b31eb6a..d07530258b25d 100644
--- a/dev/tests/functional/tests/app/Magento/Integration/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Integration/Test/etc/constraint.xml
@@ -6,21 +6,21 @@
-->
- high
+ high
- high
+ high
- high
+ high
@@ -28,48 +28,48 @@
- low
+ low
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.php
index eedaf1cc57499..d57ce65dce99c 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.php
@@ -21,6 +21,13 @@ class Form extends \Mtf\Block\Form
*/
protected $sendInvitationsButton = '.action.submit';
+ /**
+ * Add email button
+ *
+ * @var string
+ */
+ protected $addEmail = '.add';
+
/**
* Click 'Send Invitations' button
*
@@ -42,6 +49,11 @@ public function fill(FixtureInterface $invitation, Element $element = null)
{
$data = $invitation->getData();
$mapping = $this->dataMapping($data);
+ $emailCount = count($data['email']);
+ while ($emailCount > 1) {
+ $this->_rootElement->find($this->addEmail)->click();
+ $emailCount--;
+ }
$this->_fill($mapping, $element);
return $this;
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.xml b/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.xml
index f64ffda5028c2..c71f31eecfa40 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.xml
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Block/Form.xml
@@ -8,19 +8,19 @@
- [name="email[1]"]
+ [name="email[0]"]
- [name="email[2]"]
+ [name="email[1]"]
- [name="email[3]"]
+ [name="email[2]"]
- [name="email[4]"]
+ [name="email[3]"]
- [name="email[5]"]
+ [name="email[4]"]
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationErrorSentMessage.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationErrorSentMessage.php
index a169572d955c8..cda661fee24df 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationErrorSentMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationErrorSentMessage.php
@@ -14,18 +14,15 @@
*/
class AssertInvitationErrorSentMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Error send message.
*/
const ERROR_MESSAGE = "Something went wrong sending %d of %d invitations.";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that error message appears after sending invitation on backend.
*
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationForm.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationForm.php
index 922e42bafe059..dfd4ee80250cb 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationForm.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationForm.php
@@ -15,12 +15,9 @@
*/
class AssertInvitationForm extends AbstractAssertForm
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Invitation form was filled correctly: email, message, status.
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendErrorSendDuplicateMessage.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendErrorSendDuplicateMessage.php
index 58a8e5546c9bb..54bf9b513f1b7 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendErrorSendDuplicateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendErrorSendDuplicateMessage.php
@@ -14,18 +14,15 @@
*/
class AssertInvitationFrontendErrorSendDuplicateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Error duplicate message
*/
const ERROR_MESSAGE = "Invitation for same email address already exists.";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that error message appears after sent invitation to the same email address
*
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendSuccessSentMessage.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendSuccessSentMessage.php
index a11cea3417989..5535f2d94be06 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendSuccessSentMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationFrontendSuccessSentMessage.php
@@ -15,18 +15,15 @@
*/
class AssertInvitationFrontendSuccessSentMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success sent message
*/
const SUCCESS_MESSAGE = "You sent the invitation for %s.";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message appears after sent invitation on frontend
*
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGrid.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGrid.php
index e2568bdea5b13..eacaa94968c40 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertInvitationInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert created invitation appears in Invitation grid on backend: email, status, Invitee.
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGridOnFrontend.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGridOnFrontend.php
index bd06f08efcb9c..ae6b85a7246b5 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGridOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationInGridOnFrontend.php
@@ -17,12 +17,9 @@
*/
class AssertInvitationInGridOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert Invitation appears on frontend in My Invitations grid
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationNoticeMessage.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationNoticeMessage.php
index c0129fecd36ee..4930d9d3e70af 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationNoticeMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationNoticeMessage.php
@@ -14,6 +14,10 @@
*/
class AssertInvitationNoticeMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
// @codingStandardsIgnoreStart
/**
* Notice message.
@@ -21,13 +25,6 @@ class AssertInvitationNoticeMessage extends AbstractConstraint
const NOTICE_MESSAGE = "%d invitation(s) were not sent, because customer accounts already exist for specified email addresses.";
// @codingStandardsIgnoreEnd
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that notice message appears after sending invitation on backend.
*
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationOneEntry.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationOneEntry.php
index aa355c1e708d9..f70caf610979c 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationOneEntry.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationOneEntry.php
@@ -17,12 +17,9 @@
*/
class AssertInvitationOneEntry extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert only one invitation was sent to unique email on frontend
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessDiscardMessage.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessDiscardMessage.php
index 738fe9ead880f..d95d58ce14179 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessDiscardMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessDiscardMessage.php
@@ -15,18 +15,15 @@
*/
class AssertInvitationSuccessDiscardMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success discard message.
*/
const SUCCESS_MESSAGE = "We discarded %d of %d invitations.";
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message appears after discard invitation on backend.
*
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessage.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessage.php
index aba9bd2ad1957..8040040f9293b 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessage.php
@@ -15,18 +15,15 @@
*/
class AssertInvitationSuccessSentMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success sent message.
*/
const SUCCESS_MESSAGE = "We sent %d of %d invitations.";
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message appears after sent invitation on frontend.
*
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessageOnBackend.php b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessageOnBackend.php
index bbfc9e9a309ec..ddbd8bce48fb6 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessageOnBackend.php
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/Constraint/AssertInvitationSuccessSentMessageOnBackend.php
@@ -13,18 +13,15 @@
*/
class AssertInvitationSuccessSentMessageOnBackend extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success sent message.
*/
const SUCCESS_MESSAGE = "We sent %d invitation(s).";
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message appears after sent invitation on frontend.
*
diff --git a/dev/tests/functional/tests/app/Magento/Invitation/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Invitation/Test/etc/constraint.xml
index 1fbc2ba328fce..267287d80df7b 100644
--- a/dev/tests/functional/tests/app/Magento/Invitation/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Invitation/Test/etc/constraint.xml
@@ -6,36 +6,36 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Logging/Test/Constraint/AssertAdminUserDataBlock.php b/dev/tests/functional/tests/app/Magento/Logging/Test/Constraint/AssertAdminUserDataBlock.php
index 34fb16e723451..46139fb8058d7 100644
--- a/dev/tests/functional/tests/app/Magento/Logging/Test/Constraint/AssertAdminUserDataBlock.php
+++ b/dev/tests/functional/tests/app/Magento/Logging/Test/Constraint/AssertAdminUserDataBlock.php
@@ -14,12 +14,9 @@
*/
class AssertAdminUserDataBlock extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Admin User Data block with data according action is presented on page
diff --git a/dev/tests/functional/tests/app/Magento/Logging/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Logging/Test/etc/constraint.xml
index 396008f4c737f..7055c26102d25 100644
--- a/dev/tests/functional/tests/app/Magento/Logging/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Logging/Test/etc/constraint.xml
@@ -6,7 +6,7 @@
-->
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistState.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistState.php
index 55fb14c06cab1..e9866c290ee5e 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistState.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistState.php
@@ -25,12 +25,9 @@
*/
abstract class AbstractAssertMultipleWishlistState extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'Medium';
+ /* tags */
+ const SEVERITY = 'Medium';
+ /* end tags */
/**
* Notice type
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistSuccessMessage.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistSuccessMessage.php
index 6d56fc028452a..e61418ebcd0e4 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AbstractAssertMultipleWishlistSuccessMessage.php
@@ -15,6 +15,10 @@
*/
abstract class AbstractAssertMultipleWishlistSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success message
*
@@ -22,13 +26,6 @@ abstract class AbstractAssertMultipleWishlistSuccessMessage extends AbstractCons
*/
protected $message;
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert success message is displayed
*
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertBundleProductDetailsInMultipleWishlist.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertBundleProductDetailsInMultipleWishlist.php
index b458577d3dab4..3ca075963bf15 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertBundleProductDetailsInMultipleWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertBundleProductDetailsInMultipleWishlist.php
@@ -20,12 +20,9 @@
*/
class AssertBundleProductDetailsInMultipleWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that the correct option details are displayed on the "View Details" tool tip.
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertDeleteMultipleWishlistButtonIsAbsent.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertDeleteMultipleWishlistButtonIsAbsent.php
index cb41abbbccb40..4e3ce4bdfe6ed 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertDeleteMultipleWishlistButtonIsAbsent.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertDeleteMultipleWishlistButtonIsAbsent.php
@@ -14,12 +14,9 @@
*/
class AssertDeleteMultipleWishlistButtonIsAbsent extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'Medium';
+ /* tags */
+ const SEVERITY = 'Medium';
+ /* end tags */
/**
* Assert that there is no "Delete Wishlist" button for Customer
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistAbsentInMyAccount.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistAbsentInMyAccount.php
index 260c90beb59fd..290960a019ee7 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistAbsentInMyAccount.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistAbsentInMyAccount.php
@@ -11,12 +11,9 @@
*/
class AssertMultipleWishlistAbsentInMyAccount extends AbstractAssertMultipleWishlistExist
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert wish list is absent
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistPresentInMyAccount.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistPresentInMyAccount.php
index d9a7e4f3a8516..69992de5ff060 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistPresentInMyAccount.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertMultipleWishlistPresentInMyAccount.php
@@ -11,12 +11,9 @@
*/
class AssertMultipleWishlistPresentInMyAccount extends AbstractAssertMultipleWishlistExist
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert wish list is present
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductAbsentInDefaultWishlist.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductAbsentInDefaultWishlist.php
index 71cb4da71ad75..679fda94aead3 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductAbsentInDefaultWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductAbsentInDefaultWishlist.php
@@ -17,12 +17,9 @@
*/
class AssertProductAbsentInDefaultWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product is absent in default wishlist
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInCustomWishlist.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInCustomWishlist.php
index c0ba209a2b7d2..76807934961a2 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInCustomWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInCustomWishlist.php
@@ -18,12 +18,9 @@
*/
class AssertProductInCustomWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product is present in custom wishlist
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInDefaultWishlist.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInDefaultWishlist.php
index dd72f519b5859..cb3d0baf6f627 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInDefaultWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertProductInDefaultWishlist.php
@@ -17,12 +17,9 @@
*/
class AssertProductInDefaultWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product and quantity is present in default wishlist
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertWishlistReportGrid.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertWishlistReportGrid.php
index 18aa1731f19de..22993c66d783f 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertWishlistReportGrid.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Constraint/AssertWishlistReportGrid.php
@@ -16,12 +16,9 @@
*/
class AssertWishlistReportGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that added to the customer wish list products present in the grid and products have correct values
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Page/Category/CatalogCategoryView.xml b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Page/Category/CatalogCategoryView.xml
index 8829191c28d92..c88f8995f3bab 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Page/Category/CatalogCategoryView.xml
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/Page/Category/CatalogCategoryView.xml
@@ -8,7 +8,7 @@
Magento\MultipleWishlist\Test\Block\Widget\Search
- .widget.block.wishlist.find
+ .widget.block.block-wishlist-searchcss selector
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/AddProductToMultipleWishListTest.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/AddProductToMultipleWishListTest.php
index de6c8bc9088af..1c20105b80c1c 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/AddProductToMultipleWishListTest.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/AddProductToMultipleWishListTest.php
@@ -55,8 +55,6 @@ public function __prepare()
*/
public function test(MultipleWishlist $multipleWishlist, $products, $duplicate)
{
- $this->markTestIncomplete('Bug: MAGETWO-27949');
-
// Preconditions
$multipleWishlist->persist();
$customer = $multipleWishlist->getDataFieldConfig('customer_id')['source']->getCustomer();
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest.php
index 570a34316fbd9..76da23d0d6eb8 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest.php
@@ -127,6 +127,7 @@ public function test(MultipleWishlist $multipleWishlist, $products, $duplicate,
$this->customerIndex->open();
$this->customerIndex->getCustomerGridBlock()->searchAndOpen(['email' => $customer->getEmail()]);
$this->customerIndexEdit->getPageActionsBlock()->createOrder();
+ $this->orderCreateIndex->getStoreBlock()->selectStoreView();
$this->orderCreateIndex->getMultipleWishlistBlock()->selectWishlist($multipleWishlist->getName());
$wishlistItemsBlock = $this->orderCreateIndex->getMultipleWishlistBlock()->getWishlistItemsBlock();
$wishlistItemsBlock->selectItemToAddToOrder($product, $qtyToMove);
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest/test.csv b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest/test.csv
index eb783008ccb72..e795b38d0d463 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductFromCustomerActivityToOrderTest/test.csv
@@ -1,7 +1,7 @@
-"multipleWishlist/dataSet";"products";"duplicate";"qtyToMove";"constraint";"issue"
-"wishlist_public";"catalogProductSimple::100_dollar_product";"yes";"2";"assertProductInItemsOrderedGrid";""
-"wishlist_public";"catalogProductVirtual::50_dollar_product";"no";"1";"assertProductInItemsOrderedGrid";""
-"wishlist_public";"configurableProductInjectable::default";"no";"3";"assertConfigurableProductInItemsOrderedGrid";""
-"wishlist_public";"groupedProductInjectable::three_simple_products";"no";"-";"assertGroupedProductInItemsOrderedGrid";""
-"wishlist_public";"downloadableProductInjectable::with_two_separately_links";"no";"1";"assertProductInItemsOrderedGrid";"Bug: MAGETWO-29173"
-"wishlist_public";"bundleProduct::bundle_dynamic_product";"no";"2";"assertProductInItemsOrderedGrid";""
\ No newline at end of file
+"multipleWishlist/dataSet";"products";"duplicate";"qtyToMove";"constraint"
+"wishlist_public";"catalogProductSimple::100_dollar_product";"yes";"2";"assertProductInItemsOrderedGrid"
+"wishlist_public";"catalogProductVirtual::50_dollar_product";"no";"1";"assertProductInItemsOrderedGrid"
+"wishlist_public";"configurableProductInjectable::default";"no";"3";"assertConfigurableProductInItemsOrderedGrid"
+"wishlist_public";"groupedProductInjectable::three_simple_products";"no";"-";"assertGroupedProductInItemsOrderedGrid"
+"wishlist_public";"downloadableProductInjectable::with_two_separately_links";"no";"1";"assertProductInItemsOrderedGrid"
+"wishlist_public";"bundleProduct::bundle_dynamic_product";"no";"2";"assertProductInItemsOrderedGrid"
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductToAnotherWishlistEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductToAnotherWishlistEntityTest/test.csv
index 5e744edce0613..aee4edda5fbe3 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductToAnotherWishlistEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/MoveProductToAnotherWishlistEntityTest/test.csv
@@ -1,6 +1,6 @@
-"description";"product";"qty";"qtyToAction";"constraint";"issue"
-"Move one product from two existed";"catalogProductSimple::default";"2";"1";"assertProductInDefaultWishlist, assertProductInCustomWishlist";"Bug: MAGETWO-28741"
-"Move one product - zero left";"downloadableProductInjectable::default";"-";"-";"assertProductAbsentInDefaultWishlist, assertProductInCustomWishlist";""
-"Move one product - zero left";"groupedProductInjectable::default";"-";"-";"assertProductAbsentInDefaultWishlist, assertProductInCustomWishlist";""
-"Move one product - zero left";"configurableProductInjectable::default";"1";"1";"assertProductAbsentInDefaultWishlist, assertProductInCustomWishlist";""
-"Move one product from two existed";"bundleProduct::bundle_fixed_product";"2";"1";"assertProductInDefaultWishlist, assertProductInCustomWishlist";"Bug: MAGETWO-28741"
\ No newline at end of file
+"description";"product";"qty";"qtyToAction";"constraint";
+"Move one product from two existed";"catalogProductSimple::default";"2";"1";"assertProductInDefaultWishlist, assertProductInCustomWishlist";
+"Move one product - zero left";"downloadableProductInjectable::default";"-";"-";"assertProductAbsentInDefaultWishlist, assertProductInCustomWishlist";
+"Move one product - zero left";"groupedProductInjectable::default";"-";"-";"assertProductAbsentInDefaultWishlist, assertProductInCustomWishlist";
+"Move one product - zero left";"configurableProductInjectable::default";"1";"1";"assertProductAbsentInDefaultWishlist, assertProductInCustomWishlist";
+"Move one product from two existed";"bundleProduct::bundle_fixed_product";"2";"1";"assertProductInDefaultWishlist, assertProductInCustomWishlist";
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/ShareMultipleWishlistTest.php b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/ShareMultipleWishlistTest.php
index 8179d1d35b3df..ecae279578a91 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/ShareMultipleWishlistTest.php
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/TestCase/ShareMultipleWishlistTest.php
@@ -134,7 +134,6 @@ public function test(
MultipleWishlist $multipleWishlist,
array $sharingInfo
) {
- $this->markTestIncomplete("Bug: MAGETWO-30155");
// Preconditions
$multipleWishlist->persist();
$product->persist();
@@ -145,7 +144,7 @@ public function test(
$this->cmsIndex->getLinksBlock()->openLink("Log In");
$this->customerAccountLogin->getLoginBlock()->login($customer);
$this->browser->open($_ENV['app_frontend_url'] . $product->getUrlKey() . '.html');
- $this->catalogProductView->getMultipleWishlistViewBlock()->addToMultipleWishlist($multipleWishlist->getName());
+ $this->catalogProductView->getMultipleWishlistViewBlock()->addToMultipleWishlist($multipleWishlist);
$this->wishlistIndex->getWishlistBlock()->clickShareWishList();
$this->wishlistShare->getSharingInfoForm()->fillForm($sharingInfo);
$this->wishlistShare->getSharingInfoForm()->shareWishlist();
diff --git a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/etc/constraint.xml
index 5efe09b772c59..625c4623bf061 100644
--- a/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/MultipleWishlist/Test/etc/constraint.xml
@@ -6,39 +6,39 @@
-->
- low
+ low
- high
+ high
- low
+ low
- medium
+ medium
- medium
+ medium
- medium
+ medium
- medium
+ medium
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Multishipping/Test/TestCase/MultishippingTest.php b/dev/tests/functional/tests/app/Magento/Multishipping/Test/TestCase/MultishippingTest.php
index a0e09e41526b7..7021984fb41da 100644
--- a/dev/tests/functional/tests/app/Magento/Multishipping/Test/TestCase/MultishippingTest.php
+++ b/dev/tests/functional/tests/app/Magento/Multishipping/Test/TestCase/MultishippingTest.php
@@ -24,7 +24,6 @@ class MultishippingTest extends Functional
*/
public function testMultishippingCheckout(GuestPaypalDirect $fixture)
{
- $this->markTestIncomplete('MAGETWO-31038');
$fixture->persist();
//Ensure shopping cart is empty
diff --git a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertCustomerIsSubscribedToNewsletter.php b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertCustomerIsSubscribedToNewsletter.php
index d4df4c5f18ba4..e495cc5c26b6f 100644
--- a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertCustomerIsSubscribedToNewsletter.php
+++ b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertCustomerIsSubscribedToNewsletter.php
@@ -15,12 +15,9 @@
*/
class AssertCustomerIsSubscribedToNewsletter extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert customer is subscribed to newsletter
diff --git a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterForm.php b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterForm.php
index f07cb841b2d8f..87ecaab62d783 100644
--- a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterForm.php
+++ b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterForm.php
@@ -16,12 +16,9 @@
*/
class AssertNewsletterForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that newsletter template form data equals to data passed from fixture
diff --git a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterInGrid.php b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterInGrid.php
index 3a8978e4e2241..6413cb74527e3 100644
--- a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertNewsletterInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that newsletter template is present in grid
diff --git a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterPreview.php b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterPreview.php
index 631e908de3c39..358d9577e582c 100644
--- a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterPreview.php
+++ b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterPreview.php
@@ -16,12 +16,9 @@
*/
class AssertNewsletterPreview extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that newsletter preview opened in new window and template content correct
diff --git a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterQueue.php b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterQueue.php
index 912fe3596534b..2ce269d38a27f 100644
--- a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterQueue.php
+++ b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterQueue.php
@@ -15,6 +15,10 @@
*/
class AssertNewsletterQueue extends AbstractAssertForm
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Skipped fields for verify data
*
@@ -22,13 +26,6 @@ class AssertNewsletterQueue extends AbstractAssertForm
*/
protected $skippedFields = ['code'];
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that "Edit Queue" page opened and subject, sender name, sender email and template content correct
*
diff --git a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterSuccessCreateMessage.php b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterSuccessCreateMessage.php
index 0301b63722ab6..f6fd7b3160427 100644
--- a/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterSuccessCreateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Newsletter/Test/Constraint/AssertNewsletterSuccessCreateMessage.php
@@ -15,14 +15,11 @@
*/
class AssertNewsletterSuccessCreateMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The newsletter template has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The newsletter template has been saved.';
/**
* Assert that success message is displayed after newsletter template save
diff --git a/dev/tests/functional/tests/app/Magento/Newsletter/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Newsletter/Test/etc/constraint.xml
index a0e9aa600a287..c8f0a34ba60ed 100644
--- a/dev/tests/functional/tests/app/Magento/Newsletter/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Newsletter/Test/etc/constraint.xml
@@ -6,21 +6,21 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderForm.php b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderForm.php
index d031a3fb83a68..c276b006ddc33 100644
--- a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderForm.php
+++ b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderForm.php
@@ -15,12 +15,9 @@
*/
class AssertReminderForm extends AbstractAssertForm
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'medium';
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
/**
* Skipped fields for verify data.
diff --git a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderInGrid.php b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderInGrid.php
index de883f126d78d..0b025aa6f4f44 100644
--- a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertReminderInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert reminder with following fields is present in grid:
diff --git a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderMatchedCustomers.php b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderMatchedCustomers.php
index 48c388acc0b36..8f850a4fe53b1 100644
--- a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderMatchedCustomers.php
+++ b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderMatchedCustomers.php
@@ -23,12 +23,9 @@
*/
class AssertReminderMatchedCustomers extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Browser.
diff --git a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderSuccessSaveMessage.php
index 2468a69fd33ef..07e9ba4a3c76b 100644
--- a/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Reminder/Test/Constraint/AssertReminderSuccessSaveMessage.php
@@ -13,18 +13,15 @@
*/
class AssertReminderSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text success save reminder message.
*/
const SUCCESS_SAVE_MESSAGE = 'You saved the reminder rule.';
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is present.
*
diff --git a/dev/tests/functional/tests/app/Magento/Reminder/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Reminder/Test/etc/constraint.xml
index edee2310123c3..a3d29adf23bba 100644
--- a/dev/tests/functional/tests/app/Magento/Reminder/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Reminder/Test/etc/constraint.xml
@@ -6,15 +6,15 @@
-->
- low
+ low
- low
+ low
- medium
+ medium
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AbstractAssertCustomerOrderReportResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AbstractAssertCustomerOrderReportResult.php
index 2197bb7258ed6..c4ba864da99ce 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AbstractAssertCustomerOrderReportResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AbstractAssertCustomerOrderReportResult.php
@@ -14,12 +14,9 @@
*/
abstract class AbstractAssertCustomerOrderReportResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Prepare filter
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertAbandonedCartCustomerInfoResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertAbandonedCartCustomerInfoResult.php
index 72ef4692cb1b8..58c6d072f8808 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertAbandonedCartCustomerInfoResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertAbandonedCartCustomerInfoResult.php
@@ -15,12 +15,9 @@
*/
class AssertAbandonedCartCustomerInfoResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert customer info in Abandoned Carts report (Reports > Abandoned carts):
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertBestsellerReportResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertBestsellerReportResult.php
index 99703e7f14997..2d69337a2909f 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertBestsellerReportResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertBestsellerReportResult.php
@@ -15,12 +15,9 @@
*/
class AssertBestsellerReportResult extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert bestseller info in report: date, product name and qty.
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCouponReportResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCouponReportResult.php
index 85139327f6569..41c8dc7474129 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCouponReportResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCouponReportResult.php
@@ -15,12 +15,9 @@
*/
class AssertCouponReportResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert coupon info in report: code, rule name, subtotal, discount on coupons report page
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderCountReportResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderCountReportResult.php
index 66921b008c9c0..619f3061d7b24 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderCountReportResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderCountReportResult.php
@@ -14,12 +14,9 @@
*/
class AssertCustomerOrderCountReportResult extends AbstractAssertCustomerOrderReportResult
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert OrderCountReport grid for all params
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderTotalReportResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderTotalReportResult.php
index 61e58c60849ab..de236974bff77 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderTotalReportResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertCustomerOrderTotalReportResult.php
@@ -14,12 +14,9 @@
*/
class AssertCustomerOrderTotalReportResult extends AbstractAssertCustomerOrderReportResult
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert OrderTotalReport grid for all params
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertDownloadsReportResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertDownloadsReportResult.php
index 7d66a5cefe730..5705a052403c0 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertDownloadsReportResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertDownloadsReportResult.php
@@ -15,12 +15,9 @@
*/
class AssertDownloadsReportResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert product info in report: product name, link title, sku, downloads number (Reports > Products > Downloads)
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportIntervalResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportIntervalResult.php
index 5ed497d6efce8..7562f5be5f154 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportIntervalResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportIntervalResult.php
@@ -13,12 +13,9 @@
*/
class AssertInvoiceReportIntervalResult extends AbstractAssertInvoiceReportResult
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sales info in report grid is actual
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportTotalResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportTotalResult.php
index 61735bb586722..f09e7a50affa3 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportTotalResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertInvoiceReportTotalResult.php
@@ -13,12 +13,9 @@
*/
class AssertInvoiceReportTotalResult extends AbstractAssertInvoiceReportResult
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that total invoice info in report grid is actual
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertLowStockProductInGrid.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertLowStockProductInGrid.php
index 199810bc32f93..ced870e865592 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertLowStockProductInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertLowStockProductInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertLowStockProductInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product with Low Stock is present in Low Stock grid
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertNewAccountsReportTotalResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertNewAccountsReportTotalResult.php
index bd6f24bfd7453..6631a8ece4db7 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertNewAccountsReportTotalResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertNewAccountsReportTotalResult.php
@@ -14,12 +14,9 @@
*/
class AssertNewAccountsReportTotalResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that new account total result is equals to data from dataSet
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertOrderedProductResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertOrderedProductResult.php
index 8e0b5576be2fa..83687af93e8f4 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertOrderedProductResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertOrderedProductResult.php
@@ -18,12 +18,9 @@
*/
class AssertOrderedProductResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert product name and qty in Ordered Products report
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductInCartResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductInCartResult.php
index 1f83b9c77a1fc..d5a216645c46e 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductInCartResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductInCartResult.php
@@ -15,12 +15,9 @@
*/
class AssertProductInCartResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product is present in Products in Carts report grid by name, price, carts
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerInGrid.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerInGrid.php
index 7ccd652e8f8d4..a2f4ca35015a3 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerInGrid.php
@@ -19,12 +19,9 @@
*/
class AssertProductReportByCustomerInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Customer review is displayed in grid
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerNotInGrid.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerNotInGrid.php
index f0b7973314819..14378862d84bb 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReportByCustomerNotInGrid.php
@@ -19,12 +19,9 @@
*/
class AssertProductReportByCustomerNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts Customer Product Review not available in grid
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewIsAvailableForProduct.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewIsAvailableForProduct.php
index 36d7e3836301f..5495e693b1969 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewIsAvailableForProduct.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewIsAvailableForProduct.php
@@ -17,12 +17,9 @@
*/
class AssertProductReviewIsAvailableForProduct extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that review is visible in review grid for select product
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewReportIsVisibleInGrid.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewReportIsVisibleInGrid.php
index 8a3871a33d2f7..594ecd50ad655 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewReportIsVisibleInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewReportIsVisibleInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductReviewReportIsVisibleInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Product Review Report is visible in reports grid
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewsQtyByCustomer.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewsQtyByCustomer.php
index d1db5751fb722..f83785a49b3fe 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewsQtyByCustomer.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductReviewsQtyByCustomer.php
@@ -15,12 +15,9 @@
*/
class AssertProductReviewsQtyByCustomer extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert product reviews qty column in Review Report by Customer grid
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductViewsReportTotalResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductViewsReportTotalResult.php
index cd2d4364ee8b1..91f1b347c51d8 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductViewsReportTotalResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertProductViewsReportTotalResult.php
@@ -14,12 +14,9 @@
*/
class AssertProductViewsReportTotalResult extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert product info in report: product name, price and views
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertRefundReportIntervalResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertRefundReportIntervalResult.php
index cc889537e6795..7594a817f428f 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertRefundReportIntervalResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertRefundReportIntervalResult.php
@@ -14,12 +14,9 @@
*/
class AssertRefundReportIntervalResult extends AbstractAssertSalesReportResult
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert Credit Memo info in report: Refunds Orders, Total Refunded
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportIntervalResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportIntervalResult.php
index 670107a0b517b..50e3af977febb 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportIntervalResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportIntervalResult.php
@@ -14,12 +14,9 @@
*/
class AssertSalesReportIntervalResult extends AbstractAssertSalesReportResult
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sales info in report grid is actual
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportTotalResult.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportTotalResult.php
index 8da6fd7c516f8..182e5b37b14a2 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportTotalResult.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSalesReportTotalResult.php
@@ -14,12 +14,9 @@
*/
class AssertSalesReportTotalResult extends AbstractAssertSalesReportResult
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that total sales info in report grid is actual
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermReportForm.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermReportForm.php
index b30f247001cb3..489cdee9895a4 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermReportForm.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermReportForm.php
@@ -15,12 +15,9 @@
*/
class AssertSearchTermReportForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Search Term Report form data equals to passed from dataSet
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermsInGrid.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermsInGrid.php
index 3e0117c6cbe91..a0d6cf11102d3 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermsInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertSearchTermsInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertSearchTermsInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Search Terms report in grid
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportInGrid.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportInGrid.php
index d1217c71a596e..b52a73595d614 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertTaxReportInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert sales info in report: Tax, Rate, Orders, Tax Amount on tax report page
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportNotInGrid.php b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportNotInGrid.php
index 8247473c9df3b..c40d46f8dca27 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Constraint/AssertTaxReportNotInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertTaxReportNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert Tax report is absent on tax report page
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/Page/Adminhtml/ProductReportView.xml b/dev/tests/functional/tests/app/Magento/Reports/Test/Page/Adminhtml/ProductReportView.xml
index 1766c3dfd88fa..a7f9b858f4cd3 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/Page/Adminhtml/ProductReportView.xml
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/Page/Adminhtml/ProductReportView.xml
@@ -12,12 +12,12 @@
css selector
- Magento\Reports\Test\Block\Adminhtml\Viewed\FilterGrid
+ Magento\Reports\Test\Block\Adminhtml\Review\Products\Viewed\ProductGrid.gridcss selector
- Magento\Reports\Test\Block\Adminhtml\Viewed\Filter
+ Magento\Sales\Test\Block\Adminhtml\Report\Filter\Form#filter_formcss selector
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/AbandonedCartsReportEntityTest.php b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/AbandonedCartsReportEntityTest.php
index e808d05dc5b53..a7acfcfb81df5 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/AbandonedCartsReportEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/AbandonedCartsReportEntityTest.php
@@ -80,6 +80,7 @@ public function __inject(
*/
public function test($products, CustomerInjectable $customer)
{
+ $this->markTestIncomplete('Bug: MAGETWO-31737');
// Precondition
$products = $this->createProducts($products);
$customer->persist();
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/DownloadProductsReportEntityTest.php b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/DownloadProductsReportEntityTest.php
index ad5e499938fe6..3eb9432a53175 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/DownloadProductsReportEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/DownloadProductsReportEntityTest.php
@@ -79,7 +79,6 @@ public function __inject(
*/
public function test(OrderInjectable $order, $downloads)
{
- $this->markTestIncomplete('MAGETWO-30346');
// Preconditions
$order->persist();
$invoice = $this->objectManager->create('Magento\Sales\Test\TestStep\CreateInvoiceStep', ['order' => $order]);
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesCouponReportEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesCouponReportEntityTest/test.csv
index d3b91c6d306ef..b99734c752820 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesCouponReportEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesCouponReportEntityTest/test.csv
@@ -1,5 +1,5 @@
-"order/dataSet";"viewsReport/report_type";"viewsReport/period_type";"viewsReport/from";"viewsReport/to";"viewsReport/show_order_statuses";"viewsReport/order_statuses";"viewsReport/show_empty_rows";"viewsReport/price_rule_type";"viewsReport/rules_list";"constraint";"issue"
-"with_coupon";"Order Created Date";"Year";"m/d/Y";"m/d/Y";"Any";"-";"No";"Any";"-";"assertCouponReportResult";""
-"with_coupon";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Specified";"Processing";"No";"Any";"-";"assertCouponReportResult";""
-"with_coupon";"Order Updated Date";"Day";"m/d/Y";"m/d/Y";"Any";"-";"No";"Specified";"%rule_name%";"assertCouponReportResult";"Bug: MAGETWO-28201"
-"with_coupon";"Order Updated Date";"Day";"m/d/Y 12:00 a-1 day";"m/d/Y 12:00 a+1 day";"Specified";"Processing";"Yes";"Specified";"%rule_name%";"assertCouponReportResult";"Bug: MAGETWO-28201"
+"order/dataSet";"viewsReport/report_type";"viewsReport/period_type";"viewsReport/from";"viewsReport/to";"viewsReport/show_order_statuses";"viewsReport/order_statuses";"viewsReport/show_empty_rows";"viewsReport/price_rule_type";"viewsReport/rules_list";"constraint"
+"with_coupon";"Order Created Date";"Year";"m/d/Y";"m/d/Y";"Any";"-";"No";"Any";"-";"assertCouponReportResult"
+"with_coupon";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Specified";"Processing";"No";"Any";"-";"assertCouponReportResult"
+"with_coupon";"Order Updated Date";"Day";"m/d/Y";"m/d/Y";"Any";"-";"No";"Specified";"%rule_name%";"assertCouponReportResult"
+"with_coupon";"Order Updated Date";"Day";"m/d/Y 12:00 a-1 day";"m/d/Y 12:00 a+1 day";"Specified";"Processing";"Yes";"Specified";"%rule_name%";"assertCouponReportResult"
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesInvoiceReportEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesInvoiceReportEntityTest/test.csv
index 4f7347373f358..9870a0c150707 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesInvoiceReportEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesInvoiceReportEntityTest/test.csv
@@ -1,4 +1,4 @@
-"order/dataSet";"order/data/price/preset";"invoiceReport/report_type";"invoiceReport/period_type";"invoiceReport/from";"invoiceReport/to";"invoiceReport/show_order_statuses";"invoiceReport/data/order_statuses";"invoiceReport/show_empty_rows";"constraint";"issue"
-"default";"full_invoice";"Order Created Date";"Year";"m/d/Y 12:00 a-2 days";"m/d/Y 12:00 a+2 days";"Any";"-";"Yes";"assertInvoiceReportIntervalResult, assertInvoiceReportTotalResult";"Bug: MAGETWO-29383"
-"default";"full_invoice";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Any";"-";"No";"assertInvoiceReportIntervalResult, assertInvoiceReportTotalResult";""
-"default";"full_invoice";"Last Invoice Created Date";"Day";"m/d/Y";"m/d/Y";"Specified";"Processing";"No";"assertInvoiceReportIntervalResult, assertInvoiceReportTotalResult";""
+"order/dataSet";"order/data/price/preset";"invoiceReport/report_type";"invoiceReport/period_type";"invoiceReport/from";"invoiceReport/to";"invoiceReport/show_order_statuses";"invoiceReport/data/order_statuses";"invoiceReport/show_empty_rows";"constraint"
+"default";"full_invoice";"Order Created Date";"Year";"m/d/Y 12:00 a-2 days";"m/d/Y 12:00 a+2 days";"Any";"-";"Yes";"assertInvoiceReportIntervalResult, assertInvoiceReportTotalResult"
+"default";"full_invoice";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Any";"-";"No";"assertInvoiceReportIntervalResult, assertInvoiceReportTotalResult"
+"default";"full_invoice";"Last Invoice Created Date";"Day";"m/d/Y";"m/d/Y";"Specified";"Processing";"No";"assertInvoiceReportIntervalResult, assertInvoiceReportTotalResult"
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesOrderReportEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesOrderReportEntityTest/test.csv
index e5dab82b29e18..8503c9d896de0 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesOrderReportEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesOrderReportEntityTest/test.csv
@@ -1,4 +1,4 @@
-"order/dataSet";"order/data/price/preset";"salesReport/report_type";"salesReport/period_type";"salesReport/from";"salesReport/to";"salesReport/show_order_statuses";"salesReport/order_statuses";"salesReport/show_empty_rows";"salesReport/show_actual_columns";"constraint";"issue"
-"default";"full_invoice";"Order Created Date";"Year";"m/d/Y 12:00 a-2 days";"m/d/Y 12:00 a+2 days";"Any";"-";"Yes";"Yes";"assertSalesReportIntervalResult, assertSalesReportTotalResult";";"Bug: MAGETWO-29383"
-"default";"full_invoice";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Any";"-";"No";"No";"assertSalesReportIntervalResult, assertSalesReportTotalResult";""
-"default";"full_invoice";"Order Updated Date";"Day";"m/d/Y";"m/d/Y";"Specified";"Processing";"No";"No";"assertSalesReportIntervalResult, assertSalesReportTotalResult";""
+"order/dataSet";"order/data/price/preset";"salesReport/report_type";"salesReport/period_type";"salesReport/from";"salesReport/to";"salesReport/show_order_statuses";"salesReport/order_statuses";"salesReport/show_empty_rows";"salesReport/show_actual_columns";"constraint"
+"default";"full_invoice";"Order Created Date";"Year";"m/d/Y 12:00 a-2 days";"m/d/Y 12:00 a+2 days";"Any";"-";"Yes";"Yes";"assertSalesReportIntervalResult, assertSalesReportTotalResult"
+"default";"full_invoice";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Any";"-";"No";"No";"assertSalesReportIntervalResult, assertSalesReportTotalResult"
+"default";"full_invoice";"Order Updated Date";"Day";"m/d/Y";"m/d/Y";"Specified";"Processing";"No";"No";"assertSalesReportIntervalResult, assertSalesReportTotalResult"
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesRefundsReportEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesRefundsReportEntityTest/test.csv
index f25229d78431f..74fb07c3a15fd 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesRefundsReportEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesRefundsReportEntityTest/test.csv
@@ -1,4 +1,4 @@
-"description";"order/dataSet";"order/data/price/preset";"refundsReport/report_type";"refundsReport/period_type";"refundsReport/from";"refundsReport/to";"refundsReport/show_order_statuses";"refundsReport/show_empty_rows";"constraint";"issue"
-"assert refunds year report";"default";"full_invoice";"Order Created Date";"Year";"m/d/Y 12:00 a-2 days";"m/d/Y 12:00 a+2 days";"Any";"Yes";"assertRefundReportIntervalResult";"MAGETWO-29383"
-"assert refunds month report";"default";"full_invoice";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Any";"No";"assertRefundReportIntervalResult";""
-"assert refund Daily report";"default";"full_invoice";"Last Credit Memo Created Date";"Day";"m/d/Y";"m/d/Y";"Specified";"No";"assertRefundReportIntervalResult";""
+"description";"order/dataSet";"order/data/price/preset";"refundsReport/report_type";"refundsReport/period_type";"refundsReport/from";"refundsReport/to";"refundsReport/show_order_statuses";"refundsReport/show_empty_rows";"constraint"
+"assert refunds year report";"default";"full_invoice";"Order Created Date";"Year";"m/d/Y 12:00 a-2 days";"m/d/Y 12:00 a+2 days";"Any";"Yes";"assertRefundReportIntervalResult"
+"assert refunds month report";"default";"full_invoice";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Any";"No";"assertRefundReportIntervalResult"
+"assert refund Daily report";"default";"full_invoice";"Last Credit Memo Created Date";"Day";"m/d/Y";"m/d/Y";"Specified";"No";"assertRefundReportIntervalResult"
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest.php b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest.php
index f022023a386ed..21bd43ea2c6d5 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest.php
@@ -143,16 +143,14 @@ public function __inject(
* @param OrderInjectable $order
* @param TaxRule $taxRule
* @param array $report
- * @param string $orderStatus
- * @param string $invoice
+ * @param string $orderSteps
* @return void
*/
public function test(
OrderInjectable $order,
TaxRule $taxRule,
array $report,
- $orderStatus,
- $invoice
+ $orderSteps
) {
// Precondition
$taxRule->persist();
@@ -160,13 +158,7 @@ public function test(
$order->persist();
$this->orderIndex->open();
$this->orderIndex->getSalesOrderGrid()->searchAndOpen(['id' => $order->getId()]);
- if ($orderStatus !== 'Pending') {
- $createInvoice = $this->objectManager->create(
- 'Magento\Sales\Test\TestStep\CreateInvoiceStep',
- ['order' => $order, 'data' => $invoice]
- );
- $createInvoice->run();
- }
+ $this->processOrder($orderSteps, $order);
$this->reportStatistic->open();
$this->reportStatistic->getGridBlock()->massaction(
[['report' => 'Tax']],
@@ -180,6 +172,27 @@ public function test(
$this->salesTaxReport->getActionBlock()->showReport();
}
+ /**
+ * Process order to corresponded status.
+ *
+ * @param string $orderSteps
+ * @param OrderInjectable $order
+ * @return void
+ */
+ protected function processOrder($orderSteps, OrderInjectable $order)
+ {
+ if (!$orderSteps) {
+ return;
+ }
+ $orderStatus = explode(',', $orderSteps);
+ foreach ($orderStatus as $orderStep) {
+ $this->objectManager->create(
+ 'Magento\Sales\Test\TestStep\\Create' . ucfirst(trim($orderStep)) . 'Step',
+ ['order' => $order]
+ )->run();
+ }
+ }
+
/**
* Delete all tax rules after test.
*
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest/test.csv
index 733b7a871cd84..615e27ca04b68 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/SalesTaxReportEntityTest/test.csv
@@ -1,4 +1,4 @@
-"taxRule/dataSet";"order/dataSet";"orderStatus";"report/report_type";"report/period_type";"report/from";"report/to";"report/show_order_statuses";"report/order_statuses";"report/show_empty_rows";"invoice/do_shipment";"taxAmount";"constraint";"issue"
-"custom_rule";"default";"Pending";"Order Created Date";"Day";"m/d/Y";"m/d/Y";"Any";"-";"-";"No";"$46.20";"assertTaxReportNotInGrid";""
-"custom_rule";"default";"Processing";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Specified";"Processing";"-";"No";"$46.20";"assertTaxReportInGrid";""
-"custom_rule";"default";"Complete";"Order Updated Date";"Year";"m/d/Y";"m/d/Y";"Specified";"Complete";"Yes";"Yes";"$46.20";"assertTaxReportInGrid";"Bug: MAGETWO-28611"
+"orderSteps";"taxRule/dataSet";"order/dataSet";"orderStatus";"report/report_type";"report/period_type";"report/from";"report/to";"report/show_order_statuses";"report/order_statuses";"report/show_empty_rows";"invoice/do_shipment";"taxAmount";"constraint";"issue"
+"";"custom_rule";"default";"Pending";"Order Created Date";"Day";"m/d/Y";"m/d/Y";"Any";"-";"-";"No";"$46.20";"assertTaxReportNotInGrid";""
+"invoice";"custom_rule";"default";"Processing";"Order Created Date";"Month";"m/d/Y";"m/d/Y";"Specified";"Processing";"-";"No";"$46.20";"assertTaxReportInGrid";""
+"invoice,shipment";"custom_rule";"default";"Complete";"Order Updated Date";"Year";"m/d/Y";"m/d/Y";"Specified";"Complete";"Yes";"Yes";"$46.20";"assertTaxReportInGrid";"BUG: MAGETWO-29383"
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest.php b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest.php
index 77ab7cdba8d7f..d9e2df96f8ed1 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest.php
@@ -5,10 +5,11 @@
namespace Magento\Reports\Test\TestCase;
-use Magento\Reports\Test\Page\Adminhtml\ProductReportView;
use Mtf\Client\Browser;
-use Mtf\Fixture\FixtureFactory;
use Mtf\TestCase\Injectable;
+use Mtf\Fixture\FixtureFactory;
+use Magento\Reports\Test\Page\Adminhtml\ProductReportView;
+use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
/**
* Test Creation for ViewedProductsReportEntity
@@ -52,6 +53,18 @@ class ViewedProductsReportEntityTest extends Injectable
*/
protected $browser;
+ /**
+ * Delete all products
+ *
+ * @param CatalogProductIndex $catalogProductIndexPage
+ * @return void
+ */
+ public function __prepare(CatalogProductIndex $catalogProductIndexPage)
+ {
+ $catalogProductIndexPage->open();
+ $catalogProductIndexPage->getProductGrid()->massaction([], 'Delete', true, 'Select All');
+ }
+
/**
* Inject pages
*
@@ -80,7 +93,6 @@ public function __inject(
*/
public function test($products, array $viewsReport, $total)
{
- $this->markTestIncomplete('MAGETWO-15707');
// Preconditions
$productsList = $this->prepareProducts($products);
$this->openProducts($productsList, $total);
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest/test.csv
index 390345cb8208f..fd637ffda83b6 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/TestCase/ViewedProductsReportEntityTest/test.csv
@@ -1,4 +1,4 @@
"description";"total";"products";"viewsReport/period_type";"viewsReport/from";"viewsReport/to";"viewsReport/show_empty_rows";"constraint"
"view products on front and verify they all reflected in Year report";"2, 1";"catalogProductSimple::default, catalogProductVirtual::default";"Year";"m/d/Y -1 year";"m/d/Y";"No";"assertProductViewsReportTotalResult"
-"view products on front and verify they all reflected in Month report";"1, 1";"downloadableProductInjectable::default, catalogProductBundle::bundle_dynamic_product";"Month";"m/d/Y";"m/d/Y";"No";"assertProductViewsReportTotalResult"
-"view products on front and verify they all reflected in Day report";"1, 1";"configurableProductInjectable::default, catalogProductGrouped::default";"Day";"m/d/Y -1 day";"m/d/Y +1 day";"Yes";"assertProductViewsReportTotalResult"
+"view products on front and verify they all reflected in Month report";"1, 1";"downloadableProductInjectable::default, bundleProduct::bundle_dynamic_product";"Month";"m/d/Y";"m/d/Y";"No";"assertProductViewsReportTotalResult"
+"view products on front and verify they all reflected in Day report";"1, 1";"configurableProductInjectable::default, groupedProductInjectable::default";"Day";"m/d/Y -1 day";"m/d/Y +1 day";"Yes";"assertProductViewsReportTotalResult"
diff --git a/dev/tests/functional/tests/app/Magento/Reports/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Reports/Test/etc/constraint.xml
index 12d41c877d45a..265b5217ffac2 100644
--- a/dev/tests/functional/tests/app/Magento/Reports/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Reports/Test/etc/constraint.xml
@@ -6,78 +6,78 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/Edit/CustomerForm.xml b/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/Edit/CustomerForm.xml
index c00979849ac9d..21db32b88fed9 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/Edit/CustomerForm.xml
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/Edit/CustomerForm.xml
@@ -7,7 +7,7 @@
\Magento\Review\Test\Block\Adminhtml\Customer\Edit\Tab\Reviews
- #customer_info_tabs_reviews
+ #tab_reviewscss selector
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/ReviewsTab.php b/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/ReviewsTab.php
index 8e2d9b1c2e920..c2983dbc7d95c 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/ReviewsTab.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Block/Adminhtml/ReviewsTab.php
@@ -18,7 +18,7 @@ class ReviewsTab extends Tab
*
* @var string
*/
- protected $reviews = '#Product_Reviews';
+ protected $reviews = '#reviwGrid';
/**
* Returns product reviews grid
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInGrid.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInGrid.php
index a4040a184462a..050c2d10f281e 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertProductRatingInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert product Rating availability in product Rating grid
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInProductPage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInProductPage.php
index a491693e25011..66b26ef9c4d13 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingInProductPage.php
@@ -18,12 +18,9 @@
*/
class AssertProductRatingInProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product rating is displayed on product review(frontend)
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInGrid.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInGrid.php
index cbbaf0b30502d..23cf3f3a88ae1 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertProductRatingNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert product Rating is absent on product Rating grid
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInProductPage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInProductPage.php
index 5bc7c81fa2838..43c3cf191fc62 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingNotInProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertProductRatingNotInProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product rating is not displayed on frontend on product review
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingOnReviewPage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingOnReviewPage.php
index a0e657f29f421..4f3e23a8338ea 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingOnReviewPage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingOnReviewPage.php
@@ -15,12 +15,9 @@
*/
class AssertProductRatingOnReviewPage extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product rating is displayed on product review(backend)
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessDeleteMessage.php
index a138f6038a5ae..62490decee02b 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertProductRatingSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'You deleted the rating.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_DELETE_MESSAGE = 'You deleted the rating.';
/**
* Assert that success message is displayed after rating delete
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessSaveMessage.php
index b2be0173d951c..db1fb17ba36ae 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductRatingSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertProductRatingSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the rating.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'You saved the rating.';
/**
* Assert that success message is displayed after rating save
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewBackendSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewBackendSuccessSaveMessage.php
index b7bfe5a5ebf6e..fad1e066f90dd 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewBackendSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewBackendSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertProductReviewBackendSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
+
/**
* Text of success message after review created
*/
const SUCCESS_MESSAGE = 'You saved the review.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
-
/**
* Assert that success message is displayed after review created
*
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGrid.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGrid.php
index 32bbc3723eb44..b83eeecf9381f 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertProductReviewInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Filter params
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGridOnCustomerPage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGridOnCustomerPage.php
index a59b875ab0e77..f135712301a99 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGridOnCustomerPage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewInGridOnCustomerPage.php
@@ -18,12 +18,9 @@
*/
class AssertProductReviewInGridOnCustomerPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts all Product Review variables in the reviews grid on customer page
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessDeleteMessage.php
index df39cca65f837..811356bb59764 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessDeleteMessage.php
@@ -15,18 +15,15 @@
*/
class AssertProductReviewMassActionSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message that appears after deletion via mass actions
*/
const SUCCESS_DELETE_MESSAGE = 'A total of %d record(s) have been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success message is displayed after deletion via mass actions
*
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessMessage.php
index fab20856815fd..85dda0cdc5a16 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewMassActionSuccessMessage.php
@@ -15,18 +15,15 @@
*/
class AssertProductReviewMassActionSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message that appears after updates via mass actions
*/
const SUCCESS_MESSAGE = 'A total of %d record(s) have been updated.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success message is displayed after updated via mass actions
*
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotInGrid.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotInGrid.php
index aa96f23a1380c..d60bd2d1f823c 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertProductReviewNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Filter params
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotOnProductPage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotOnProductPage.php
index 7776da4c89cd7..e5a3ae3b556ec 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewNotOnProductPage.php
@@ -17,12 +17,9 @@
*/
class AssertProductReviewNotOnProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product review Not available on product page
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewOnProductPage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewOnProductPage.php
index 5bff591d0208d..7ff7a616b380b 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertProductReviewOnProductPage.php
@@ -18,12 +18,9 @@
*/
class AssertProductReviewOnProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that product review available on product page
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewCreationSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewCreationSuccessMessage.php
index 1093c4e23528e..c7fc83dedb5c5 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewCreationSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewCreationSuccessMessage.php
@@ -13,18 +13,15 @@
*/
class AssertReviewCreationSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text of success message after review created
*/
const SUCCESS_MESSAGE = 'Your review has been accepted for moderation.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success message is displayed after review created
*
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewSuccessSaveMessage.php
index 1316973c66562..1f65a344f5fb1 100755
--- a/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/Constraint/AssertReviewSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertReviewSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the review.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'You saved the review.';
/**
* Assert that success message is displayed after review save
diff --git a/dev/tests/functional/tests/app/Magento/Review/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Review/Test/etc/constraint.xml
index 5174b9ce6d7f3..fa4d771db01fb 100644
--- a/dev/tests/functional/tests/app/Magento/Review/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Review/Test/etc/constraint.xml
@@ -6,63 +6,63 @@
-->
- high
+ high
- high
+ high
- middle
+ middle
- middle
+ middle
- middle
+ middle
- middle
+ middle
- high
+ high
- high
+ high
- low
+ low
- middle
+ middle
- middle
+ middle
- high
+ high
- high
+ high
- middle
+ middle
- middle
+ middle
- middle
+ middle
- low
+ low
- low
+ low
\ No newline at end of file
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Adminhtml/Edit/CustomerForm.xml b/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Adminhtml/Edit/CustomerForm.xml
index 49594edd6b181..41ac57ea76c0b 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Adminhtml/Edit/CustomerForm.xml
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Adminhtml/Edit/CustomerForm.xml
@@ -7,7 +7,7 @@
\Magento\Reward\Test\Block\Adminhtml\Edit\Tab\Reward
- #customer_info_tabs_customer_edit_tab_reward
+ #tab_customer_edit_tab_rewardcss selectorreward
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Customer/RewardPoints/RewardPointsInformation.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Customer/RewardPoints/RewardPointsInformation.php
index ffc0c8e4f7a5a..e21ad425b9c23 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Customer/RewardPoints/RewardPointsInformation.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Block/Customer/RewardPoints/RewardPointsInformation.php
@@ -34,7 +34,8 @@ class RewardPointsInformation extends Block
*/
public function getRewardPointsRates()
{
- return $this->_rootElement->find($this->rewardRatesSelector)->getText();
+ $rates = $this->_rootElement->find($this->rewardRatesSelector)->getText();
+ return trim(preg_replace('/\s+/', ' ', $rates));
}
/**
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRateSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRateSuccessSaveMessage.php
index 151eb906afa63..2ea437c7f27bd 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRateSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRateSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertRateSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message after success saved Exchange Rate
*/
const SUCCESS_SAVE_MESSAGE = 'You saved the rate.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that specified message is present on page
*
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardInHistoryGrid.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardInHistoryGrid.php
index 34ac9b963bde8..d6ace74e69249 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardInHistoryGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardInHistoryGrid.php
@@ -18,12 +18,9 @@
*/
class AssertRewardInHistoryGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that after updating reward balance - it reflects in history grid: check Points, Website, Comment
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForCurrencyToPoints.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForCurrencyToPoints.php
index 92b2aa8696b61..42f77a3e9baff 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForCurrencyToPoints.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForCurrencyToPoints.php
@@ -20,12 +20,9 @@
*/
class AssertRewardNoExchangeMessageForCurrencyToPoints extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that "Each $X spent will earn X Reward points" message is not displayed on the RewardCustomerInfo page.
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForPointsToCurrency.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForPointsToCurrency.php
index 5f6e2776193a9..e84b96e0e853e 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForPointsToCurrency.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardNoExchangeMessageForPointsToCurrency.php
@@ -19,12 +19,9 @@
*/
class AssertRewardNoExchangeMessageForPointsToCurrency extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Each X Reward points can be redeemed for $X message is not displayed on the RewardCustomerInfo page.
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsBalance.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsBalance.php
index 871d92d218797..7351b25540b3e 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsBalance.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsBalance.php
@@ -19,6 +19,10 @@
*/
class AssertRewardPointsBalance extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Messages about reward points balance
*/
@@ -27,14 +31,7 @@ class AssertRewardPointsBalance extends AbstractConstraint
/**
* Message about reward points exchange rate
*/
- const REWARD_POINTS_EXCHANGE_RATE = 'Current exchange rates: Each %d Reward points can be redeemed for $%.2f.';
-
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const REWARD_POINTS_EXCHANGE_RATE = 'Current exchange rates: %d Reward points = $%.2f';
/**
* Assert that "Your balance is X Reward points ($X.00)." and current exchange message are appeared
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnCustomerRegistration.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnCustomerRegistration.php
index af039d565ebd5..ebe04a975c39b 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnCustomerRegistration.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnCustomerRegistration.php
@@ -15,18 +15,15 @@
*/
class AssertRewardPointsMessageOnCustomerRegistration extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message about reward points on registration page
*/
const REGISTRATION_REWARD_MESSAGE = 'Register on our site now and earn %d Reward points.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that reward points message is appeared on the Create New Customer Account page
*
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnShoppingCart.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnShoppingCart.php
index a65a7b2e51e57..f12b4b79f6cb4 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnShoppingCart.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsMessageOnShoppingCart.php
@@ -17,18 +17,15 @@
*/
class AssertRewardPointsMessageOnShoppingCart extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message about reward points on checkout page
*/
const CHECKOUT_REWARD_MESSAGE = 'Check out now and earn %d Reward points for this order.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that reward points message is displayed on shopping cart page
*
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessDeleteMessage.php
index 45f51f540d42b..27c2d8ab2c684 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertRewardPointsSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message about successful deletion reward exchange rate
*/
const SUCCESS_DELETE_MESSAGE = 'You deleted the rate.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Asserts that success delete message equals to expected message
*
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessRemoveMessage.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessRemoveMessage.php
index 51f8255d67104..7870b683ec721 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessRemoveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardPointsSuccessRemoveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertRewardPointsSuccessRemoveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message displayed after remove reward points
*/
const SUCCESS_REMOVE_MESSAGE = 'You removed the reward points from this order.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after remove reward points successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionOnBackend.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionOnBackend.php
index 8fe80f39d7ace..e874abc9ff03d 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionOnBackend.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionOnBackend.php
@@ -17,12 +17,9 @@
*/
class AssertRewardSubscriptionOnBackend extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that customer reward subscriptions checkboxes are empty
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionSaveMessage.php b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionSaveMessage.php
index 057ea51f550fe..6e5ec953c2607 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/Constraint/AssertRewardSubscriptionSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertRewardSubscriptionSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'You saved the settings.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_SAVE_MESSAGE = 'You saved the settings.';
/**
* Assert that reward points subscription settings success save message is present on page
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/CreateExchangeRateForRewardPointsEntityTest.php b/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/CreateExchangeRateForRewardPointsEntityTest.php
index 48c73d83e7724..57ac4fd519770 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/CreateExchangeRateForRewardPointsEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/CreateExchangeRateForRewardPointsEntityTest.php
@@ -91,19 +91,13 @@ public function __inject(
* @param CustomerInjectable $customer
* @param ConfigData $config
* @param ConfigData $configRollback
- * @param string $registrationReward
- * @param string $checkoutReward
* @return void
- *
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function test(
RewardRate $rate,
CustomerInjectable $customer,
ConfigData $config,
- ConfigData $configRollback,
- $registrationReward,
- $checkoutReward
+ ConfigData $configRollback
) {
// Precondition
$this->configRollback = $configRollback;
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/RemoveRewardPointsOnCheckoutTest.php b/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/RemoveRewardPointsOnCheckoutTest.php
index 4c68780865514..673d278c39da1 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/RemoveRewardPointsOnCheckoutTest.php
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/TestCase/RemoveRewardPointsOnCheckoutTest.php
@@ -129,10 +129,6 @@ public function __prepare(
$this->fixtureFactory = $fixtureFactory;
$product = $fixtureFactory->createByCode('catalogProductSimple');
$product->persist();
- $rewardRate = $fixtureFactory->createByCode('rewardRate', ['dataSet' => 'rate_1_point_to_1_currency']);
- $rewardRate->persist();
- $rewardRate = $fixtureFactory->createByCode('rewardRate', ['dataSet' => 'rate_1_currency_to_1_point']);
- $rewardRate->persist();
return ['product' => $product];
}
@@ -162,6 +158,11 @@ public function __inject(
$this->checkoutCart = $checkoutCart;
$this->checkoutOnepage = $checkoutOnepage;
$this->customerAccountLogout = $customerAccountLogout;
+ // TODO: Move creation of reward rates to "__prepare" method after fix bug MAGETWO-29331
+ $rewardRate = $this->fixtureFactory->createByCode('rewardRate', ['dataSet' => 'rate_1_point_to_1_currency']);
+ $rewardRate->persist();
+ $rewardRate = $this->fixtureFactory->createByCode('rewardRate', ['dataSet' => 'rate_1_currency_to_1_point']);
+ $rewardRate->persist();
}
/**
@@ -185,8 +186,6 @@ public function test(
array $payment,
$rewardPoints
) {
- $this->markTestIncomplete("Bug: MAGETWO-30435");
-
// Preconditions
$customer->persist();
$reward = $this->fixtureFactory->createByCode(
@@ -225,15 +224,8 @@ public function test(
public function tearDown()
{
$this->customerAccountLogout->open();
- }
- /**
- * Delete reward exchange rates
- *
- * @return void
- */
- public static function tearDownAfterClass()
- {
+ // TODO: Move deletion of reward rates to "tearDownAfterClass" method after fix bug MAGETWO-29331
self::$rewardRateIndexPage->open();
while (self::$rewardRateIndexPage->getRewardRateGrid()->isFirstRowVisible()) {
self::$rewardRateIndexPage->getRewardRateGrid()->openFirstRow();
diff --git a/dev/tests/functional/tests/app/Magento/Reward/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Reward/Test/etc/constraint.xml
index 677f281646416..82e5bcf86f2ef 100644
--- a/dev/tests/functional/tests/app/Magento/Reward/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Reward/Test/etc/constraint.xml
@@ -6,13 +6,13 @@
-->
- low
+ low
- low
+ low
@@ -23,7 +23,7 @@
- low
+ low
@@ -34,13 +34,13 @@
- low
+ low
- low
+ low
@@ -49,20 +49,20 @@
- high
+ high
- high
+ high
- low
+ low
@@ -73,7 +73,7 @@
- low
+ low
@@ -81,7 +81,7 @@
- low
+ low
@@ -90,7 +90,7 @@
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaForm.php b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaForm.php
index 1466a87d581c4..10b657d6b75bb 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaForm.php
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaForm.php
@@ -18,12 +18,9 @@
*/
class AssertRmaForm extends AbstractAssertForm
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Array skipped fields.
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaInGrid.php b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaInGrid.php
index cafe2e2fd5c5c..4fa732a3f2001 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertRmaInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that return request displayed in Returns grid:
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForCustomer.php b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForCustomer.php
index 3b04ac3eb8f0c..f90931bfac0ba 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForCustomer.php
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForCustomer.php
@@ -18,12 +18,9 @@
*/
class AssertRmaOnFrontendForCustomer extends AbstractAssertRmaOnFrontend
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that rma is correct display on frontend (MyAccount - My Returns):
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForGuest.php b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForGuest.php
index f44d3ceb2d13b..5a0bf56c4a0bf 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForGuest.php
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaOnFrontendForGuest.php
@@ -16,12 +16,9 @@
*/
class AssertRmaOnFrontendForGuest extends AbstractAssertRmaOnFrontend
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'middle';
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
/**
* Assert that rma is correct display for guest on frontend (Orders and Returns):
@@ -47,7 +44,7 @@ public function processAssert(
['order' => $order]
)->run();
- $salesGuestView->getViewBlock()->clickLink('Returns');
+ $salesGuestView->getViewBlock()->openLinkByName('Returns');
$fixtureRmaStatus = $rma->getStatus();
$pageRmaData = $rmaGuestIndex->getReturnsBlock()->getRmaRow($rma)->getData();
\PHPUnit_Framework_Assert::assertEquals(
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaSuccessSaveMessage.php
index 6bc55e0031d42..85b7644f6bd74 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/Constraint/AssertRmaSuccessSaveMessage.php
@@ -13,18 +13,15 @@
*/
class AssertRmaSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
+
/**
* Rma success save message.
*/
const SUCCESS_SAVE_MESSAGE = 'You submitted the RMA request.';
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'middle';
-
/**
* Assert success message appears after submitting new return request.
*
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/Fixture/ReturnItem.php b/dev/tests/functional/tests/app/Magento/Rma/Test/Fixture/ReturnItem.php
index 545f0076916d5..eeb2fee6f93d1 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/Fixture/ReturnItem.php
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/Fixture/ReturnItem.php
@@ -50,7 +50,7 @@ protected function _initData()
'value' => '',
],
'find_order_by' => [
- 'value' => 'Email Address',
+ 'value' => 'Email',
],
'email_address' => [
'value' => '',
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/CreateRmaEntityOnBackendTest/test.csv b/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/CreateRmaEntityOnBackendTest/test.csv
index 37936895c9eb3..15236e8954db8 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/CreateRmaEntityOnBackendTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/CreateRmaEntityOnBackendTest/test.csv
@@ -1,5 +1,5 @@
-"rma/data/order_id/preset";"rma/data/order_id/data/customer_id/dataSet";"rma/data/order_id/data/entity_id/products";"rma/data/items/data/0/qty_requested";"rma/data/items/data/0/reason";"rma/data/items/data/0/reason_other";"rma/data/items/data/0/condition";"rma/data/items/data/0/resolution";"rma/data/contact_email";"rma/data/comment/comment";"rma/data/comment/is_visible_on_front";"rma/data/status";"constraint";"issue"
-"default";"default";"catalogProductSimple::default";"1";"Wrong Size";"-";"Damaged";"Exchange";"test%isolation%@example.com";"comments %isolation%";"Yes";"Pending";"assertRmaInGrid, assertRmaForm, assertRmaOnFrontendForCustomer";""
-"default";"default";"configurableProductInjectable::default";"1";"Wrong Color";"-";"Opened";"Refund";"test%isolation%@example.com";"comments %isolation%";"No";"Pending";"assertRmaInGrid, assertRmaConfigurableForm, assertRmaConfigurableOnFrontendForCustomer";""
-"default";"default";"bundleProduct::bundle_fixed_product";"1";"Out of Service";"-";"Unopened";"Store Credit";"test%isolation%@example.com";"comments %isolation%";"Yes";"Pending";"assertRmaInGrid, assertRmaBundleOnFrontendForCustomer";""
-"default";"default";"catalogProductSimple::default";"1";"Other";"Other %isolation%";"Unopened";"Exchange";"test%isolation%@example.com";"comments %isolation%";"Yes";"Pending";"assertRmaInGrid, assertRmaOnFrontendForGuest";"Bug: MAGETWO-29552"
+"rma/data/order_id/preset";"rma/data/order_id/data/customer_id/dataSet";"rma/data/order_id/data/entity_id/products";"rma/data/items/data/0/qty_requested";"rma/data/items/data/0/reason";"rma/data/items/data/0/reason_other";"rma/data/items/data/0/condition";"rma/data/items/data/0/resolution";"rma/data/contact_email";"rma/data/comment/comment";"rma/data/comment/is_visible_on_front";"rma/data/status";"constraint"
+"default";"default";"catalogProductSimple::default";"1";"Wrong Size";"-";"Damaged";"Exchange";"test%isolation%@example.com";"comments %isolation%";"Yes";"Pending";"assertRmaInGrid, assertRmaForm, assertRmaOnFrontendForCustomer"
+"default";"default";"configurableProductInjectable::default";"1";"Wrong Color";"-";"Opened";"Refund";"test%isolation%@example.com";"comments %isolation%";"No";"Pending";"assertRmaInGrid, assertRmaConfigurableForm, assertRmaConfigurableOnFrontendForCustomer"
+"default";"default";"bundleProduct::bundle_fixed_product";"1";"Out of Service";"-";"Unopened";"Store Credit";"test%isolation%@example.com";"comments %isolation%";"Yes";"Pending";"assertRmaInGrid, assertRmaBundleOnFrontendForCustomer"
+"default";"default";"catalogProductSimple::default";"1";"Other";"Other %isolation%";"Unopened";"Exchange";"test%isolation%@example.com";"comments %isolation%";"Yes";"Pending";"assertRmaInGrid, assertRmaOnFrontendForGuest"
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/RmaTest.php b/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/RmaTest.php
index 96f0df2594fde..681db07f80498 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/RmaTest.php
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/TestCase/RmaTest.php
@@ -44,8 +44,7 @@ public function testRma()
$searchForm->submit();
// Step 5: Click "Return" link
- $viewBlock = Factory::getPageFactory()->getSalesGuestView()->getViewBlock();
- $viewBlock->clickLink('Return');
+ Factory::getPageFactory()->getSalesGuestView()->getActionsToolbar()->clickLink('Return');
// Steps 6 - 9:
$returnId = $this->createRma($returnItem, $payPalExpressOrder);
diff --git a/dev/tests/functional/tests/app/Magento/Rma/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Rma/Test/etc/constraint.xml
index cbba8c868ea87..84a7c159b275e 100644
--- a/dev/tests/functional/tests/app/Magento/Rma/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Rma/Test/etc/constraint.xml
@@ -6,27 +6,27 @@
-->
- high
+ high
- low
+ low
- middle
+ middle
- middle
+ middle
- high
+ high
- middle
+ middle
- middle
+ middle
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/AbstractForm.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/AbstractForm.php
index 761e3a8936e33..355bdef0c473c 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/AbstractForm.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/AbstractForm.php
@@ -25,7 +25,7 @@ abstract class AbstractForm extends Form
*
* @var string
*/
- protected $loader = '#loading_mask_loader';
+ protected $loader = '[data-role="loader"]';
/**
* Fill form data
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Order/Info/Buttons.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Order/View/ActionsToolbar.php
similarity index 53%
rename from dev/tests/functional/tests/app/Magento/Sales/Test/Block/Order/Info/Buttons.php
rename to dev/tests/functional/tests/app/Magento/Sales/Test/Block/Order/View/ActionsToolbar.php
index b48213a3076b3..d1e49fb25fa47 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Order/Info/Buttons.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Order/View/ActionsToolbar.php
@@ -3,7 +3,7 @@
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
-namespace Magento\Sales\Test\Block\Order\Info;
+namespace Magento\Sales\Test\Block\Order\View;
use Mtf\Block\Block;
use Mtf\Client\Element\Locator;
@@ -11,21 +11,14 @@
/**
* Order view block.
*/
-class Buttons extends Block
+class ActionsToolbar extends Block
{
- /**
- * Selector for "Print Order" link.
- *
- * @var string
- */
- protected $printOrderSelector = '.action.print';
-
/**
* Link selector.
*
* @var string
*/
- protected $linkSelector = '//div[contains(@class, "order-actions-toolbar")]//span[contains(text(), "%s")]';
+ protected $linkSelector = './/a[contains(@class, "action")]//span[contains(text(), "%s")]';
/**
* Click link on this page.
@@ -38,14 +31,4 @@ public function clickLink($linkName)
}
$link->click();
}
-
- /**
- * Click on "Print Order" link.
- *
- * @return void
- */
- public function clickPrintOrder()
- {
- $this->_rootElement->find($this->printOrderSelector)->click();
- }
}
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Widget/Guest/Form.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Widget/Guest/Form.php
index ade2c1ebf3bdb..0965eafbcf4a5 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Widget/Guest/Form.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Block/Widget/Guest/Form.php
@@ -51,7 +51,7 @@ public function fill(FixtureInterface $fixture, Element $element = null, $isSear
];
if ($isSearchByEmail) {
- $data['find_order_by'] = 'Email Address';
+ $data['find_order_by'] = 'Email';
$data['email_address'] = $customer->getEmail();
} else {
$data['find_order_by'] = 'ZIP Code';
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoButton.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoButton.php
index 6bd378142ea61..5fd4edeb0fce6 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoButton.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoButton.php
@@ -16,12 +16,9 @@
*/
class AssertCreditMemoButton extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that 'Credit Memo' button is present on order's page
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoItems.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoItems.php
index e0f1d607a516a..cc35b869a4321 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoItems.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCreditMemoItems.php
@@ -15,12 +15,9 @@
*/
class AssertCreditMemoItems extends AbstractAssertItems
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert credit memo items on credit memo view page
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesGrid.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesGrid.php
index b71eeff1d8bdf..81d456687301c 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesGrid.php
@@ -15,12 +15,9 @@
*/
class AssertInvoiceInInvoicesGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert invoice with corresponding order ID is present in the invoices grid with corresponding amount
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesTab.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesTab.php
index 79261d1e49acb..d4c5694227655 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesTab.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceInInvoicesTab.php
@@ -17,12 +17,9 @@
*/
class AssertInvoiceInInvoicesTab extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that invoice is present in the invoices tab of the order with corresponding amount(Grand Total)
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceItems.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceItems.php
index 5f7144c5912e7..c7fbe84aa3b37 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceItems.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceItems.php
@@ -15,12 +15,9 @@
*/
class AssertInvoiceItems extends AbstractAssertItems
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert invoice items on invoice view page
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceSuccessCreateMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceSuccessCreateMessage.php
index d131a3dfbb061..8206e7eaae71d 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceSuccessCreateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceSuccessCreateMessage.php
@@ -14,18 +14,15 @@
*/
class AssertInvoiceSuccessCreateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_CREATE_MESSAGE = 'The invoice has been created.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message present after create invoice
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceWithShipmentSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceWithShipmentSuccessMessage.php
index b5cde5b62a33c..cd449db40f2a0 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceWithShipmentSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoiceWithShipmentSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertInvoiceWithShipmentSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'You created the invoice and shipment.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert success message presents
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoicedAmountOnFrontend.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoicedAmountOnFrontend.php
index b5e0208be196a..e3fb1df7948fb 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoicedAmountOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertInvoicedAmountOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertInvoicedAmountOnFrontend extends AbstractAssertOrderOnFrontend
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that invoiced Grand Total amount is equal to placed order Grand total amount on invoice page (frontend)
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoCreditMemoButton.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoCreditMemoButton.php
index 8c2162be29f8b..4ae5a4064758a 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoCreditMemoButton.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoCreditMemoButton.php
@@ -16,12 +16,9 @@
*/
class AssertNoCreditMemoButton extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that after refunding full amount 'Credit Memo' is not available any more
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoInvoiceButton.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoInvoiceButton.php
index 7f0b6cdbcc155..b1033dc4090a3 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoInvoiceButton.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertNoInvoiceButton.php
@@ -16,12 +16,9 @@
*/
class AssertNoInvoiceButton extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert no Invoice button the order grid
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsAvailable.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsAvailable.php
index f67fb515cb6a8..8e869beca3967 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsAvailable.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsAvailable.php
@@ -14,12 +14,9 @@
*/
class AssertOrderButtonsAvailable extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that specified in data set buttons exist on order page in backend
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsUnavailable.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsUnavailable.php
index ce499476d8e2e..0289645ddae1a 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsUnavailable.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderButtonsUnavailable.php
@@ -16,12 +16,9 @@
*/
class AssertOrderButtonsUnavailable extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that buttons from dataSet are not present on page
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionFailMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionFailMessage.php
index 794b28b63fe49..5f1f0b5d0da7c 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderCancelMassActionFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const FAIL_CANCEL_MESSAGE = 'You cannot cancel the order(s).';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert cancel fail message is displayed on order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionSuccessMessage.php
index 1c2d14f3bc2d1..6000f81f90aee 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelMassActionSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderCancelMassActionSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_CANCEL_MESSAGE = 'We canceled %d order(s).';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert cancel success message is displayed on order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelSuccessMessage.php
index 79fdaa0235305..ccaccec1462c6 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderCancelSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderCancelSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message displayed after cancel sales order
*/
const SUCCESS_CANCEL_MESSAGE = 'You canceled the order.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after cancel sales order successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderGrandTotal.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderGrandTotal.php
index a918204c9dfda..6c5fd44e89f17 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderGrandTotal.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderGrandTotal.php
@@ -14,12 +14,9 @@
*/
class AssertOrderGrandTotal extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that Order Grand Total is correct on order page in backend
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGrid.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGrid.php
index ae3ceedbfffc9..ba38d09c704e8 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGrid.php
@@ -15,12 +15,9 @@
*/
class AssertOrderInOrdersGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that order with fixture data is present in Sales -> Orders Grid
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGridOnFrontend.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGridOnFrontend.php
index 404e865c56318..d306db2545dab 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGridOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderInOrdersGridOnFrontend.php
@@ -18,12 +18,9 @@
*/
class AssertOrderInOrdersGridOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that order is present in Orders grid on frontend
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderMassOnHoldSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderMassOnHoldSuccessMessage.php
index 674833b9cbeff..5067162e0e70a 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderMassOnHoldSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderMassOnHoldSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderMassOnHoldSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_ON_HOLD_MESSAGE = 'You have put %d order(s) on hold.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert on hold success message is displayed on order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotInOrdersGrid.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotInOrdersGrid.php
index b08ab15c25c76..eaa43a0698407 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotInOrdersGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotInOrdersGrid.php
@@ -15,12 +15,9 @@
*/
class AssertOrderNotInOrdersGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that order with fixture data in not more in the Orders grid
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotVisibleOnMyAccount.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotVisibleOnMyAccount.php
index 9f1df5ee16c7c..c1ab57a2c3a83 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotVisibleOnMyAccount.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderNotVisibleOnMyAccount.php
@@ -18,12 +18,9 @@
*/
class AssertOrderNotVisibleOnMyAccount extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert order is not visible in customer account on frontend
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldFailMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldFailMessage.php
index c2a036770ed83..50d3bb40e57f5 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderOnHoldFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const FAIL_ON_HOLD_MESSAGE = 'No order(s) were put on hold.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert on hold fail message is displayed on order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldSuccessMessage.php
index 555fb7bb0cece..0506a299486d4 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderOnHoldSuccessMessage.php
@@ -14,6 +14,10 @@
*/
class AssertOrderOnHoldSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked for single order on hold
*/
@@ -24,13 +28,6 @@ class AssertOrderOnHoldSuccessMessage extends AbstractConstraint
*/
const MULTIPLE_SUCCESS_ON_HOLD_MESSAGE = 'You have put %d order(s) on hold.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert on hold success message is displayed on order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseFailMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseFailMessage.php
index f74d71b8731c5..2809a61b59da9 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseFailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseFailMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderReleaseFailMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const FAIL_RELEASE_MESSAGE = 'No order(s) were released from on hold status.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert release fail message is displayed on order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseSuccessMessage.php
index 8c7358c5ee1ad..36d5735b1d8ce 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderReleaseSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderReleaseSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_RELEASE_MESSAGE = '%d order(s) have been released from on hold status.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert release success message is displayed on order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusDuplicateStatus.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusDuplicateStatus.php
index 05f1bd9dfd4a4..62dce1b4ebb4d 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusDuplicateStatus.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusDuplicateStatus.php
@@ -14,14 +14,11 @@
*/
class AssertOrderStatusDuplicateStatus extends AbstractConstraint
{
- const DUPLICATE_MESSAGE = 'We found another order status with the same order status code.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const DUPLICATE_MESSAGE = 'We found another order status with the same order status code.';
/**
* Assert that duplicate message is displayed
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusInGrid.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusInGrid.php
index aebf4e781cc51..5b8b9561c4ffe 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertOrderStatusInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Order status state data mapping
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusIsCorrect.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusIsCorrect.php
index 764758fb3e6ca..5913e5fa97fad 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusIsCorrect.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusIsCorrect.php
@@ -15,12 +15,9 @@
*/
class AssertOrderStatusIsCorrect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that status is correct on order page in backend (same with value of orderStatus variable)
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusNotAssigned.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusNotAssigned.php
index 94dc0b6f1f6d0..f80348df2b749 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusNotAssigned.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusNotAssigned.php
@@ -15,12 +15,9 @@
*/
class AssertOrderStatusNotAssigned extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that order status with status code from fixture have empty "State Code and Title" value
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessAssignMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessAssignMessage.php
index 53cffa38d2cc3..778acb060b5d7 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessAssignMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessAssignMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderStatusSuccessAssignMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* OrderStatus assigning success message
*/
const SUCCESS_MESSAGE = 'You have assigned the order status.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after order status assigning
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessCreateMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessCreateMessage.php
index 50078f4ef941d..cf7628ebc0d5d 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessCreateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessCreateMessage.php
@@ -14,14 +14,11 @@
*/
class AssertOrderStatusSuccessCreateMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You have saved the order status.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You have saved the order status.';
/**
* Assert that success message is displayed after order status saved.
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessUnassignMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessUnassignMessage.php
index 4450b4dcbdb42..d80fd40c80362 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessUnassignMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderStatusSuccessUnassignMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderStatusSuccessUnassignMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* OrderStatus unassign success message
*/
const SUCCESS_MESSAGE = 'You have unassigned the order status.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after order status unassign
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderSuccessCreateMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderSuccessCreateMessage.php
index ae279f1c188d1..cd3b2a7a99b68 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderSuccessCreateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrderSuccessCreateMessage.php
@@ -14,18 +14,15 @@
*/
class AssertOrderSuccessCreateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message displayed after created sales order
*/
const SUCCESS_MESSAGE = "You created the order.";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that after create sales order successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrdersInOrdersGrid.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrdersInOrdersGrid.php
index f710f7ee682c5..8d1ffb4c4e9f4 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrdersInOrdersGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertOrdersInOrdersGrid.php
@@ -15,12 +15,9 @@
*/
class AssertOrdersInOrdersGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that orders are present in Sales -> Orders Grid
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertProductInItemsOrderedGrid.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertProductInItemsOrderedGrid.php
index c28c1d2c6ea32..5e7a3f884138e 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertProductInItemsOrderedGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertProductInItemsOrderedGrid.php
@@ -15,12 +15,9 @@
*/
class AssertProductInItemsOrderedGrid extends AbstractAssertForm
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Fields for assert.
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInCreditMemoTab.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInCreditMemoTab.php
index 9d6d67440dd59..1f78b2625efbe 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInCreditMemoTab.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInCreditMemoTab.php
@@ -17,12 +17,9 @@
*/
class AssertRefundInCreditMemoTab extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that refund is present in the tab with ID and refunded amount(depending on full/partial refund)
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInRefundsGrid.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInRefundsGrid.php
index 57255ec8b3f48..6b1501aad3f36 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInRefundsGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInRefundsGrid.php
@@ -15,12 +15,9 @@
*/
class AssertRefundInRefundsGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that refund is present in the 'Refunds' grid with correct ID, order ID, refunded amount
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundSuccessCreateMessage.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundSuccessCreateMessage.php
index 6bb7899fc1397..5f23de1fe7e35 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundSuccessCreateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundSuccessCreateMessage.php
@@ -14,18 +14,15 @@
*/
class AssertRefundSuccessCreateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_CREATE_MESSAGE = 'You created the credit memo.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success create credit memo message is present on order view page
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundedGrandTotalOnFrontend.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundedGrandTotalOnFrontend.php
index d1f0f511b6ba7..bcba940b0356e 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundedGrandTotalOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundedGrandTotalOnFrontend.php
@@ -16,12 +16,9 @@
*/
class AssertRefundedGrandTotalOnFrontend extends AbstractAssertOrderOnFrontend
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that refunded grand total is equal to data from fixture on My Account page
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertReorderStatusIsCorrect.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertReorderStatusIsCorrect.php
index 8b02b890234ea..354017f8ca150 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertReorderStatusIsCorrect.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertReorderStatusIsCorrect.php
@@ -16,12 +16,9 @@
*/
class AssertReorderStatusIsCorrect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that status is correct on order page in backend (same with value of orderStatus variable)
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderBillingAddress.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderBillingAddress.php
index a570cf69e4daa..952dce858e8c9 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderBillingAddress.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderBillingAddress.php
@@ -14,12 +14,9 @@
*/
class AssertSalesPrintOrderBillingAddress extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that BillingAddress printed correctly on sales guest print page.
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderGrandTotal.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderGrandTotal.php
index 098818def36d3..4ad51c43c4f62 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderGrandTotal.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderGrandTotal.php
@@ -13,12 +13,9 @@
*/
class AssertSalesPrintOrderGrandTotal extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Grand Total price was printed correctly on sales guest print page.
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderPaymentMethod.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderPaymentMethod.php
index e3da94f19888d..f465275381fda 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderPaymentMethod.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderPaymentMethod.php
@@ -13,12 +13,9 @@
*/
class AssertSalesPrintOrderPaymentMethod extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that payment method was printed correctly on sales guest print page.
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderProducts.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderProducts.php
index ccb6998237c57..34c30a4834b52 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderProducts.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertSalesPrintOrderProducts.php
@@ -14,18 +14,15 @@
*/
class AssertSalesPrintOrderProducts extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Template for error message.
*/
const ERROR_MESSAGE = "Product with name: '%s' was not found on sales guest print page.\n";
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that products printed correctly on sales guest print page.
*
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertUnholdButton.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertUnholdButton.php
index 53acd4a7d63e7..af06e6388c521 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertUnholdButton.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertUnholdButton.php
@@ -16,12 +16,9 @@
*/
class AssertUnholdButton extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that 'Unhold' button present on order page
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Page/SalesGuestView.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Page/SalesGuestView.php
deleted file mode 100644
index 5e5a00f93ff93..0000000000000
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/Page/SalesGuestView.php
+++ /dev/null
@@ -1,49 +0,0 @@
-_url = $this->_url = $_ENV['app_frontend_url'] . self::MCA;
- }
-
- /**
- * Get view block
- *
- * @return \Magento\Sales\Test\Block\Order\Info\Buttons
- */
- public function getViewBlock()
- {
- return Factory::getBlockFactory()->getMagentoSalesOrderInfoButtons(
- $this->_browser->find($this->blockSelector)
- );
- }
-}
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Page/SalesGuestView.xml b/dev/tests/functional/tests/app/Magento/Sales/Test/Page/SalesGuestView.xml
new file mode 100644
index 0000000000000..93f0d1fc97b4e
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Page/SalesGuestView.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ Magento\Sales\Test\Block\Order\View\ActionsToolbar
+ .actions-toolbar
+ css selector
+
+
+ Magento\Sales\Test\Block\Order\View
+ .column.main
+ css selector
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/AbstractMoveComparedProductsOnOrderPageTest.php b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/AbstractMoveComparedProductsOnOrderPageTest.php
index e1dd056d2754f..f5ac6e1b63524 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/AbstractMoveComparedProductsOnOrderPageTest.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/AbstractMoveComparedProductsOnOrderPageTest.php
@@ -20,6 +20,8 @@
/**
* Class AbstractMoveComparedProductsOnOrderPageTest
* Abstract class for move compared products on order page
+ *
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
abstract class AbstractMoveComparedProductsOnOrderPageTest extends Injectable
{
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateCreditMemoEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateCreditMemoEntityTest/test.csv
index d4358b9761bd9..ef91f9cd62b13 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateCreditMemoEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateCreditMemoEntityTest/test.csv
@@ -1,4 +1,4 @@
-"description";"data/items_data/0/back_to_stock";"data/items_data/0/qty";"data/form_data/shipping_amount";"data/form_data/adjustment_positive";"data/form_data/adjustment_negative";"data/form_data/refund_customerbalance_return_enable";"data/form_data/refund_customerbalance_return";"order/dataSet";"order/data/entity_id/products";"order/data/price/preset";"constraint";"issue"
-"assert items return to stock (partial refund)";"Yes";"1";"-";"-";"-";"-";"-";"default";"catalogProductSimple::100_dollar_product";"partial_refund";"assertRefundSuccessCreateMessage, assertCreditMemoButton, assertRefundInCreditMemoTab, assertRefundInRefundsGrid, assertRefundedGrandTotalOnFrontend, assertProductForm, assertCreditMemoItems";""
-"assert money return to StoreCredit";"-";"-";"5";"-";"-";"Yes";"10";"default";"catalogProductSimple::default";"full_refund";"assertRefundSuccessCreateMessage, assertNoCreditMemoButton, assertRefundInCreditMemoTab, assertRefundInRefundsGrid, assertRefundedGrandTotalOnFrontend, assertCustomerBalanceAmount, assertCreditMemoItems";"Bug: MAGETWO-29184"
-"assert 0 shipping refund";"-";"-";"0";"5";"10";"-";"-";"default";"catalogProductSimple::default";"full_refund_with_zero_shipping_refund";"assertRefundSuccessCreateMessage, assertCreditMemoButton, assertRefundInCreditMemoTab, assertRefundInRefundsGrid, assertRefundedGrandTotalOnFrontend, assertCreditMemoItems";""
+"description";"data/items_data/0/back_to_stock";"data/items_data/0/qty";"data/form_data/shipping_amount";"data/form_data/adjustment_positive";"data/form_data/adjustment_negative";"data/form_data/refund_customerbalance_return_enable";"data/form_data/refund_customerbalance_return";"order/dataSet";"order/data/entity_id/products";"order/data/price/preset";"constraint"
+"assert items return to stock (partial refund)";"Yes";"1";"-";"-";"-";"-";"-";"default";"catalogProductSimple::100_dollar_product";"partial_refund";"assertRefundSuccessCreateMessage, assertCreditMemoButton, assertRefundInCreditMemoTab, assertRefundInRefundsGrid, assertRefundedGrandTotalOnFrontend, assertProductForm, assertCreditMemoItems"
+"assert money return to StoreCredit";"-";"-";"5";"-";"-";"Yes";"10";"default";"catalogProductSimple::default";"full_refund";"assertRefundSuccessCreateMessage, assertNoCreditMemoButton, assertRefundInCreditMemoTab, assertRefundInRefundsGrid, assertRefundedGrandTotalOnFrontend, assertCustomerBalanceAmount, assertCreditMemoItems"
+"assert 0 shipping refund";"-";"-";"0";"5";"10";"-";"-";"default";"catalogProductSimple::default";"full_refund_with_zero_shipping_refund";"assertRefundSuccessCreateMessage, assertCreditMemoButton, assertRefundInCreditMemoTab, assertRefundInRefundsGrid, assertRefundedGrandTotalOnFrontend, assertCreditMemoItems"
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateOrderBackendTest/test.csv b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateOrderBackendTest/test.csv
index edc687b2014b1..76191653bc2b3 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateOrderBackendTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateOrderBackendTest/test.csv
@@ -1,16 +1,16 @@
-"products";"giftCardAccount";"salesRule";"customer/dataSet";"rewardPoints";"customerBalance";"billingAddress/dataSet";"shipping/shipping_service";"shipping/shipping_method";"grandTotal";"payment/method";"payment/po_number";"payment/use_reward_points";"payment/use_customer_balance";"status";"orderButtonsAvailable";"configData";"backendOrder/data/firstname";"backendOrder/data/lastname";"backendOrder/data/street[0]";"backendOrder/data/city";"backendOrder/data/country_id";"backendOrder/data/region_id";"backendOrder/data/postcode";"backendOrder/data/telephone";"backendOrder/data/shipping_same_as_billing";"constraint";"issue"
-"catalogProductSimple::simple_for_sales, catalogProductVirtual::virtual_for_sales";"-";"active_sales_rule_with_fixed_price_discount_coupon";"customer_US";"reward_points_50";"-";"customer_US";"Flat Rate";"Fixed";"315.00";"cashondelivery";"-";"Yes";"-";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"cashondelivery";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductVirtual::default";"default";"active_sales_rule_with_fixed_price_discount_coupon";"customer_UK";"-";"-";"customer_UK";"-";"-";"0.00";"free";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"cashondelivery_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";"Bug MAGETWO-28633"
-"catalogProductSimple::default";"-";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"cashondelivery";"-";"-";"-";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"cashondelivery";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductSimple::default, catalogProductVirtual::default";"default";"-";"-";"-";"customerBalance_5";"customer_US";"Flat Rate";"Fixed";"575.00";"checkmo";"-";"-";"Yes";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"checkmo";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductVirtual::default";"-";"-";"customer_UK";"-";"-";"customer_UK";"-";"-";"10.00";"checkmo";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"checkmo_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";"Bug MAGETWO-28633"
-"catalogProductSimple::default";"default";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"checkmo";"-";"-";"-";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"checkmo";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductSimple::default, catalogProductVirtual::default";"-";"-";"customer_US";"-";"customerBalance_5";"customer_US";"Flat Rate";"Fixed";"575.00";"banktransfer";"-";"-";"Yes";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductVirtual::default";"default";"-";"customer_UK";"-";"-";"customer_UK";"-";"-";"10.00";"free";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"banktransfer_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";"Bug MAGETWO-28633"
-"catalogProductSimple::default";"-";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"banktransfer";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductSimple::default, catalogProductVirtual::default";"default";"active_sales_rule_with_fixed_price_discount_coupon";"customer_US";"reward_points_50";"-";"customer_US";"Free Shipping";"Free";"510.00";"banktransfer";"-";"Yes";"-";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"freeshipping, banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductVirtual::default";"-";"-";"customer_UK";"-";"-";"customer_UK";"-";"-";"10.00";"banktransfer";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"freeshipping_specificcountry_gb, banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";"Bug MAGETWO-28633"
-"catalogProductSimple::default";"default";"-";"customer_US";"-";"-";"customer_US";"Free Shipping";"Free";"560.00";"checkmo";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"freeshipping, checkmo";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductSimple::default, catalogProductVirtual::default";"-";"-";"customer_US";"-";"customerBalance_5";"customer_US";"Flat Rate";"Fixed";"575.00";"purchaseorder";"123456";"-";"Yes";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"purchaseorder";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
-"catalogProductVirtual::default";"default";"active_sales_rule_with_fixed_price_discount_coupon";"customer_UK";"-";"-";"customer_UK";"-";"-";"0.00";"free";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"purchaseorder_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";"Bug MAGETWO-28633"
-"catalogProductSimple::default";"-";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"purchaseorder";"123456";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Reorder, Edit";"purchaseorder";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend";""
+"products";"giftCardAccount";"salesRule";"customer/dataSet";"rewardPoints";"customerBalance";"billingAddress/dataSet";"shipping/shipping_service";"shipping/shipping_method";"grandTotal";"payment/method";"payment/po_number";"payment/use_reward_points";"payment/use_customer_balance";"status";"orderButtonsAvailable";"configData";"backendOrder/data/firstname";"backendOrder/data/lastname";"backendOrder/data/street[0]";"backendOrder/data/city";"backendOrder/data/country_id";"backendOrder/data/region_id";"backendOrder/data/postcode";"backendOrder/data/telephone";"backendOrder/data/shipping_same_as_billing";"constraint"
+"catalogProductSimple::simple_for_sales, catalogProductVirtual::virtual_for_sales";"-";"active_sales_rule_with_fixed_price_discount_coupon";"customer_US";"reward_points_50";"-";"customer_US";"Flat Rate";"Fixed";"315.00";"cashondelivery";"-";"Yes";"-";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"cashondelivery";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductVirtual::default";"default";"active_sales_rule_with_fixed_price_discount_coupon";"customer_UK";"-";"-";"customer_UK";"-";"-";"0.00";"free";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"cashondelivery_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default";"-";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"cashondelivery";"-";"-";"-";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"cashondelivery";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default, catalogProductVirtual::default";"default";"-";"-";"-";"customerBalance_5";"customer_US";"Flat Rate";"Fixed";"575.00";"checkmo";"-";"-";"Yes";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"checkmo";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductVirtual::default";"-";"-";"customer_UK";"-";"-";"customer_UK";"-";"-";"10.00";"checkmo";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"checkmo_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default";"default";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"checkmo";"-";"-";"-";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"checkmo";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default, catalogProductVirtual::default";"-";"-";"customer_US";"-";"customerBalance_5";"customer_US";"Flat Rate";"Fixed";"575.00";"banktransfer";"-";"-";"Yes";"Pending";"Back, Reorder, Cancel, Send Notification, Hold, Invoice, Ship, Edit";"banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductVirtual::default";"default";"-";"customer_UK";"-";"-";"customer_UK";"-";"-";"10.00";"free";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"banktransfer_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default";"-";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"banktransfer";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default, catalogProductVirtual::default";"default";"active_sales_rule_with_fixed_price_discount_coupon";"customer_US";"reward_points_50";"-";"customer_US";"Free Shipping";"Free";"510.00";"banktransfer";"-";"Yes";"-";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"freeshipping, banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductVirtual::default";"-";"-";"customer_UK";"-";"-";"customer_UK";"-";"-";"10.00";"banktransfer";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"freeshipping_specificcountry_gb, banktransfer";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default";"default";"-";"customer_US";"-";"-";"customer_US";"Free Shipping";"Free";"560.00";"checkmo";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"freeshipping, checkmo";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default, catalogProductVirtual::default";"-";"-";"customer_US";"-";"customerBalance_5";"customer_US";"Flat Rate";"Fixed";"575.00";"purchaseorder";"123456";"-";"Yes";"Pending";"Back, Cancel, Send Notification, Hold, Reorder, Invoice, Edit";"purchaseorder";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductVirtual::default";"default";"active_sales_rule_with_fixed_price_discount_coupon";"customer_UK";"-";"-";"customer_UK";"-";"-";"0.00";"free";"-";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Edit";"purchaseorder_specificcountry_gb";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
+"catalogProductSimple::default";"-";"-";"customer_US";"-";"-";"customer_US";"Flat Rate";"Fixed";"565.00";"purchaseorder";"123456";"-";"-";"Pending";"Back, Cancel, Send Notification, Hold, Invoice, Reorder, Edit";"purchaseorder";"First Name%isolation%";"Last Name%isolation%";"6161 West Centinela Avenue";"Culver City";"Unites States";"California";"90230";"55555555";"Yes";"assertOrderSuccessCreateMessage, assertOrderButtonsAvailable, assertOrderGrandTotal, assertOrderInOrdersGrid, assertOrderInOrdersGridOnFrontend"
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/MoveShoppingCartProductsOnOrderPageTest.php b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/MoveShoppingCartProductsOnOrderPageTest.php
index 8ee34aa5b2168..45fc4f03962ea 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/MoveShoppingCartProductsOnOrderPageTest.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/MoveShoppingCartProductsOnOrderPageTest.php
@@ -37,6 +37,8 @@
*
* @group Order_Management_(CS)
* @ZephyrId MAGETWO-28540
+ *
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class MoveShoppingCartProductsOnOrderPageTest extends Injectable
{
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/PrintOrderOnFrontendStep.php b/dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/PrintOrderOnFrontendStep.php
index a4ad3337b351c..bb676a6c7fde4 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/PrintOrderOnFrontendStep.php
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/TestStep/PrintOrderOnFrontendStep.php
@@ -46,7 +46,7 @@ public function __construct(SalesGuestView $salesGuestView, Browser $browser)
*/
public function run()
{
- $this->salesGuestView->getViewBlock()->clickPrintOrder();
+ $this->salesGuestView->getActionsToolbar()->clickLink('Print Order');
$this->browser->selectWindow();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Sales/Test/etc/constraint.xml
index e3326f520573c..44fb7864e363f 100644
--- a/dev/tests/functional/tests/app/Magento/Sales/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Sales/Test/etc/constraint.xml
@@ -6,154 +6,154 @@
-->
- low
+ low
- high
+ high
- high
+ high
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoInGrid.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoInGrid.php
index 9280ee94f3544..67409cbd1549a 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertArchiveCreditMemoInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Refund with corresponding fixture data is present in Archive Credit Memos grid
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoItems.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoItems.php
index 362940eecc652..f12b6cf50cbdf 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoItems.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveCreditMemoItems.php
@@ -16,12 +16,9 @@
*/
class AssertArchiveCreditMemoItems extends AbstractAssertItems
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
/**
* Assert returned product represented on Credit memo page:
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceInGrid.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceInGrid.php
index 469305e2405f9..b0328d97ed8d1 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertArchiveInvoiceInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Invoice with corresponding data is present in Sales Archive Invoices grid
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceItems.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceItems.php
index 72aed7f4beed9..7f0a3b16eaf18 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceItems.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveInvoiceItems.php
@@ -16,12 +16,9 @@
*/
class AssertArchiveInvoiceItems extends AbstractAssertItems
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
/**
* Assert invoiced product represented in invoice archive:
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderAvailableButtons.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderAvailableButtons.php
index 27353574d1829..d3dea3ee86479 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderAvailableButtons.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderAvailableButtons.php
@@ -16,12 +16,9 @@
*/
class AssertArchiveOrderAvailableButtons extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that specified in data set buttons exist on order page in backend
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionErrorMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionErrorMessage.php
index 4660d9a686f0e..cf393cd6882ec 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionErrorMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionErrorMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderCancelMassActionErrorMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message displayed after unsuccessful orders canceling
*/
const ERROR_MESSAGE = 'You cannot cancel the order(s).';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that error message is displayed on "Archived Orders Grid" page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionSuccessMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionSuccessMessage.php
index 57eec1f8fcb86..38b8b35f2ce05 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderCancelMassActionSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderCancelMassActionSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message displayed after cancel order from archive
*/
const SUCCESS_MESSAGE = 'We canceled %d order(s).';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed on "Archived Orders Grid" page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderInGrid.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderInGrid.php
index 973faa9d29f9b..740358244a1e2 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertArchiveOrderInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that order with fixture data is in archive orders grid
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderNotInGrid.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderNotInGrid.php
index dcace14cc4d08..cd13d7ac79573 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertArchiveOrderNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that order is absent in archive orders grid
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldErrorMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldErrorMessage.php
index d845a2eea6c07..6a8f2664e6274 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldErrorMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldErrorMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderOnHoldErrorMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const ERROR_MESSAGE = 'No order(s) were put on hold.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert on hold fail message is displayed on archive order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldSuccessMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldSuccessMessage.php
index 3b68fe61ba6f5..b6e51a5cc0ede 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderOnHoldSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderOnHoldSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'You have put %d order(s) on hold.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert on hold success message is displayed on archived order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseErrorMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseErrorMessage.php
index 4b61df81539b4..4f6c584d3cc0f 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseErrorMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseErrorMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderReleaseErrorMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const ERROR_MESSAGE = 'No order(s) were released from on hold status.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert release error message is displayed on archived order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseSuccessMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseSuccessMessage.php
index 72a05e5ba5c5f..6abfcf0260383 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderReleaseSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderReleaseSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = '%d order(s) have been released from on hold status.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert release success message is displayed on archive order index page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderStatusInGrid.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderStatusInGrid.php
index c43c482452dca..82f5a765911ec 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderStatusInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderStatusInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertArchiveOrderStatusInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that status is correct on order page in backend (same with value of orderStatus variable)
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessMessage.php
index 1f27f9d58759a..d1fe94f39f51c 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message displayed after moving order to archive
*/
const SUCCESS_MESSAGE = 'We archived %d order(s).';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed on "Orders Grid" page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessRemoveMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessRemoveMessage.php
index 3a735b960ccc2..5a61facf33395 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessRemoveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderSuccessRemoveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderSuccessRemoveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'We removed %d order(s) from the archive.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after removed orders success message presents
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderWarningMessage.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderWarningMessage.php
index 2a693c23dea50..644c1b3ce4551 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderWarningMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrderWarningMessage.php
@@ -14,18 +14,15 @@
*/
class AssertArchiveOrderWarningMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Message displayed after cancel sales order
*/
const WARNING_MESSAGE = "We can't archive the selected order(s).";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that warning message present on order grid page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersCancelMassActionsMessages.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersCancelMassActionsMessages.php
index 098e326baf89f..7efc58b5d3048 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersCancelMassActionsMessages.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersCancelMassActionsMessages.php
@@ -14,6 +14,10 @@
*/
class AssertArchiveOrdersCancelMassActionsMessages extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message displayed after cancel order from archive
*/
@@ -24,13 +28,6 @@ class AssertArchiveOrdersCancelMassActionsMessages extends AbstractConstraint
*/
const ERROR_MESSAGE = '%d order(s) cannot be canceled.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that error and success messages are displayed on "Archived Orders Grid" page
*
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersInGrid.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersInGrid.php
index cf1155c8058e0..427a5d0926927 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveOrdersInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertArchiveOrdersInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that orders with specified id and status is in archive orders grid
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentInGrid.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentInGrid.php
index c44ea19b85275..bf874ce5f746e 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertArchiveShipmentInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Shipment with corresponding fixture data is present in Sales Archive Shipments grid
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentItems.php b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentItems.php
index 2c6cea11e1723..ddeedbacaae5f 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentItems.php
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/Constraint/AssertArchiveShipmentItems.php
@@ -17,12 +17,9 @@
*/
class AssertArchiveShipmentItems extends AssertShipmentItems
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @constructor
diff --git a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/etc/constraint.xml
index 62907fff94de2..12327d381ad27 100644
--- a/dev/tests/functional/tests/app/Magento/SalesArchive/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/SalesArchive/Test/etc/constraint.xml
@@ -6,66 +6,66 @@
-->
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- high
+ high
- low
+ low
- low
+ low
- medium
+ medium
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsApplied.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsApplied.php
index 0e89d149b5fe8..8816c24b032fc 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsApplied.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsApplied.php
@@ -11,12 +11,9 @@
*/
class AssertCartPriceRuleConditionIsApplied extends AssertCartPriceRuleApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that shopping cart subtotal not equals with grand total
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsNotApplied.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsNotApplied.php
index 70f6d1b280220..43e8d2cd8be94 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsNotApplied.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleConditionIsNotApplied.php
@@ -11,12 +11,9 @@
*/
class AssertCartPriceRuleConditionIsNotApplied extends AssertCartPriceRuleApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that shopping cart subtotal equals with grand total
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleForm.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleForm.php
index 9712ae7a9edc8..ec9d5d61b1534 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleForm.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleForm.php
@@ -15,12 +15,9 @@
*/
class AssertCartPriceRuleForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields for verify data
@@ -32,6 +29,7 @@ class AssertCartPriceRuleForm extends AbstractConstraint
'actions_serialized',
'from_date',
'to_date',
+ 'id'
];
/**
@@ -88,7 +86,7 @@ protected function verify(array $fixtureData, array $formData)
. "\nActual: " . implode(", ", $formData[$key]);
}
} else {
- if ($value !== $formData[$key] && !in_array($key, $this->skippedFields)) {
+ if (!in_array($key, $this->skippedFields) && $value !== $formData[$key]) {
$errorMessage[] = "Data in " . $key . " field not equal."
. "\nExpected: " . $value
. "\nActual: " . $formData[$key];
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleFreeShippingIsApplied.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleFreeShippingIsApplied.php
index 3acb9213e9d01..307bab259c1c3 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleFreeShippingIsApplied.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleFreeShippingIsApplied.php
@@ -11,14 +11,11 @@
*/
class AssertCartPriceRuleFreeShippingIsApplied extends AssertCartPriceRuleApplying
{
- const FREE_SHIPPING_PRICE = '0.00';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const FREE_SHIPPING_PRICE = '0.00';
/**
* Assert that free shipping is applied in shopping cart
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleIsNotPresentedInGrid.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleIsNotPresentedInGrid.php
index 1236146ae2aec..1755cfbcac45e 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleIsNotPresentedInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleIsNotPresentedInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertCartPriceRuleIsNotPresentedInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sales rule is not present in cart price rules grid
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessDeleteMessage.php
index 2c0149ba8f2f7..b704e1ec18511 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCartPriceRuleSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The rule has been deleted.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = 'The rule has been deleted.';
/**
* Assert that success message is displayed after sales rule delete
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessSaveMessage.php
index aaeecedc86c9c..607fe465f3f11 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertCartPriceRuleSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertCartPriceRuleSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The rule has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The rule has been saved.';
/**
* Assert that success message is displayed after sales rule save
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertSalesRuleOnPrintOrder.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertSalesRuleOnPrintOrder.php
index c2b311a9e7b75..dbe8619113ea5 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertSalesRuleOnPrintOrder.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/Constraint/AssertSalesRuleOnPrintOrder.php
@@ -13,12 +13,9 @@
*/
class AssertSalesRuleOnPrintOrder extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sales rule amount printed correctly on sales guest print page.
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/TestCase/CreateSalesRuleEntityTest.php b/dev/tests/functional/tests/app/Magento/SalesRule/Test/TestCase/CreateSalesRuleEntityTest.php
index 476580ea5d1e7..c74301060d42a 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/TestCase/CreateSalesRuleEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/TestCase/CreateSalesRuleEntityTest.php
@@ -113,21 +113,10 @@ public function __prepare(FixtureFactory $fixtureFactory)
* Create Sales Rule Entity
*
* @param SalesRuleInjectable $salesRule
- * @param AddressInjectable $address
- * @param array $productQuantity
- * @param array $shipping
- * @param int $isLoggedIn
* @return void
- *
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
- public function testCreateSalesRule(
- SalesRuleInjectable $salesRule,
- AddressInjectable $address,
- $productQuantity,
- $shipping,
- $isLoggedIn
- ) {
+ public function testCreateSalesRule(SalesRuleInjectable $salesRule)
+ {
// Preconditions
$this->salesRuleName = $salesRule->getName();
diff --git a/dev/tests/functional/tests/app/Magento/SalesRule/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/SalesRule/Test/etc/constraint.xml
index 287b632f2b6be..a0ed31ac332cb 100644
--- a/dev/tests/functional/tests/app/Magento/SalesRule/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/SalesRule/Test/etc/constraint.xml
@@ -6,27 +6,27 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertNoShipButton.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertNoShipButton.php
index c3792a62bf773..f7167eff5402a 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertNoShipButton.php
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertNoShipButton.php
@@ -16,12 +16,9 @@
*/
class AssertNoShipButton extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert no Ship button in the order grid
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipTotalQuantity.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipTotalQuantity.php
index 7ffd86d560a1b..854bb88d1e3a4 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipTotalQuantity.php
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipTotalQuantity.php
@@ -17,12 +17,9 @@
*/
class AssertShipTotalQuantity extends AbstractAssertOrderOnFrontend
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that shipped items quantity in 'Total Quantity' is equal to data from fixture on My Account page
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsGrid.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsGrid.php
index 0a38d1127164b..227bac515482e 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsGrid.php
@@ -15,12 +15,9 @@
*/
class AssertShipmentInShipmentsGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert shipment with corresponding shipment/order ID is present in 'Shipments' with correct total qty field
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsTab.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsTab.php
index 1a4d3a816c517..6ad8c71f09b35 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsTab.php
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentInShipmentsTab.php
@@ -16,12 +16,9 @@
*/
class AssertShipmentInShipmentsTab extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that shipment is present in the Shipments tab with correct shipped items quantity
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentItems.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentItems.php
index cad9510a91ee3..23c1e40e276b5 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentItems.php
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentItems.php
@@ -17,12 +17,9 @@
*/
class AssertShipmentItems extends AbstractAssertItems
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Shipment index page
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentSuccessCreateMessage.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentSuccessCreateMessage.php
index 61e3b0c4db10e..7d97f565ef579 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentSuccessCreateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShipmentSuccessCreateMessage.php
@@ -14,18 +14,15 @@
*/
class AssertShipmentSuccessCreateMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Shipment created success message
*/
const SUCCESS_MESSAGE = 'The shipment has been created.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert success message presents
*
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShippingMethodOnPrintOrder.php b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShippingMethodOnPrintOrder.php
index 0f7cb916c3f78..c7bf8c6c929be 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShippingMethodOnPrintOrder.php
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/Constraint/AssertShippingMethodOnPrintOrder.php
@@ -13,18 +13,15 @@
*/
class AssertShippingMethodOnPrintOrder extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Shipping method and carrier template.
*/
const SHIPPING_TEMPLATE = "%s - %s";
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that shipping method was printed correctly on sales guest print page.
*
diff --git a/dev/tests/functional/tests/app/Magento/Shipping/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Shipping/Test/etc/constraint.xml
index b95673355dbca..d722318c8177a 100644
--- a/dev/tests/functional/tests/app/Magento/Shipping/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Shipping/Test/etc/constraint.xml
@@ -6,24 +6,24 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapContent.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapContent.php
index 5b6f43a081a09..108dea9ad159b 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapContent.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapContent.php
@@ -18,12 +18,9 @@
*/
class AssertSitemapContent extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sitemap.xml file contains correct content according to dataset:
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailFolderSaveMessage.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailFolderSaveMessage.php
index 7ee7996c9ca0d..b9e3669f34ab0 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailFolderSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailFolderSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertSitemapFailFolderSaveMessage extends AbstractConstraint
{
- const FAIL_FOLDER_MESSAGE = 'Please create the specified folder "%s" before saving the sitemap.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const FAIL_FOLDER_MESSAGE = 'Please create the specified folder "%s" before saving the sitemap.';
/**
* Assert that error message is displayed after creating sitemap with wrong folder
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailPathSaveMessage.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailPathSaveMessage.php
index e282eb331fbd6..3c6e69eeaf06f 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailPathSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapFailPathSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertSitemapFailPathSaveMessage extends AbstractConstraint
{
- const FAIL_PATH_MESSAGE = 'Path "/%s" is not available and cannot be used.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const FAIL_PATH_MESSAGE = 'Path "/%s" is not available and cannot be used.';
/**
* Assert that error message is displayed after creating sitemap with wrong path
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapInGrid.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapInGrid.php
index a0b778a44a81e..6e272f806148b 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertSitemapInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sitemap availability in sitemap grid
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapNotInGrid.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapNotInGrid.php
index 69f1896267b81..13d0a9d87b7c3 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertSitemapNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that sitemap not availability in sitemap grid
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessDeleteMessage.php
index 2eefb99295dc5..63303aa1a56d3 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertSitemapSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The sitemap has been deleted.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = 'The sitemap has been deleted.';
/**
* Assert that success message is displayed after sitemap delete
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessGenerateMessage.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessGenerateMessage.php
index 4e17c680ee6a2..b60dd94793718 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessGenerateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessGenerateMessage.php
@@ -14,14 +14,11 @@
*/
class AssertSitemapSuccessGenerateMessage extends AbstractConstraint
{
- const SUCCESS_GENERATE_MESSAGE = 'The sitemap "%s" has been generated.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_GENERATE_MESSAGE = 'The sitemap "%s" has been generated.';
/**
* Assert that success message is displayed after sitemap generate
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveAndGenerateMessages.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveAndGenerateMessages.php
index 2c6aa227d2c80..1da3573347087 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveAndGenerateMessages.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveAndGenerateMessages.php
@@ -14,17 +14,14 @@
*/
class AssertSitemapSuccessSaveAndGenerateMessages extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
const SUCCESS_GENERATE_MESSAGE = 'The sitemap "%s" has been generated.';
const SUCCESS_SAVE_MESSAGE = 'The sitemap has been saved.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success messages is displayed after sitemap generate
*
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveMessage.php
index 559021d499df5..ea7fc78a0262a 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/Constraint/AssertSitemapSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertSitemapSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The sitemap has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The sitemap has been saved.';
/**
* Assert that success message is displayed after sitemap save
diff --git a/dev/tests/functional/tests/app/Magento/Sitemap/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Sitemap/Test/etc/constraint.xml
index 6cd73616a8347..c9f2f772e613b 100644
--- a/dev/tests/functional/tests/app/Magento/Sitemap/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Sitemap/Test/etc/constraint.xml
@@ -6,30 +6,30 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreBackend.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreBackend.php
index d6658afe5c669..02aed4f08755b 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreBackend.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreBackend.php
@@ -15,12 +15,9 @@
*/
class AssertStoreBackend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created store view displays in backend configuration (Stores > Configuration > "Scope" dropdown)
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreForm.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreForm.php
index 2557fe928caf7..6bb5a4f315a3c 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreForm.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreForm.php
@@ -16,12 +16,9 @@
*/
class AssertStoreForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that displayed Store View data on edit page equals passed from fixture
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreFrontend.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreFrontend.php
index 5a378b26cfb9b..882579dc9e77d 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreFrontend.php
@@ -15,12 +15,9 @@
*/
class AssertStoreFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created store view available on frontend (store view selector on page top)
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupForm.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupForm.php
index 955a9e605f433..eb4c8dbcc0a68 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupForm.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupForm.php
@@ -16,12 +16,9 @@
*/
class AssertStoreGroupForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields for verify data
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupInGrid.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupInGrid.php
index 2bd403cf3ea2c..c6a9051484e1f 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertStoreGroupInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Store Group can be found in Stores grid by name
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupNotInGrid.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupNotInGrid.php
index 1ba55fbb0d337..fda67c4c40da0 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertStoreGroupNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Store Group can not be found in Stores grid by name
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupOnStoreViewForm.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupOnStoreViewForm.php
index 80b3ac7260950..a5994564c4ab9 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupOnStoreViewForm.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupOnStoreViewForm.php
@@ -16,12 +16,9 @@
*/
class AssertStoreGroupOnStoreViewForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that New Store Group visible on StoreView Form in Store dropdown
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteAndBackupMessages.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteAndBackupMessages.php
index 21cfb5150ff02..d43aab2aeb6fc 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteAndBackupMessages.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteAndBackupMessages.php
@@ -14,6 +14,10 @@
*/
class AssertStoreGroupSuccessDeleteAndBackupMessages extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success backup message
*/
@@ -24,13 +28,6 @@ class AssertStoreGroupSuccessDeleteAndBackupMessages extends AbstractConstraint
*/
const SUCCESS_DELETE_MESSAGE = 'The store has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success messages is displayed after deleting store group
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteMessage.php
index 79319bc2e0057..0ac251b637021 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertStoreGroupSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success store group delete message
*/
const SUCCESS_DELETE_MESSAGE = 'The store has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after deleting store group
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessSaveMessage.php
index a67c56fca06a7..91ac06a03f11b 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreGroupSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertStoreGroupSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success store create message
*/
const SUCCESS_MESSAGE = 'The store has been saved.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after Store Group has been created
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreInGrid.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreInGrid.php
index 6ceb4738a515b..800a512f99543 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertStoreInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Store View can be found in Stores grid by name
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotInGrid.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotInGrid.php
index 77654a35ae9d5..5ba7ce2a1e759 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertStoreNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Store can not be found in Stores grid by name
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotOnFrontend.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotOnFrontend.php
index a8de5157cdbf2..cd60d922e6b1e 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotOnFrontend.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreNotOnFrontend.php
@@ -15,12 +15,9 @@
*/
class AssertStoreNotOnFrontend extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created store view is not available on frontend (store view selector on page top)
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteAndBackupMessages.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteAndBackupMessages.php
index 21d6841aa8c0c..4789b621301bb 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteAndBackupMessages.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteAndBackupMessages.php
@@ -14,6 +14,10 @@
*/
class AssertStoreSuccessDeleteAndBackupMessages extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success backup message
*/
@@ -24,13 +28,6 @@ class AssertStoreSuccessDeleteAndBackupMessages extends AbstractConstraint
*/
const SUCCESS_DELETE_MESSAGE = 'The store view has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that store success delete and backup messages are present
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteMessage.php
index 45bc94d23a00b..39c153045062c 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertStoreSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success store delete message
*/
const SUCCESS_DELETE_MESSAGE = 'The store view has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after store delete successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessSaveMessage.php
index ac5208b027162..4772b8a5789de 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertStoreSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertStoreSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success store view create message
*/
const SUCCESS_MESSAGE = 'The store view has been saved';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after Store View has been created
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteForm.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteForm.php
index aafa658db9608..768810a991a6e 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteForm.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteForm.php
@@ -16,12 +16,9 @@
*/
class AssertWebsiteForm extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Skipped fields for verify data
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteInGrid.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteInGrid.php
index b96fc41b0ece9..f783137d79026 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertWebsiteInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Website can be found in Stores grid by name
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteNotInGrid.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteNotInGrid.php
index 026cd7ca95e06..3bc71b517f23f 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertWebsiteNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created Website can't be found in grid by name
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteOnStoreForm.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteOnStoreForm.php
index 919b1c51f185c..d5283ec4c60f7 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteOnStoreForm.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteOnStoreForm.php
@@ -16,12 +16,9 @@
*/
class AssertWebsiteOnStoreForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that Website visible on Store Group Form in Website dropdown
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteAndBackupMessages.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteAndBackupMessages.php
index 7d1abde864aa2..e532649816079 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteAndBackupMessages.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteAndBackupMessages.php
@@ -14,6 +14,10 @@
*/
class AssertWebsiteSuccessDeleteAndBackupMessages extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success backup message
*/
@@ -24,13 +28,6 @@ class AssertWebsiteSuccessDeleteAndBackupMessages extends AbstractConstraint
*/
const SUCCESS_DELETE_MESSAGE = 'The website has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success messages is displayed after deleting website
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteMessage.php
index 7a8b5821ecd9d..761553eab506e 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertWebsiteSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success website delete message
*/
const SUCCESS_DELETE_MESSAGE = 'The website has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after deleting website
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessSaveMessage.php
index 0b1c5e4a77ff4..1e64f22bc3168 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/Constraint/AssertWebsiteSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertWebsiteSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success website create message
*/
const SUCCESS_MESSAGE = 'The website has been saved.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after Website has been created
*
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreEntityTest.php b/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreEntityTest.php
index 74ff7199808e2..9d48de56e37bd 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreEntityTest.php
@@ -100,6 +100,6 @@ public function test(Store $store, $createBackup)
$this->storeIndex->getStoreGrid()->searchAndOpenStore($store);
$this->editStore->getFormPageActions()->delete();
$this->storeDelete->getStoreForm()->fillForm(['create_backup' => $createBackup]);
- $this->storeDelete->getFormPageFooterActions()->delete();
+ $this->storeDelete->getFormPageActions()->delete();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreGroupEntityTest.php b/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreGroupEntityTest.php
index 1a5817d2d0ac2..3227833d67e76 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreGroupEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteStoreGroupEntityTest.php
@@ -102,6 +102,6 @@ public function test(StoreGroup $storeGroup, $createBackup)
$this->storeIndex->getStoreGrid()->searchAndOpenStoreGroup($storeGroup);
$this->editGroup->getFormPageActions()->delete();
$this->deleteGroup->getDeleteGroupForm()->fillForm(['create_backup' => $createBackup]);
- $this->deleteGroup->getFormPageFooterActions()->delete();
+ $this->deleteGroup->getFormPageActions()->delete();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteWebsiteEntityTest.php b/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteWebsiteEntityTest.php
index 1bdd06c91fc37..66f06e8fbe61e 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteWebsiteEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/TestCase/DeleteWebsiteEntityTest.php
@@ -102,6 +102,6 @@ public function test(Website $website, $createBackup)
$this->storeIndex->getStoreGrid()->searchAndOpenWebsite($website);
$this->editWebsite->getFormPageActions()->delete();
$this->deleteWebsite->getDeleteWebsiteForm()->fillForm(['create_backup' => $createBackup]);
- $this->deleteWebsite->getFormPageFooterActions()->delete();
+ $this->deleteWebsite->getFormPageActions()->delete();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Store/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Store/Test/etc/constraint.xml
index 4c64f9b0ecd9c..da43ec969ced1 100644
--- a/dev/tests/functional/tests/app/Magento/Store/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Store/Test/etc/constraint.xml
@@ -6,78 +6,78 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertCrossSellsProductsSectionForCustomerSegment.php b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertCrossSellsProductsSectionForCustomerSegment.php
index ba72f4e181593..d2990f891ec96 100644
--- a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertCrossSellsProductsSectionForCustomerSegment.php
+++ b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertCrossSellsProductsSectionForCustomerSegment.php
@@ -20,12 +20,9 @@
*/
class AssertCrossSellsProductsSectionForCustomerSegment extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
/**
* Assert that product is displayed in cross-sell section for customer segment
diff --git a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleForm.php b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleForm.php
index d44499dfbfeca..dadd2d86694af 100644
--- a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleForm.php
+++ b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleForm.php
@@ -16,12 +16,9 @@
*/
class AssertTargetRuleForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Skipped fields for verify data
diff --git a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleInGrid.php b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleInGrid.php
index e5f08292680fe..db4b46639d939 100644
--- a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleInGrid.php
@@ -14,18 +14,15 @@
*/
class AssertTargetRuleInGrid extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Day in seconds
*/
const DAY = 86400;
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert target rule availability in Target Rule Grid
*
diff --git a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleIsNotPresentedInGrid.php b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleIsNotPresentedInGrid.php
index 7904d0edf44a1..ada783894355d 100644
--- a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleIsNotPresentedInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleIsNotPresentedInGrid.php
@@ -14,18 +14,15 @@
*/
class AssertTargetRuleIsNotPresentedInGrid extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'middle';
+ /* end tags */
+
/**
* Day in seconds
*/
const DAY = 86400;
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'middle';
-
/**
* Assert that Target Rule is not presented in grid
*
diff --git a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessDeleteMessage.php
index 18cc10f3b22e9..59985d9eac7a6 100644
--- a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertTargetRuleSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'You deleted the rule.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_DELETE_MESSAGE = 'You deleted the rule.';
/**
* Assert that success message is displayed after target rule delete
diff --git a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessSaveMessage.php
index 7ea86e6bc4221..0e6c970bb3b18 100644
--- a/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/TargetRule/Test/Constraint/AssertTargetRuleSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertTargetRuleSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the rule.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'You saved the rule.';
/**
* Assert that success message is displayed after target rule save
diff --git a/dev/tests/functional/tests/app/Magento/TargetRule/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/TargetRule/Test/etc/constraint.xml
index dc420ce94d41c..1a61545db2123 100644
--- a/dev/tests/functional/tests/app/Magento/TargetRule/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/TargetRule/Test/etc/constraint.xml
@@ -6,33 +6,33 @@
-->
- high
+ high
- high
+ high
- high
+ high
- middle
+ middle
- high
+ high
@@ -41,6 +41,6 @@
- medium
+ medium
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateForm.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateForm.php
index fdec5c70f0bff..a09c55df53cc2 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateForm.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateForm.php
@@ -15,12 +15,9 @@
*/
class AssertTaxRateForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that tax rate form filled correctly
@@ -69,6 +66,7 @@ protected function prepareData(array $data)
} else {
unset($data['zip_from'], $data['zip_to']);
}
+ $data['rate'] = number_format($data['rate'], 4);
return $data;
}
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInGrid.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInGrid.php
index 65b5da52bb96a..fb270ab259ce1 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertTaxRateInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert tax rule availability in Tax Rate grid
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInTaxRule.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInTaxRule.php
index a54589348c8f5..efed34b3f6e6e 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInTaxRule.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateInTaxRule.php
@@ -12,12 +12,9 @@
*/
class AssertTaxRateInTaxRule extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @return void
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateIsInCorrectRange.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateIsInCorrectRange.php
index 51236eea84069..691a3fda7cb20 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateIsInCorrectRange.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateIsInCorrectRange.php
@@ -12,12 +12,9 @@
*/
class AssertTaxRateIsInCorrectRange extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* @return void
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInGrid.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInGrid.php
index b331009964523..cb89722285ef3 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertTaxRateNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that tax rate not available in Tax Rate grid
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInTaxRule.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInTaxRule.php
index 979175de60f22..b6015c3e57b4b 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInTaxRule.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateNotInTaxRule.php
@@ -14,12 +14,9 @@
*/
class AssertTaxRateNotInTaxRule extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that tax rate is absent in tax rule form
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessDeleteMessage.php
index 80ce8e1582ff3..793c1d32c7efb 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertTaxRateSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The tax rate has been deleted.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_DELETE_MESSAGE = 'The tax rate has been deleted.';
/**
* Assert that success delete message is displayed after tax rate deleted
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessSaveMessage.php
index 0e49736f61315..ee423b128ad03 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRateSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertTaxRateSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The tax rate has been saved.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_MESSAGE = 'The tax rate has been saved.';
/**
* Assert that success message is displayed after tax rate saved
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleForm.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleForm.php
index dc08945f555e2..2da55c6b88294 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleForm.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleForm.php
@@ -15,12 +15,9 @@
*/
class AssertTaxRuleForm extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that tax rule form filled right
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleInGrid.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleInGrid.php
index 85c8d5e0da535..61263b8e73140 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertTaxRuleInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert tax rule availability in Tax Rule grid
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsApplied.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsApplied.php
index 9ca882c846d1b..a8525b09c479e 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsApplied.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsApplied.php
@@ -10,12 +10,9 @@
*/
class AssertTaxRuleIsApplied extends AssertTaxRuleApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that tax rule is applied on product in shopping cart.
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsAppliedToAllPrices.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsAppliedToAllPrices.php
index 73cfcca5f4c7a..ac4a53f3f3131 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsAppliedToAllPrices.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsAppliedToAllPrices.php
@@ -20,6 +20,10 @@
*/
class AssertTaxRuleIsAppliedToAllPrices extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Cms index page
*
@@ -48,13 +52,6 @@ class AssertTaxRuleIsAppliedToAllPrices extends AbstractConstraint
*/
protected $checkoutCart;
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that specified prices are actual on category, product and cart pages
*
@@ -162,14 +159,14 @@ public function getProductPagePrices($actualPrices)
*/
public function getCartPrices(CatalogProductSimple $product, $actualPrices)
{
- $actualPrices['cart_item_price_excl_tax'] =
- $this->checkoutCart->getCartBlock()->getCartItem($product)->getPrice();
- $actualPrices['cart_item_price_incl_tax'] =
- $this->checkoutCart->getCartBlock()->getCartItem($product)->getPriceInclTax();
$actualPrices['cart_item_subtotal_excl_tax'] =
$this->checkoutCart->getCartBlock()->getCartItem($product)->getSubtotalPrice();
$actualPrices['cart_item_subtotal_incl_tax'] =
$this->checkoutCart->getCartBlock()->getCartItem($product)->getSubtotalPriceInclTax();
+ $actualPrices['cart_item_price_excl_tax'] =
+ $this->checkoutCart->getCartBlock()->getCartItem($product)->getPrice();
+ $actualPrices['cart_item_price_incl_tax'] =
+ $this->checkoutCart->getCartBlock()->getCartItem($product)->getPriceInclTax();
return $actualPrices;
}
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsNotApplied.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsNotApplied.php
index c99ef7989e517..d3df0e46cbc4f 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsNotApplied.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleIsNotApplied.php
@@ -10,12 +10,9 @@
*/
class AssertTaxRuleIsNotApplied extends AssertTaxRuleApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that tax rule is not applied on product in shopping cart.
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleNotInGrid.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleNotInGrid.php
index a424b1e11a165..01b38ea99c3f4 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertTaxRuleNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that tax rule not available in Tax Rule grid
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessDeleteMessage.php
index 6595fccbaedb1..721c52e935252 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertTaxRuleSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'The tax rule has been deleted.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_DELETE_MESSAGE = 'The tax rule has been deleted.';
/**
* Assert that success delete message is displayed after tax rule deleted
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessSaveMessage.php
index e176957e2965e..39db50df2b042 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxRuleSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertTaxRuleSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The tax rule has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The tax rule has been saved.';
/**
* Assert that success message is displayed after tax rule saved
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderApplied.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderApplied.php
index 52021d7192e13..17478d3afc0ff 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderApplied.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderApplied.php
@@ -11,12 +11,9 @@
*/
class AssertTaxWithCrossBorderApplied extends AbstractAssertTaxWithCrossBorderApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert prices on category, product and cart pages are equal for both customers
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderNotApplied.php b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderNotApplied.php
index 390eb15183fdd..b64b3663a6baf 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderNotApplied.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/Constraint/AssertTaxWithCrossBorderNotApplied.php
@@ -11,12 +11,9 @@
*/
class AssertTaxWithCrossBorderNotApplied extends AbstractAssertTaxWithCrossBorderApplying
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert prices on category, product and cart pages are different for each customer
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest.php b/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest.php
index 68d001c6c4f6b..600aced0b8f38 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest.php
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest.php
@@ -8,13 +8,11 @@
use Magento\Catalog\Test\Fixture\CatalogProductSimple;
use Magento\Checkout\Test\Page\CheckoutCart;
use Magento\Cms\Test\Page\CmsIndex;
-use Magento\Core\Test\Fixture\ConfigData;
use Magento\Customer\Test\Fixture\CustomerInjectable;
use Magento\Customer\Test\Page\CustomerAccountLogin;
use Magento\SalesRule\Test\Fixture\SalesRuleInjectable;
use Magento\Tax\Test\Fixture\TaxRule;
use Mtf\Fixture\FixtureFactory;
-use Mtf\ObjectManager;
use Mtf\TestCase\Injectable;
/**
@@ -102,7 +100,7 @@ class TaxCalculationTest extends Injectable
*/
public static function setUpBeforeClass()
{
- self::markTestIncomplete("MAGETWO-28454");
+ self::markTestIncomplete("Epic: MAGETWO-30073");
}
/**
@@ -172,13 +170,14 @@ protected function clearShoppingCart()
*
* @param CatalogProductSimple $product
* @param TaxRule $taxRule
- * @param ConfigData $config
+ * @param string $configData
* @return array
*/
- public function test(CatalogProductSimple $product, TaxRule $taxRule, ConfigData $config)
+ public function test(CatalogProductSimple $product, TaxRule $taxRule, $configData)
{
//Preconditions
- $config->persist();
+ $this->objectManager->create('Magento\Core\Test\TestStep\SetupConfigurationStep', ['configData' => $configData])
+ ->run();
$product->persist();
$taxRule->persist();
self::$taxRuleCode = $taxRule->getData()['code'];
@@ -195,29 +194,11 @@ public function test(CatalogProductSimple $product, TaxRule $taxRule, ConfigData
*/
public function tearDown()
{
- $taxRuleIndex = ObjectManager::getInstance()->create('\Magento\Tax\Test\Page\Adminhtml\TaxRuleIndex');
- $taxRuleIndex->open();
- $taxRuleIndex->getTaxRuleGrid()->searchAndOpen(['code' => self::$taxRuleCode]);
- $taxRuleNewPage = ObjectManager::getInstance()->create('Magento\Tax\Test\Page\Adminhtml\TaxRuleNew');
- $taxRuleNewPage->getFormPageActions()->delete();
- }
-
- /**
- * Tear down after tests.
- *
- * @return void
- */
- public static function tearDownAfterClass()
- {
- $promoQuoteIndex = ObjectManager::getInstance()
- ->create('Magento\SalesRule\Test\Page\Adminhtml\PromoQuoteIndex');
- $promoQuoteIndex->open();
- $promoQuoteIndex->getPromoQuoteGrid()->searchAndOpen(['name' => self::$salesRuleName]);
- $promoQuoteEdit = ObjectManager::getInstance()
- ->create('Magento\SalesRule\Test\Page\Adminhtml\PromoQuoteEdit');
- $promoQuoteEdit->getFormPageActions()->delete();
- $fixtureFactory = ObjectManager::getInstance()->create('Mtf\Fixture\FixtureFactory');
- $config = $fixtureFactory->createByCode('configData', ['dataSet' => 'default_tax_configuration']);
- $config->persist();
+ $this->objectManager->create('Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep')->run();
+ $this->objectManager->create('Magento\SalesRule\Test\TestStep\DeleteAllSalesRuleStep')->run();
+ $this->objectManager->create(
+ 'Magento\Core\Test\TestStep\SetupConfigurationStep',
+ ['configData' => 'default_tax_configuration,shipping_tax_class_taxable_goods_rollback']
+ )->run();
}
}
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest/test.csv b/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest/test.csv
index 3c6255166eea2..b34a0dc97d871 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/TestCase/TaxCalculationTest/test.csv
@@ -1,11 +1,11 @@
-"config/dataSet";"product/dataSet";"taxRule/dataSet";"prices/category_price_excl_tax";"prices/category_price_incl_tax";"prices/product_view_price_excl_tax";"prices/product_view_price_incl_tax";"prices/cart_item_subtotal_excl_tax";"prices/cart_item_subtotal_incl_tax";"prices/cart_item_price_excl_tax";"prices/cart_item_price_incl_tax";"prices/subtotal_excl_tax";"prices/subtotal_incl_tax";"prices/discount";"prices/shipping_excl_tax";"prices/shipping_incl_tax";"prices/tax";"prices/grand_total_excl_tax";"prices/grand_total_incl_tax";"constraint"
-"row_cat_incl_ship_excl_after_disc_on_excl";"simple_with_tier_price_and_category";"customer_equals_store_rate";"277.14";"300.00";"277.14";"300.00";"41.57";"45.00";"13.86";"15.00";"41.57";"45.00";"20.79";"15.00";"16.24";"3.09";"37.36";"40.45";"assertTaxRuleIsAppliedToAllPrices"
-"row_cat_excl_ship_incl_before_disc_on_incl";"simple_with_group_price_and_category";"customer_greater_store_rate";"90.99";"98.61";"90.99";"98.61";"272.97";"295.83";"90.99";"98.61";"272.97";"295.83";"147.92";"13.86";"15.02";"24.02";"138.91";"162.93";"assertTaxRuleIsAppliedToAllPrices"
-"total_cat_excl_ship_incl_after_disc_on_excl";"simple_with_group_price_and_category";"customer_less_store_rate";"90.99";"98.50";"90.99";"98.50";"272.97";"295.49";"90.99";"98.50";"272.97";"295.49";"136.49";"13.84";"14.98";"12.40";"150.32";"162.72";"assertTaxRuleIsAppliedToAllPrices"
-"row_cat_incl_ship_excl_before_disc_on_incl";"product_with_special_price_and_category";"customer_less_store_rate";"83.05";"89.90";"83.05";"89.90";"249.15";"269.70";"83.05";"89.90";"249.15";"269.70";"134.85";"15.00";"16.24";"21.79";"129.30";"151.09";"assertTaxRuleIsAppliedToAllPrices"
-"unit_cat_incl_ship_incl_before_disc_on_incl";"simple_with_tier_price_and_category";"customer_less_store_rate";"276.81";"299.65";"276.81";"299.65";"41.52";"44.94";"13.84";"14.98";"41.52";"44.94";"22.47";"13.84";"14.98";"4.56";"32.89";"37.45";"assertTaxRuleIsAppliedToAllPrices"
-"total_cat_excl_ship_incl_before_disc_on_incl";"product_with_special_price_and_category";"customer_equals_store_rate";"90.00";"97.43";"90.00";"97.43";"270.00";"292.28";"90.00";"97.43";"270.00";"292.28";"146.15";"13.86";"15.00";"23.42";"137.71";"161.13";"assertTaxRuleIsAppliedToAllPrices"
-"unit_cat_excl_ship_excl_after_disc_on_excl";"simple_with_group_price_and_category";"customer_equals_store_rate";"90.99";"98.50";"90.99";"98.50";"272.97";"295.50";"90.99";"98.50";"272.97";"295.50";"136.49";"15.00";"16.24";"12.49";"151.48";"163.97";"assertTaxRuleIsAppliedToAllPrices"
-"total_cat_incl_ship_excl_before_disc_on_excl";"simple_with_group_price_and_category";"customer_greater_store_rate";"84.06";"91.10";"84.06";"91.10";"252.18";"273.30";"84.06";"91.10";"252.18";"273.30";"126.09";"15.00";"16.26";"22.38";"141.09";"163.47";"assertTaxRuleIsAppliedToAllPrices"
-"total_cat_excl_ship_incl_after_disc_on_incl";"simple_with_tier_price_and_category";"customer_greater_store_rate";"300.00";"325.13";"300.00";"325.13";"45.00";"48.77";"15.00";"16.26";"45.00";"48.77";"24.39";"13.86";"15.02";"2.89";"34.47";"37.36";"assertTaxRuleIsAppliedToAllPrices"
-"unit_cat_excl_ship_incl_after_disc_on_excl";"product_with_special_price_and_category";"customer_greater_store_rate";"90.00";"97.54";"90.00";"97.54";"270.00";"292.62";"90.00";"97.54";"270.00";"292.62";"135.00";"13.86";"15.02";"12.47";"148.86";"161.33";"assertTaxRuleIsAppliedToAllPrices"
+"configData";"product/dataSet";"taxRule/dataSet";"prices/category_price_excl_tax";"prices/category_price_incl_tax";"prices/product_view_price_excl_tax";"prices/product_view_price_incl_tax";"prices/cart_item_subtotal_excl_tax";"prices/cart_item_subtotal_incl_tax";"prices/cart_item_price_excl_tax";"prices/cart_item_price_incl_tax";"prices/subtotal_excl_tax";"prices/subtotal_incl_tax";"prices/discount";"prices/shipping_excl_tax";"prices/shipping_incl_tax";"prices/tax";"prices/grand_total_excl_tax";"prices/grand_total_incl_tax";"constraint"
+"shipping_tax_class_taxable_goods,row_cat_incl_ship_excl_after_disc_on_excl";"simple_with_tier_price_and_category";"customer_equals_store_rate";"277.14";"300.00";"277.14";"300.00";"41.57";"45.00";"13.86";"15.00";"41.57";"45.00";"20.79";"15.00";"16.24";"3.09";"37.36";"40.45";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,row_cat_excl_ship_incl_before_disc_on_incl";"simple_with_group_price_and_category";"customer_greater_store_rate";"90.99";"98.61";"90.99";"98.61";"272.97";"295.83";"90.99";"98.61";"272.97";"295.83";"147.92";"13.86";"15.02";"24.02";"138.91";"162.93";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,total_cat_excl_ship_incl_after_disc_on_excl";"simple_with_group_price_and_category";"customer_less_store_rate";"90.99";"98.50";"90.99";"98.50";"272.97";"295.49";"90.99";"98.50";"272.97";"295.49";"136.49";"13.84";"14.98";"12.40";"150.32";"162.72";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,row_cat_incl_ship_excl_before_disc_on_incl";"product_with_special_price_and_category";"customer_less_store_rate";"83.05";"89.90";"83.05";"89.90";"249.15";"269.70";"83.05";"89.90";"249.15";"269.70";"134.85";"15.00";"16.24";"21.79";"129.30";"151.09";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,unit_cat_incl_ship_incl_before_disc_on_incl";"simple_with_tier_price_and_category";"customer_less_store_rate";"276.81";"299.65";"276.81";"299.65";"41.52";"44.94";"13.84";"14.98";"41.52";"44.94";"22.47";"13.84";"14.98";"4.56";"32.89";"37.45";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,total_cat_excl_ship_incl_before_disc_on_incl";"product_with_special_price_and_category";"customer_equals_store_rate";"90.00";"97.43";"90.00";"97.43";"270.00";"292.28";"90.00";"97.43";"270.00";"292.28";"146.15";"13.86";"15.00";"23.42";"137.71";"161.13";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,unit_cat_excl_ship_excl_after_disc_on_excl";"simple_with_group_price_and_category";"customer_equals_store_rate";"90.99";"98.50";"90.99";"98.50";"272.97";"295.50";"90.99";"98.50";"272.97";"295.50";"136.49";"15.00";"16.24";"12.49";"151.48";"163.97";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,total_cat_incl_ship_excl_before_disc_on_excl";"simple_with_group_price_and_category";"customer_greater_store_rate";"84.06";"91.10";"84.06";"91.10";"252.18";"273.30";"84.06";"91.10";"252.18";"273.30";"126.09";"15.00";"16.26";"22.38";"141.09";"163.47";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,total_cat_excl_ship_incl_after_disc_on_incl";"simple_with_tier_price_and_category";"customer_greater_store_rate";"300.00";"325.13";"300.00";"325.13";"45.00";"48.77";"15.00";"16.26";"45.00";"48.77";"24.39";"13.86";"15.02";"2.89";"34.47";"37.36";"assertTaxRuleIsAppliedToAllPrices"
+"shipping_tax_class_taxable_goods,unit_cat_excl_ship_incl_after_disc_on_excl";"product_with_special_price_and_category";"customer_greater_store_rate";"90.00";"97.54";"90.00";"97.54";"270.00";"292.62";"90.00";"97.54";"270.00";"292.62";"135.00";"13.86";"15.02";"12.47";"148.86";"161.33";"assertTaxRuleIsAppliedToAllPrices"
diff --git a/dev/tests/functional/tests/app/Magento/Tax/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Tax/Test/etc/constraint.xml
index 535fba0e8e1ec..f61aa496c071a 100644
--- a/dev/tests/functional/tests/app/Magento/Tax/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Tax/Test/etc/constraint.xml
@@ -6,20 +6,20 @@
-->
- low
+ low
- high
+ high
- high
+ high
@@ -27,20 +27,20 @@
- high
+ high
- high
+ high
- high
+ high
@@ -48,54 +48,54 @@
- low
+ low
- low
+ low
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Theme/Test/Block/Html/Footer.php b/dev/tests/functional/tests/app/Magento/Theme/Test/Block/Html/Footer.php
index 0bc7e229d21d1..fc56ae562a33a 100644
--- a/dev/tests/functional/tests/app/Magento/Theme/Test/Block/Html/Footer.php
+++ b/dev/tests/functional/tests/app/Magento/Theme/Test/Block/Html/Footer.php
@@ -28,7 +28,7 @@ class Footer extends Block
*
* @var string
*/
- protected $variableSelector = './/div[contains(@class, "links")]/*[text()="%s"]';
+ protected $variableSelector = './/ul[contains(@class, "links")]/*[text()="%s"]';
/**
* Store group dropdown selector
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Block/Adminhtml/Catalog/Category/Tree.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Block/Adminhtml/Catalog/Category/Tree.php
index 010e87641c305..a5b6b384f4a03 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Block/Adminhtml/Catalog/Category/Tree.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Block/Adminhtml/Catalog/Category/Tree.php
@@ -16,11 +16,11 @@
class Tree extends Block
{
/**
- * Locator value for skip category button
+ * Locator value for skip category button
*
* @var string
*/
- protected $skipCategoryButton = '[data-ui-id="catalog-product-edit-skip-categories"]';
+ protected $skipCategoryButton = '[data-ui-id$="skip-categories"]';
/**
* Select category by its name
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertPageByUrlRewriteIsNotFound.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertPageByUrlRewriteIsNotFound.php
index 588aa7d42f74b..69b9f49957a2d 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertPageByUrlRewriteIsNotFound.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertPageByUrlRewriteIsNotFound.php
@@ -16,18 +16,15 @@
*/
class AssertPageByUrlRewriteIsNotFound extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message on the product page 404
*/
const NOT_FOUND_MESSAGE = 'Whoops, our bad...';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Checking the server response 404 page on frontend
*
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryInGrid.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryInGrid.php
index 5315fc2c09c26..28575a379d660 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertUrlRewriteCategoryInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that url rewrite category in grid
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryNotInGrid.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryNotInGrid.php
index 6fe8eba8ef494..04f485d06c3bd 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertUrlRewriteCategoryNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that category url rewrite not in grid
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryRedirect.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryRedirect.php
index 5209cc0abd783..6c728817a9e71 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryRedirect.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCategoryRedirect.php
@@ -16,12 +16,9 @@
*/
class AssertUrlRewriteCategoryRedirect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert check URL rewrite category redirect
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomRedirect.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomRedirect.php
index da77f1fad6851..77667006006f5 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomRedirect.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomRedirect.php
@@ -16,12 +16,9 @@
*/
class AssertUrlRewriteCustomRedirect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert check URL rewrite custom redirect
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomSearchRedirect.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomSearchRedirect.php
index 02b3197d5cc6f..6f5fdaf774d78 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomSearchRedirect.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteCustomSearchRedirect.php
@@ -16,12 +16,9 @@
*/
class AssertUrlRewriteCustomSearchRedirect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created entity was found on search page
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteDeletedMessage.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteDeletedMessage.php
index 27c430d7cf97d..eb2a6d4cb5d17 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteDeletedMessage.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteDeletedMessage.php
@@ -14,18 +14,15 @@
*/
class AssertUrlRewriteDeletedMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message that displayed after delete url rewrite
*/
const SUCCESS_DELETE_MESSAGE = 'The URL Rewrite has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that delete message is displayed
*
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteInGrid.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteInGrid.php
index 7358327177ee1..766b25cf3ec5c 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertUrlRewriteInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that url rewrite category in grid
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteNotInGrid.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteNotInGrid.php
index e180fdba27234..d85a146e49b62 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteNotInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertUrlRewriteNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that url rewrite not in grid
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteProductRedirect.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteProductRedirect.php
index b4983ca54ce68..51ca53f93fa77 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteProductRedirect.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteProductRedirect.php
@@ -17,12 +17,9 @@
*/
class AssertUrlRewriteProductRedirect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Check that product available by new URL on the front
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSaveMessage.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSaveMessage.php
index a9bd5a53a4f33..eb2a8bfcdf1a9 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertUrlRewriteSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'The URL Rewrite has been saved.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'The URL Rewrite has been saved.';
/**
* Assert that url rewrite success message is displayed
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSuccessOutsideRedirect.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSuccessOutsideRedirect.php
index 4126a4bf76f40..a8189399e2ac1 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSuccessOutsideRedirect.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteSuccessOutsideRedirect.php
@@ -15,12 +15,9 @@
*/
class AssertUrlRewriteSuccessOutsideRedirect extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that outside redirect was success
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteUpdatedProductInGrid.php b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteUpdatedProductInGrid.php
index c70641f561501..ac6a36156941b 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteUpdatedProductInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/Constraint/AssertUrlRewriteUpdatedProductInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertUrlRewriteUpdatedProductInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product url in url rewrite grid.
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/TestCase/UpdateCustomUrlRewriteEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/TestCase/UpdateCustomUrlRewriteEntityTest/test.csv
index cb82ccd2b4643..dc82f30d3e7d8 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/TestCase/UpdateCustomUrlRewriteEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/TestCase/UpdateCustomUrlRewriteEntityTest/test.csv
@@ -1,3 +1,3 @@
-"initialRewrite/dataSet";"urlRewrite/data/store_id";"urlRewrite/data/request_path";"urlRewrite/data/target_path/entity";"urlRewrite/data/redirect_type";"urlRewrite/data/description";"constraint";"issue"
-"default";"Main Website/Main Website Store/Default Store View";"wishlist/%isolation%";"http://www.magentocommerce.com/magento-connect/";"Permanent (301)";"test_description_relative path";"assertUrlRewriteSaveMessage, assertUrlRewriteInGrid, assertUrlRewriteSuccessOutsideRedirect";"MAGETWO-29618"
-"custom_rewrite_wishlist";"Main Website/Main Website Store/Default Store View";"wishlist/%isolation%";"catalogsearch/result/?q=$%catalogProductSimple::defaul%sku$";"Temporary (302)";"test_description_relative path";"assertUrlRewriteSaveMessage, assertUrlRewriteInGrid, assertUrlRewriteCustomSearchRedirect";""
+"initialRewrite/dataSet";"urlRewrite/data/store_id";"urlRewrite/data/request_path";"urlRewrite/data/target_path/entity";"urlRewrite/data/redirect_type";"urlRewrite/data/description";"constraint"
+"default";"Main Website/Main Website Store/Default Store View";"wishlist/%isolation%";"http://www.magentocommerce.com/magento-connect/";"Permanent (301)";"test_description_relative path";"assertUrlRewriteSaveMessage, assertUrlRewriteInGrid, assertUrlRewriteSuccessOutsideRedirect"
+"custom_rewrite_wishlist";"Main Website/Main Website Store/Default Store View";"wishlist/%isolation%";"catalogsearch/result/?q=$%catalogProductSimple::defaul%sku$";"Temporary (302)";"test_description_relative path";"assertUrlRewriteSaveMessage, assertUrlRewriteInGrid, assertUrlRewriteCustomSearchRedirect"
diff --git a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/etc/constraint.xml
index 069d8b9a9756a..26dc285fc65c2 100644
--- a/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/UrlRewrite/Test/etc/constraint.xml
@@ -6,20 +6,20 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
@@ -28,20 +28,20 @@
- low
+ low
- low
+ low
- low
+ low
@@ -49,17 +49,17 @@
- low
+ low
- low
+ low
- low
+ low
@@ -67,12 +67,12 @@
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertAccessTokensErrorRevokeMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertAccessTokensErrorRevokeMessage.php
index cc9d7e29e3e74..e064d2e4e7557 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertAccessTokensErrorRevokeMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertAccessTokensErrorRevokeMessage.php
@@ -14,18 +14,15 @@
*/
class AssertAccessTokensErrorRevokeMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* User revoke tokens error message.
*/
const ERROR_MESSAGE = 'This user has no tokens.';
- /**
- * Constraint severeness.
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that error message appears after click on 'Force Sing-In' button for user without tokens.
*
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnAccount.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnAccount.php
index fac61dc3f854d..902dcbd20afea 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnAccount.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnAccount.php
@@ -13,14 +13,11 @@
*/
class AssertImpossibleDeleteYourOwnAccount extends AbstractConstraint
{
- const ERROR_MESSAGE = 'You cannot delete your own account.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const ERROR_MESSAGE = 'You cannot delete your own account.';
/**
* Asserts that error message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnRole.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnRole.php
index 29ccbe89b9e40..711fac9363133 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnRole.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertImpossibleDeleteYourOwnRole.php
@@ -13,14 +13,11 @@
*/
class AssertImpossibleDeleteYourOwnRole extends AbstractConstraint
{
- const ERROR_MESSAGE = 'You cannot delete self-assigned roles.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const ERROR_MESSAGE = 'You cannot delete self-assigned roles.';
/**
* Asserts that error message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleInGrid.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleInGrid.php
index 217f1334e0ba8..2be0b58aad647 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertRoleInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that saved role is present in Role Grid.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleNotInGrid.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleNotInGrid.php
index 0c6c2fb70ab59..675cec9ce181b 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertRoleNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that role is not present in Role Grid.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessDeleteMessage.php
index d51f5ad4c946b..2f86757392e41 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertRoleSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_DELETE_MESSAGE = 'You deleted the role.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_DELETE_MESSAGE = 'You deleted the role.';
/**
* Asserts that success delete message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessSaveMessage.php
index 4be018c21e315..faccbb2519cec 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertRoleSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertRoleSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the role.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You saved the role.';
/**
* Asserts that success message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserDuplicateMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserDuplicateMessage.php
index 1172cc335ee8f..bd0b3d36171c0 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserDuplicateMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserDuplicateMessage.php
@@ -13,14 +13,11 @@
*/
class AssertUserDuplicateMessage extends AbstractConstraint
{
- const ERROR_MESSAGE = 'A user with the same user name or email already exists.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const ERROR_MESSAGE = 'A user with the same user name or email already exists.';
/**
* Asserts that error message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInGrid.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInGrid.php
index c6751758ca15c..048570ff16cc9 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertUserInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that user is present in User Grid.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInvalidEmailMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInvalidEmailMessage.php
index 77885af492af0..19dedcba36908 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInvalidEmailMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserInvalidEmailMessage.php
@@ -14,14 +14,11 @@
*/
class AssertUserInvalidEmailMessage extends AbstractConstraint
{
- const ERROR_MESSAGE = 'Please correct this email address: "%s".';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const ERROR_MESSAGE = 'Please correct this email address: "%s".';
/**
* Asserts that error message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserNotInGrid.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserNotInGrid.php
index fecddb7e20019..7eeed200a5d32 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserNotInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertUserNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that User is not present in User Grid.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleSalesRestrictedAccess.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleSalesRestrictedAccess.php
index c07bc23bf1ef4..fe26eca385eaf 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleSalesRestrictedAccess.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleSalesRestrictedAccess.php
@@ -14,16 +14,13 @@
*/
class AssertUserRoleSalesRestrictedAccess extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
const ROLE_RESOURCE = 'sales';
const DENIED_ACCESS = 'Access denied';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Asserts that user has only Sales-related permissions
*
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessDeleteMessage.php
index 15ef99d460be0..5584f1b681f0d 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessDeleteMessage.php
@@ -13,14 +13,11 @@
*/
class AssertUserSuccessDeleteMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You deleted the user.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You deleted the user.';
/**
* Asserts that success delete message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogOut.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogOut.php
index 65bcde1d0180a..c69e891a1a27f 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogOut.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogOut.php
@@ -14,12 +14,9 @@
*/
class AssertUserSuccessLogOut extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Asserts that 'You have logged out.' message is present on page
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogin.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogin.php
index b2a2d7f3b4b4e..c23d34ce4e94f 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogin.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessLogin.php
@@ -15,12 +15,9 @@
*/
class AssertUserSuccessLogin extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Verify whether customer has logged in to the Backend
@@ -38,6 +35,7 @@ public function processAssert(
Dashboard $dashboard,
User $customAdmin = null
) {
+ $adminAuth->open();
$adminUser = $customAdmin === null ? $user : $customAdmin;
if ($dashboard->getAdminPanelHeader()->isVisible()) {
$dashboard->getAdminPanelHeader()->logOut();
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessSaveMessage.php
index 7aa97dc66a9fc..2ac8c562eead8 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserSuccessSaveMessage.php
@@ -13,14 +13,11 @@
*/
class AssertUserSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_MESSAGE = 'You saved the user.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const SUCCESS_MESSAGE = 'You saved the user.';
/**
* Asserts that success message equals to expected message.
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserWrongCredentialsMessage.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserWrongCredentialsMessage.php
index 1711fcb0abed9..51afc85ef97c2 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserWrongCredentialsMessage.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserWrongCredentialsMessage.php
@@ -14,14 +14,11 @@
*/
class AssertUserWrongCredentialsMessage extends AbstractConstraint
{
- const INVALID_CREDENTIALS_MESSAGE = 'Please correct the user name or password.';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ const INVALID_CREDENTIALS_MESSAGE = 'Please correct the user name or password.';
/**
* Verify incorrect credentials message while login to admin
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Handler/User/Curl.php b/dev/tests/functional/tests/app/Magento/User/Test/Handler/User/Curl.php
index ac4bd263bcebb..c21b6c0aa4ae7 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Handler/User/Curl.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Handler/User/Curl.php
@@ -33,7 +33,7 @@ public function persist(FixtureInterface $fixture = null)
if ($fixture->hasData('role_id')) {
$data['roles[]'] = $fixture->getDataFieldConfig('role_id')['source']->getRole()->getRoleId();
}
- $data['is_active'] = (isset($data['is_active']) && ($data['is_active'] === 'Active')) ? 1 : 0;
+ $data['is_active'] = (isset($data['is_active']) && ($data['is_active'] === 'Inactive')) ? 0 : 1;
$url = $_ENV['app_backend_url'] . 'admin/user/save/active_tab/main_section/';
$curl = new BackendDecorator(new CurlTransport(), new Config());
$curl->addOption(CURLOPT_HEADER, 1);
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/TestCase/CreateAdminUserEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/User/Test/TestCase/CreateAdminUserEntityTest/test.csv
index 7872c32a2612c..178ac7b96f4ca 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/TestCase/CreateAdminUserEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/User/Test/TestCase/CreateAdminUserEntityTest/test.csv
@@ -1,7 +1,7 @@
-"user/data/username";"user/data/firstname";"user/data/lastname";"user/data/email";"user/data/password";"user/data/password_confirmation";"user/data/is_active";"user/data/role_id/dataSet";"isDuplicated";"constraint";"user/data/current_password";"issue"
-"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Active";"Administrators";"-";"assertUserSuccessSaveMessage, assertUserInGrid, assertUserSuccessLogOut, assertUserSuccessLogin"; "123123q";""
-"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Inactive";"Administrators";"-";"assertUserSuccessSaveMessage, assertUserInGrid, assertUserSuccessLogOut, assertUserWrongCredentialsMessage"; "123123q";""
-"-";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Active";"Administrators";"username";"assertUserDuplicateMessage"; "123123q";""
-"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"-";"123123q";"123123q";"Active";"Administrators";"email";"assertUserDuplicateMessage"; "123123q";""
-"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Active";"-";"-";"assertUserSuccessSaveMessage, assertUserInGrid, assertUserSuccessLogOut, assertUserWrongCredentialsMessage"; "123123q";""
-"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.cim";"123123q";"123123q";"Active";"-";"-";"assertUserInvalidEmailMessage"; "123123q";"Bug: MAGETWO-28875"
+"user/data/username";"user/data/firstname";"user/data/lastname";"user/data/email";"user/data/password";"user/data/password_confirmation";"user/data/is_active";"user/data/role_id/dataSet";"isDuplicated";"constraint";"user/data/current_password"
+"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Active";"Administrators";"-";"assertUserSuccessSaveMessage, assertUserInGrid, assertUserSuccessLogOut, assertUserSuccessLogin"; "123123q"
+"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Inactive";"Administrators";"-";"assertUserSuccessSaveMessage, assertUserInGrid, assertUserSuccessLogOut, assertUserWrongCredentialsMessage"; "123123q"
+"-";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Active";"Administrators";"username";"assertUserDuplicateMessage"; "123123q"
+"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"-";"123123q";"123123q";"Active";"Administrators";"email";"assertUserDuplicateMessage"; "123123q"
+"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.com";"123123q";"123123q";"Active";"-";"-";"assertUserSuccessSaveMessage, assertUserInGrid, assertUserSuccessLogOut, assertUserWrongCredentialsMessage"; "123123q"
+"AdminUser%isolation%";"FirstName%isolation%";"LastName%isolation%";"email%isolation%@example.cim";"123123q";"123123q";"Active";"-";"-";"assertUserInvalidEmailMessage"; "123123q"
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/TestCase/UpdateAdminUserRoleEntityTest/testUpdateAdminUserRolesEntity.csv b/dev/tests/functional/tests/app/Magento/User/Test/TestCase/UpdateAdminUserRoleEntityTest/testUpdateAdminUserRolesEntity.csv
index 40e2c721a2b66..a90ad495b8a14 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/TestCase/UpdateAdminUserRoleEntityTest/testUpdateAdminUserRolesEntity.csv
+++ b/dev/tests/functional/tests/app/Magento/User/Test/TestCase/UpdateAdminUserRoleEntityTest/testUpdateAdminUserRolesEntity.csv
@@ -1,3 +1,3 @@
-"user/dataSet";"role/data/rolename";"role/data/resource_access";"role/data/roles_resources";"role/data/in_role_users/dataSet";"constraint";"issue"
-"custom_admin_with_default_role";"NewAdminRole%isolation%";"-";"-";"-";"assertRoleSuccessSaveMessage, assertRoleInGrid, assertUserSuccessLogOut, assertUserSuccessLogin";""
-"default";"-";"Custom";"Sales";"custom_admin";"assertRoleSuccessSaveMessage, assertRoleInGrid, assertUserSuccessLogOut, assertUserSuccessLogin, assertUserRoleSalesRestrictedAccess";"Bug: MAGETWO-28587"
+"user/dataSet";"role/data/rolename";"role/data/resource_access";"role/data/roles_resources";"role/data/in_role_users/dataSet";"constraint"
+"custom_admin_with_default_role";"NewAdminRole%isolation%";"-";"-";"-";"assertRoleSuccessSaveMessage, assertRoleInGrid, assertUserSuccessLogOut, assertUserSuccessLogin"
+"default";"-";"Custom";"Sales";"custom_admin";"assertRoleSuccessSaveMessage, assertRoleInGrid, assertUserSuccessLogOut, assertUserSuccessLogin, assertUserRoleSalesRestrictedAccess"
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/User/Test/etc/constraint.xml
index 5ed3437f673f2..972e9665d4b15 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/User/Test/etc/constraint.xml
@@ -6,7 +6,7 @@
-->
- low
+ low
@@ -15,102 +15,102 @@
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageCurrentlyPublishedRevision.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageCurrentlyPublishedRevision.php
index 1972a2ca9be65..305e2a1e1acc7 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageCurrentlyPublishedRevision.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageCurrentlyPublishedRevision.php
@@ -17,12 +17,9 @@
*/
class AssertCmsPageCurrentlyPublishedRevision extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert that link to Currently Published Revision on CMS Page Information Form is available
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageInitialVersionInGrid.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageInitialVersionInGrid.php
index 108aa3c1e2e66..836d562a60754 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageInitialVersionInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageInitialVersionInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertCmsPageInitialVersionInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* CmsNew Page
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageNewVersionSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageNewVersionSuccessSaveMessage.php
index bb655fec01f99..95b9f7ae7d979 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageNewVersionSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageNewVersionSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageNewVersionSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* New version success save message
*/
const SUCCESS_SAVE_MESSAGE = 'You have created the new version.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after new CMS page version save successful message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionErrorDeleteMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionErrorDeleteMessage.php
index 42097c3a004b8..85830068b9dad 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionErrorDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionErrorDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageRevisionErrorDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const ERROR_DELETE_MESSAGE = 'Revision #%d could not be removed because it is published.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that error delete message is displayed on the page
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionInGrid.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionInGrid.php
index 4e7a33054a842..b3371444c367b 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionInGrid.php
@@ -17,12 +17,9 @@
*/
class AssertCmsPageRevisionInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created CMS page revision can be found in CMS page Version Revisions grid
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionNotInGrid.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionNotInGrid.php
index b50a39f6f84c2..b08b229f1848a 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionNotInGrid.php
@@ -17,12 +17,9 @@
*/
class AssertCmsPageRevisionNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created CMS page revision can not be found in CMS page Version Revisions grid
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionPreview.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionPreview.php
index bdbc4fe6fd937..5f82bc484090d 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionPreview.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionPreview.php
@@ -20,12 +20,9 @@
*/
class AssertCmsPageRevisionPreview extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created CMS page revision content can be found in CMS page revisions preview
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessMassDeleteMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessMassDeleteMessage.php
index fc7cb840a79b8..ae94f521de74e 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessMassDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessMassDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageRevisionSuccessMassDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MASS_DELETE_MESSAGE = 'A total of %d record(s) have been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
-
/**
* Assert that success mass delete message is displayed on the page
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessPublishMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessPublishMessage.php
index ce8dd9983fc4f..2f06d1c42fc20 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessPublishMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessPublishMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageRevisionSuccessPublishMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_PUBLISH_MESSAGE = 'You have published the revision.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert success publish message is displayed on the page
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessSaveMessage.php
index 2eaa0fdd72798..b89c6c02cb3fd 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageRevisionSuccessSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageRevisionSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_SAVE_MESSAGE = 'You have saved the revision.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
-
/**
* Assert that success save message is displayed on the CmsVersionEdit page
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorDeleteMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorDeleteMessage.php
index 963298bb5115d..204875ecd2f41 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageVersionErrorDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
+
/**
* Text value to be checked
*/
const ERROR_DELETE_MESSAGE = 'Version "%s" cannot be removed because its revision is published.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
-
/**
* Assert that error delete message is displayed on the page
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorSaveMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorSaveMessage.php
index 8a06d829065df..f2115885225e8 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionErrorSaveMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageVersionErrorSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Save error message
*/
const ERROR_SAVE_MESSAGE = 'Cannot change version access level because it is the last public version for its page.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that after change access level of last public version to private error message appears
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionInGrid.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionInGrid.php
index ff8dcfe05b79c..400d7f3bd843c 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionInGrid.php
@@ -15,12 +15,9 @@
*/
class AssertCmsPageVersionInGrid extends AssertCmsPageInitialVersionInGrid
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
/**
* Assert that created CMS page version can be found on CMS page Versions tab in grid via:
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionNotInGrid.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionNotInGrid.php
index eee465db2e346..48e05b7276ab5 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionNotInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionNotInGrid.php
@@ -16,12 +16,9 @@
*/
class AssertCmsPageVersionNotInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created CMS page version can not be found on CMS page Versions tab in grid
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessDeleteMessage.php
index 772c4f08909e7..c35681a7c6201 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageVersionSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_DELETE_MESSAGE = 'You have deleted the version.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
-
/**
* Assert that success delete message is displayed on the page
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessMassDeleteMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessMassDeleteMessage.php
index ccdbc39355a64..cf387dfb67d28 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessMassDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessMassDeleteMessage.php
@@ -14,18 +14,15 @@
*/
class AssertCmsPageVersionSuccessMassDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'medium';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_DELETE_MESSAGE = 'A total of %d record(s) have been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'medium';
-
/**
* Assert that success delete message is displayed on the page
*
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessSaveMessage.php
index 5e1ab506b69c7..baedf33fff68c 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertCmsPageVersionSuccessSaveMessage.php
@@ -14,14 +14,11 @@
*/
class AssertCmsPageVersionSuccessSaveMessage extends AbstractConstraint
{
- const SUCCESS_SAVE_MESSAGE = 'You have saved the version.';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ const SUCCESS_SAVE_MESSAGE = 'You have saved the version.';
/**
* Assert that success save message is displayed on the page
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertWidgetHierarchyNodeLinkOnHomePage.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertWidgetHierarchyNodeLinkOnHomePage.php
index 2aa4f612e6d55..44732220dec0c 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertWidgetHierarchyNodeLinkOnHomePage.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/Constraint/AssertWidgetHierarchyNodeLinkOnHomePage.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetHierarchyNodeLinkOnHomePage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that widget hierarchy node link is present on Home page and after click to link widget redirects to page
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForExistingCmsPageTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForExistingCmsPageTest.php
index f8cd8837d1582..6c808644a3ea7 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForExistingCmsPageTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForExistingCmsPageTest.php
@@ -64,14 +64,10 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew)
*
* @param CmsPage $cmsInitial
* @param CmsPage $cms
- * @param array $results
* @return void
- *
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
- public function test(CmsPage $cmsInitial, CmsPage $cms, array $results)
+ public function test(CmsPage $cmsInitial, CmsPage $cms)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Precondition
$cmsInitial->persist();
// Steps
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForNewCmsPageTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForNewCmsPageTest.php
index 289184ba05f99..2a46720972ead 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForNewCmsPageTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateCmsPageVersionsEntityForNewCmsPageTest.php
@@ -58,14 +58,10 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew)
* Create CMS Page Version Entity
*
* @param CmsPage $cms
- * @param array $results
* @return void
- *
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
- public function test(CmsPage $cms, array $results)
+ public function test(CmsPage $cms)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Steps
$this->cmsIndex->open();
$this->cmsIndex->getPageActionsBlock()->addNew();
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateWidgetHierarchyNodeLinkTest/test.csv b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateWidgetHierarchyNodeLinkTest/test.csv
index 5ec3dce43f4b8..2ba8abbd7415f 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateWidgetHierarchyNodeLinkTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/CreateWidgetHierarchyNodeLinkTest/test.csv
@@ -1,2 +1,2 @@
-"widget/data/widgetOptions/preset";"widget/data/code";"widget/data/theme_id";"widget/data/title";"widget/data/store_ids/dataSet";"widget/data/layout/preset";"constraint";"issue"
-"hierarchyNodeLink";"CMS Hierarchy Node Link";"Magento Blank";"Title_%isolation%";"All Store Views";"all_pages";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetHierarchyNodeLinkOnHomePage";"Bug: MAGETWO-28346"
+"widget/data/widgetOptions/preset";"widget/data/code";"widget/data/theme_id";"widget/data/title";"widget/data/store_ids/dataSet";"widget/data/layout/preset";"constraint";
+"hierarchyNodeLink";"CMS Hierarchy Node Link";"Magento Blank";"Title_%isolation%";"All Store Views";"all_pages";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetHierarchyNodeLinkOnHomePage";
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/DeleteCmsPageVersionsEntityTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/DeleteCmsPageVersionsEntityTest.php
index dc3a6d66afde2..87a3732ca9869 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/DeleteCmsPageVersionsEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/DeleteCmsPageVersionsEntityTest.php
@@ -84,7 +84,6 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew, CmsVersionEdit $cms
*/
public function test(CmsPage $cms, Version $version, array $results, $initialVersionToDelete)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Precondition
$cms->persist();
$filter = ['title' => $cms->getTitle()];
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsPageRevisionEntityTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsPageRevisionEntityTest.php
index 700f6a98e6432..bc0358df61c2c 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsPageRevisionEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsPageRevisionEntityTest.php
@@ -115,7 +115,6 @@ public function __inject(
*/
public function test(CmsPage $cms, Revision $revision, array $results, $initialRevision)
{
- $this->markTestIncomplete('Bug: MAGETWO-27326, Bug: MAGETWO-28876, Bug: MAGETWO-30362');
// Precondition
$filter = ['title' => $cms->getTitle()];
$this->cmsIndex->open();
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsVersionsEntityTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsVersionsEntityTest.php
index 0b95e3a5c06bb..64001669ed0bf 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsVersionsEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/MassDeleteCmsVersionsEntityTest.php
@@ -85,7 +85,6 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew, CmsVersionEdit $cms
*/
public function test(CmsPage $cms, Version $version, array $results, $initialVersionToDelete)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Precondition
$cms->persist();
$filter = ['title' => $cms->getTitle()];
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/PublishCmsPageRevisionEntityTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/PublishCmsPageRevisionEntityTest.php
index a583c341f6870..00852a2933a9b 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/PublishCmsPageRevisionEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/PublishCmsPageRevisionEntityTest.php
@@ -108,14 +108,10 @@ public function __inject(
* @param CmsPage $cms
* @param Revision $revision
* @param int $initialRevision
- * @param array $results
* @return void
- *
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
- public function test(CmsPage $cms, Revision $revision, $initialRevision, array $results)
+ public function test(CmsPage $cms, Revision $revision, $initialRevision)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Steps
$this->cmsIndex->open();
$title = $cms->getTitle();
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewRevisionInNewVersionTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewRevisionInNewVersionTest.php
index a3bad07aa7c20..105902af69c7f 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewRevisionInNewVersionTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewRevisionInNewVersionTest.php
@@ -96,7 +96,6 @@ public function __inject(
*/
public function test(CmsPage $cms, Revision $revision, array $revisionData, array $results)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Precondition:
$cms->persist();
$title = $cms->getTitle();
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewVersionOfVersionsCmsEntityTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewVersionOfVersionsCmsEntityTest.php
index f5716756bbd40..5adf5161c5451 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewVersionOfVersionsCmsEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/SaveNewVersionOfVersionsCmsEntityTest.php
@@ -79,7 +79,6 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew, CmsVersionEdit $cms
*/
public function test(CmsPage $cms, Version $version, $quantity)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Preconditions:
$cms->persist();
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageRevisionEntityTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageRevisionEntityTest.php
index dd9efa48cfc2a..f287eaf9e99a4 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageRevisionEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageRevisionEntityTest.php
@@ -96,7 +96,6 @@ public function __inject(
*/
public function test(CmsPage $cms, Revision $revision, array $revisionData, array $results)
{
- $this->markTestIncomplete('Bug: MAGETWO-28602, Bug: MAGETWO-28876, Bug: MAGETWO-30362');
// Precondition:
$cms->persist();
$title = $cms->getTitle();
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageVersionsEntityTest.php b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageVersionsEntityTest.php
index f0871fb70ea8a..ad3d0e8f310bf 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageVersionsEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/TestCase/UpdateCmsPageVersionsEntityTest.php
@@ -82,7 +82,6 @@ public function __inject(CmsIndex $cmsIndex, CmsNew $cmsNew, CmsVersionEdit $cms
*/
public function test(CmsPage $cms, Version $version, $quantity)
{
- $this->markTestIncomplete("Bug: MAGETWO-30362");
// Precondition
$cms->persist();
// Steps
diff --git a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/etc/constraint.xml
index df9479e71b134..5ed5375efab05 100644
--- a/dev/tests/functional/tests/app/Magento/VersionsCms/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/VersionsCms/Test/etc/constraint.xml
@@ -6,7 +6,7 @@
-->
- high
+ high
@@ -14,7 +14,7 @@
- medium
+ medium
@@ -22,7 +22,7 @@
- low
+ low
@@ -31,25 +31,25 @@
- high
+ high
- medium
+ medium
- medium
+ medium
- low
+ low
@@ -57,19 +57,19 @@
- medium
+ medium
- medium
+ medium
- low
+ low
@@ -78,13 +78,13 @@
- low
+ low
- low
+ low
@@ -93,19 +93,19 @@
- high
+ high
- high
+ high
- high
+ high
@@ -117,24 +117,24 @@
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Weee/Test/Block/Cart/Totals.php b/dev/tests/functional/tests/app/Magento/Weee/Test/Block/Cart/Totals.php
index 0321f29538d26..260260a4d978e 100644
--- a/dev/tests/functional/tests/app/Magento/Weee/Test/Block/Cart/Totals.php
+++ b/dev/tests/functional/tests/app/Magento/Weee/Test/Block/Cart/Totals.php
@@ -17,7 +17,7 @@ class Totals extends \Magento\Checkout\Test\Block\Cart\Totals
*
* @var string
*/
- protected $fptBlock = './/tr[normalize-space(td)="FPT"]';
+ protected $fptBlock = './/tr[normalize-space(th)="FPT"]';
/**
* Get block fpt totals
diff --git a/dev/tests/functional/tests/app/Magento/Weee/Test/TestCase/CreateTaxWithFptTest/test.csv b/dev/tests/functional/tests/app/Magento/Weee/Test/TestCase/CreateTaxWithFptTest/test.csv
index 3d36f615ecbc4..4679509ffa9fb 100644
--- a/dev/tests/functional/tests/app/Magento/Weee/Test/TestCase/CreateTaxWithFptTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Weee/Test/TestCase/CreateTaxWithFptTest/test.csv
@@ -1,12 +1,12 @@
-"description";"config/dataSet";"productData";"prices/category_price";"prices/fpt_category";"prices/fpt_total_category";"prices/product_page_price";"prices/product_page_fpt";"prices/product_page_fpt_total";"prices/cart_item_price";"prices/cart_item_fpt";"prices/cart_item_fpt_total";"prices/cart_item_subtotal";"prices/cart_item_subtotal_fpt";"prices/cart_item_subtotal_fpt_total";"prices/grand_total";"prices/total_fpt";"constraint";"issue"
-"Check not taxed FPT display set to Excluding, Description and Including FPT on product with custom option catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_excl";"with_custom_option_and_fpt";"70.00";"10.00";"80.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"118.25";"10.00";"assertFptApplied";"MAGETWO-29617"
-"Check not taxed FPT display set to Including FPT and Description on product with custom option catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_incl";"with_custom_option_and_fpt";"80.00";"10.00";"";"100.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"118.25";"10.00";"assertFptApplied";""
-"Check not taxed FPT display set to Excluding, Description and Including FPT on product with special price catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_incl";"with_special_price_and_fpt";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"118.25";"10.00";"assertFptApplied";""
-"Check not taxed FPT display set to Including FPT and Description on product with special price catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_excl";"with_special_price_and_fpt";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"118.25";"10.00";"assertFptApplied";"MAGETWO-29617"
-"Check taxed FPT display set to Excluding, Description and Including FPT on product with with custom option catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_excl";"with_custom_option_and_fpt";"70.00";"10.00";"80.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"119.08";"10.00";"assertFptApplied";"MAGETWO-29617"
-"Check taxed FPT display set to Including FPT and Description on product with with custom option catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_incl";"with_custom_option_and_fpt";"80.00";"10.00";"";"100.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"119.08";"10.00";"assertFptApplied";""
-"Check taxed FPT display set to Excluding, Description and Including FPT on product with special price catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_incl";"with_special_price_and_fpt";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"119.08";"10.00";"assertFptApplied";""
-"Check taxed FPT display set to Including FPT and Description on product with special price catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_excl";"with_special_price_and_fpt";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"119.08";"10.00";"assertFptApplied";"MAGETWO-29617"
-"Check taxed FPT display set to Excluding, Description and Including FPT on product with with special price and catalog price Including Tax";"tax_with_fpt_taxed_cat_incl_disp_excl";"with_special_price_and_fpt";"82.38";"10.00";"92.38";"82.38";"10.00";"92.38";"92.38";"9.24";"101.62";"92.38";"9.24";"101.62";"110.00";"10.00";"assertFptApplied";"MAGETWO-29617"
-"Check taxed FPT display set to Including FPT and Description on product with with special price and catalog price Including Tax";"tax_with_fpt_taxed_cat_incl_disp_incl";"with_special_price_and_fpt";"92.38";"10.00";"";"92.38";"10.00";"";"101.62";"9.24";"";"101.62";"9.24";"";"110.00";"10.00";"assertFptApplied";""
-"Check taxed FPT display set to Excluding, Description and Including FPT on product with with custom option and catalog price Including Tax";"tax_with_fpt_taxed_cat_incl_disp_excl";"with_custom_option_and_fpt";"54.67";"10.00";"64.67";"82.38";"10.00";"92.38";"92.38";"9.24";"101.62";"92.38";"9.24";"101.62";"110.00";"10.00";"assertFptApplied";"MAGETWO-29617"
+"description";"config/dataSet";"productData";"prices/category_price";"prices/fpt_category";"prices/fpt_total_category";"prices/product_page_price";"prices/product_page_fpt";"prices/product_page_fpt_total";"prices/cart_item_price";"prices/cart_item_fpt";"prices/cart_item_fpt_total";"prices/cart_item_subtotal";"prices/cart_item_subtotal_fpt";"prices/cart_item_subtotal_fpt_total";"prices/grand_total";"prices/total_fpt";"constraint"
+"Check not taxed FPT display set to Excluding, Description and Including FPT on product with custom option catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_excl";"with_custom_option_and_fpt";"70.00";"10.00";"80.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"118.25";"10.00";"assertFptApplied"
+"Check not taxed FPT display set to Including FPT and Description on product with custom option catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_incl";"with_custom_option_and_fpt";"80.00";"10.00";"";"100.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"118.25";"10.00";"assertFptApplied"
+"Check not taxed FPT display set to Excluding, Description and Including FPT on product with special price catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_incl";"with_special_price_and_fpt";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"118.25";"10.00";"assertFptApplied"
+"Check not taxed FPT display set to Including FPT and Description on product with special price catalog price Excluding Tax";"tax_with_fpt_cat_excl_disp_excl";"with_special_price_and_fpt";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"118.25";"10.00";"assertFptApplied"
+"Check taxed FPT display set to Excluding, Description and Including FPT on product with with custom option catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_excl";"with_custom_option_and_fpt";"70.00";"10.00";"80.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"119.08";"10.00";"assertFptApplied"
+"Check taxed FPT display set to Including FPT and Description on product with with custom option catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_incl";"with_custom_option_and_fpt";"80.00";"10.00";"";"100.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"119.08";"10.00";"assertFptApplied"
+"Check taxed FPT display set to Excluding, Description and Including FPT on product with special price catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_incl";"with_special_price_and_fpt";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"110.00";"10.00";"";"119.08";"10.00";"assertFptApplied"
+"Check taxed FPT display set to Including FPT and Description on product with special price catalog price Excluding Tax";"tax_with_fpt_taxed_cat_excl_disp_excl";"with_special_price_and_fpt";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"100.00";"10.00";"110.00";"119.08";"10.00";"assertFptApplied"
+"Check taxed FPT display set to Excluding, Description and Including FPT on product with with special price and catalog price Including Tax";"tax_with_fpt_taxed_cat_incl_disp_excl";"with_special_price_and_fpt";"82.38";"10.00";"92.38";"82.38";"10.00";"92.38";"92.38";"9.24";"101.62";"92.38";"9.24";"101.62";"110.00";"10.00";"assertFptApplied"
+"Check taxed FPT display set to Including FPT and Description on product with with special price and catalog price Including Tax";"tax_with_fpt_taxed_cat_incl_disp_incl";"with_special_price_and_fpt";"92.38";"10.00";"";"92.38";"10.00";"";"101.62";"9.24";"";"101.62";"9.24";"";"110.00";"10.00";"assertFptApplied"
+"Check taxed FPT display set to Excluding, Description and Including FPT on product with with custom option and catalog price Including Tax";"tax_with_fpt_taxed_cat_incl_disp_excl";"with_custom_option_and_fpt";"54.67";"10.00";"64.67";"82.38";"10.00";"92.38";"92.38";"9.24";"101.62";"92.38";"9.24";"101.62";"110.00";"10.00";"assertFptApplied"
diff --git a/dev/tests/functional/tests/app/Magento/Weee/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Weee/Test/etc/constraint.xml
index 2d842994ffe22..a42ea7838bb7a 100644
--- a/dev/tests/functional/tests/app/Magento/Weee/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Weee/Test/etc/constraint.xml
@@ -6,6 +6,6 @@
-->
- high
+ high
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetAbsentOnFrontendHome.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetAbsentOnFrontendHome.php
index 806206bc1959d..405acf41ba9af 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetAbsentOnFrontendHome.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetAbsentOnFrontendHome.php
@@ -15,12 +15,9 @@
*/
class AssertWidgetAbsentOnFrontendHome extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created widget is absent on frontend on Home page
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCatalogCategoryLink.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCatalogCategoryLink.php
index b280c09402c31..f44ef46cc2fa9 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCatalogCategoryLink.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCatalogCategoryLink.php
@@ -17,12 +17,9 @@
*/
class AssertWidgetCatalogCategoryLink extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created widget displayed on frontend on Home page and on Advanced Search and
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCmsPageLink.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCmsPageLink.php
index 2a22d3270090f..9bc9e0ef690e8 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCmsPageLink.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetCmsPageLink.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetCmsPageLink extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created widget displayed on frontent on Home page and on Advanced Search and
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetInGrid.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetInGrid.php
index 380b615200698..a2e790a66c587 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetInGrid.php
@@ -14,12 +14,9 @@
*/
class AssertWidgetInGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'high';
+ /* tags */
+ const SEVERITY = 'high';
+ /* end tags */
/**
* Assert widget availability in widget grid
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnFrontendInCatalog.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnFrontendInCatalog.php
index ae0448fa5e865..df91033ad3954 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnFrontendInCatalog.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnFrontendInCatalog.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetOnFrontendInCatalog extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created widget displayed on frontent in Catalog
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnProductPage.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnProductPage.php
index 2bd23bb219aed..1010268c9d7f5 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnProductPage.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetOnProductPage.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetOnProductPage extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that created widget displayed on frontend on Product page
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetProductLink.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetProductLink.php
index 33b0d44dfbd6d..b0b50f459dc82 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetProductLink.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetProductLink.php
@@ -16,12 +16,9 @@
*/
class AssertWidgetProductLink extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that after click on widget link on frontend system redirects you to Product page defined in widget
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetRecentlyViewedProducts.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetRecentlyViewedProducts.php
index 5c68b4306eef1..690af8cac881f 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetRecentlyViewedProducts.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetRecentlyViewedProducts.php
@@ -19,6 +19,10 @@
*/
class AssertWidgetRecentlyViewedProducts extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Browser
*
@@ -40,13 +44,6 @@ class AssertWidgetRecentlyViewedProducts extends AbstractConstraint
*/
protected $catalogCategoryView;
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that widget with type Recently Viewed Products is present on category page
*
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessDeleteMessage.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessDeleteMessage.php
index 27736a383bc72..0c5cb327e8ed1 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessDeleteMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessDeleteMessage.php
@@ -13,18 +13,15 @@
*/
class AssertWidgetSuccessDeleteMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Message displayed after delete widget
*/
const DELETE_MESSAGE = 'The widget instance has been deleted.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that Widget success delete message is present
*
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessSaveMessage.php b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessSaveMessage.php
index b03865b5d8349..7c0da8dbfd838 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessSaveMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/Constraint/AssertWidgetSuccessSaveMessage.php
@@ -13,18 +13,15 @@
*/
class AssertWidgetSuccessSaveMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Text value to be checked
*/
const SUCCESS_MESSAGE = 'The widget instance has been saved.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after widget saved
*
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/TestCase/CreateWidgetEntityTest/test.csv b/dev/tests/functional/tests/app/Magento/Widget/Test/TestCase/CreateWidgetEntityTest/test.csv
index ca8eb8d1ee3b4..8dae6eddd27d4 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/TestCase/CreateWidgetEntityTest/test.csv
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/TestCase/CreateWidgetEntityTest/test.csv
@@ -1,6 +1,6 @@
"widget/data/widgetOptions/preset";"widget/data/code";"widget/data/theme_id";"widget/data/title";"widget/data/store_ids/dataSet";"widget/data/layout/preset";"constraint";"issue"
"cmsStaticBlock";"CMS Static Block";"Magento Blank";"Title_%isolation%";"All Store Views";"on_category";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetOnFrontendInCatalog";""
-"cmsPageLink";"CMS Page Link";"Magento Blank";"Title_%isolation%";"All Store Views";"for_cms_page_link";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetCmsPageLink";"Bug: MAGETWO-31062"
+"cmsPageLink";"CMS Page Link";"Magento Blank";"Title_%isolation%";"All Store Views";"for_cms_page_link";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetCmsPageLink";""
"recentlyViewedProducts";"Recently Viewed Products";"Magento Blank";"Title_%isolation%";"All Store Views";"for_viewed_products";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetRecentlyViewedProducts";"Bug: MAGETWO-17189"
"recentlyComparedProducts";"Recently Compared Products";"Magento Blank";"Title_%isolation%";"All Store Views";"for_compared_products";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetRecentlyComparedProducts";"Bug: MAGETWO-17189"
"catalogCategoryLink";"Catalog Category Link";"Magento Blank";"Title_%isolation%";"All Store Views";"for_category_link";"assertWidgetSuccessSaveMessage, assertWidgetInGrid, assertWidgetCatalogCategoryLink";""
diff --git a/dev/tests/functional/tests/app/Magento/Widget/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Widget/Test/etc/constraint.xml
index 7990881930b57..e9dcb69f567c6 100644
--- a/dev/tests/functional/tests/app/Magento/Widget/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Widget/Test/etc/constraint.xml
@@ -6,36 +6,36 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Customer/Edit/Tab/Wishlist/Grid.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Customer/Edit/Tab/Wishlist/Grid.php
index 274d23169e349..c2374e20b52ae 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Customer/Edit/Tab/Wishlist/Grid.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Customer/Edit/Tab/Wishlist/Grid.php
@@ -105,9 +105,6 @@ protected function getRow(array $filter, $isSearchable = true, $isStrict = true)
}
$location = '//div[@class="grid"]//tr[';
$rowTemplate = 'td[contains(.,normalize-space("%s"))]';
- if ($isStrict) {
- $rowTemplate = 'td[text()[normalize-space()="%s"]]';
- }
$rows = [];
foreach ($filter as $value) {
$rows[] = sprintf($rowTemplate, $value);
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Edit/CustomerForm.xml b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Edit/CustomerForm.xml
index 6bf8bbb220023..3bca952aecf22 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Edit/CustomerForm.xml
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Adminhtml/Edit/CustomerForm.xml
@@ -7,7 +7,7 @@
\Magento\Wishlist\Test\Block\Adminhtml\Customer\Edit\Tab\Wishlist
- #customer_info_tabs_wishlist
+ #tab_wishlistcss selector
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertAddProductToWishlistSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertAddProductToWishlistSuccessMessage.php
index 077ab523f5f9a..2d0905f33ddbb 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertAddProductToWishlistSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertAddProductToWishlistSuccessMessage.php
@@ -15,18 +15,15 @@
*/
class AssertAddProductToWishlistSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success add message
*/
const SUCCESS_MESSAGE = "%s has been added to your wishlist. Click here to continue shopping.";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message appears on My Wish List page after adding product to wishlist.
*
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertMoveProductToWishlistSuccessMessage.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertMoveProductToWishlistSuccessMessage.php
index a7b13e8bffb64..cc28d74f53f43 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertMoveProductToWishlistSuccessMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertMoveProductToWishlistSuccessMessage.php
@@ -15,18 +15,15 @@
*/
class AssertMoveProductToWishlistSuccessMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success add message
*/
const SUCCESS_MESSAGE = "%s has been moved to wish list Wish List";
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message appears on My Wish List page after moving product to wishlist.
*
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductDetailsInWishlist.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductDetailsInWishlist.php
index 64881ef289947..23765d99f718e 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductDetailsInWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductDetailsInWishlist.php
@@ -17,12 +17,9 @@
*/
class AssertProductDetailsInWishlist extends AbstractAssertForm
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that the correct option details are displayed on the "View Details" tool tip
@@ -44,7 +41,10 @@ public function processAssert(
$cartFixture = $fixtureFactory->createByCode('cart', ['data' => ['items' => ['products' => [$product]]]]);
$expectedOptions = $cartFixture->getItems()[0]->getData()['options'];
- $errors = $this->verifyData($expectedOptions, $actualOptions);
+ $errors = $this->verifyData(
+ $this->sortDataByPath($expectedOptions, '::title'),
+ $this->sortDataByPath($actualOptions, '::title')
+ );
\PHPUnit_Framework_Assert::assertEmpty($errors, $errors);
}
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductInCustomerWishlistOnBackendGrid.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductInCustomerWishlistOnBackendGrid.php
index a210f017074e1..aec67bef8064c 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductInCustomerWishlistOnBackendGrid.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductInCustomerWishlistOnBackendGrid.php
@@ -16,12 +16,9 @@
*/
class AssertProductInCustomerWishlistOnBackendGrid extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product is present in grid on customer's wish list tab with configure option and qty
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInCustomerBackendWishlist.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInCustomerBackendWishlist.php
index 711732e33f1c8..c664bfbbc42e2 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInCustomerBackendWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInCustomerBackendWishlist.php
@@ -18,12 +18,9 @@
*/
class AssertProductIsPresentInCustomerBackendWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that products added to wishlist are present on Customers account on backend.
@@ -47,7 +44,7 @@ public function processAssert(
$wishlistGrid = $customerIndexEdit->getCustomerForm()->getTabElement('wishlist')->getSearchGridBlock();
\PHPUnit_Framework_Assert::assertTrue(
- $wishlistGrid->isRowVisible(['product_name' => $product->getName()]),
+ $wishlistGrid->isRowVisible(['product_name' => $product->getName()], true, false),
$product->getName() . " is not visible in customer wishlist on backend."
);
}
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInWishlist.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInWishlist.php
index d4c007777e994..d6c6854ac8604 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInWishlist.php
@@ -17,12 +17,9 @@
*/
class AssertProductIsPresentInWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product is present in default wishlist
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductsIsAbsentInWishlist.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductsIsAbsentInWishlist.php
index cf330dc751a05..b5df2c1b8ef75 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductsIsAbsentInWishlist.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductsIsAbsentInWishlist.php
@@ -20,12 +20,9 @@
*/
class AssertProductsIsAbsentInWishlist extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert that product is not present in Wishlist on Frontend
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistIsEmpty.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistIsEmpty.php
index 5ae0070689bb9..ef833626c2015 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistIsEmpty.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistIsEmpty.php
@@ -15,12 +15,9 @@
*/
class AssertWishlistIsEmpty extends AbstractConstraint
{
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
/**
* Assert wish list is empty
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistShareMessage.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistShareMessage.php
index 7bf0348b1c77d..a66a7b74c8dad 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistShareMessage.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertWishlistShareMessage.php
@@ -14,18 +14,15 @@
*/
class AssertWishlistShareMessage extends AbstractConstraint
{
+ /* tags */
+ const SEVERITY = 'low';
+ /* end tags */
+
/**
* Success wishlist share message
*/
const SUCCESS_MESSAGE = 'Your wish list has been shared.';
- /**
- * Constraint severeness
- *
- * @var string
- */
- protected $severeness = 'low';
-
/**
* Assert that success message is displayed after wishlist has been shared
*
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductToWishlistEntityTest.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductToWishlistEntityTest.php
index cd11872300b69..522d3c3196a0e 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductToWishlistEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductToWishlistEntityTest.php
@@ -49,7 +49,6 @@ public function __prepare(CustomerInjectable $customer)
*/
public function test(CustomerInjectable $customer, $product)
{
- $this->markTestIncomplete('Bug: MAGETWO-27949');
$product = $this->createProducts($product)[0];
// Steps:
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductsToCartFromCustomerWishlistOnFrontendTest.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductsToCartFromCustomerWishlistOnFrontendTest.php
index 2b20ff511881b..4d6ff6c1cb4fb 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductsToCartFromCustomerWishlistOnFrontendTest.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductsToCartFromCustomerWishlistOnFrontendTest.php
@@ -48,7 +48,6 @@ class AddProductsToCartFromCustomerWishlistOnFrontendTest extends AbstractWishli
*/
public function test(CustomerInjectable $customer, $products, $qty, Browser $browser)
{
- $this->markTestIncomplete("Bug: MAGETWO-30097");
// Preconditions
$this->browser = $browser;
$customer->persist();
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ConfigureProductInCustomerWishlistOnFrontendTest.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ConfigureProductInCustomerWishlistOnFrontendTest.php
index 1fc45be9613fc..bcc6085617b8a 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ConfigureProductInCustomerWishlistOnFrontendTest.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ConfigureProductInCustomerWishlistOnFrontendTest.php
@@ -52,7 +52,6 @@ public function __prepare(CustomerInjectable $customer)
*/
public function test(CustomerInjectable $customer, $product)
{
- $this->markTestIncomplete("Bug: MAGETWO-30097");
// Preconditions
$product = $this->createProducts($product)[0];
$this->loginCustomer($customer);
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/DeleteProductFromCustomerWishlistOnBackendTest.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/DeleteProductFromCustomerWishlistOnBackendTest.php
index 9eeef2b4ef674..d0d161d526f3f 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/DeleteProductFromCustomerWishlistOnBackendTest.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/DeleteProductFromCustomerWishlistOnBackendTest.php
@@ -61,7 +61,6 @@ public function test(
CustomerIndex $customerIndex,
CustomerIndexEdit $customerIndexEdit
) {
- $this->markTestIncomplete('MAGETWO-27949');
//Preconditions
$product = $this->createProducts($product)[0];
$this->loginCustomer($customer);
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ShareWishlistEntityTest.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ShareWishlistEntityTest.php
index b4a26725034cf..8c83fe2fff1b8 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ShareWishlistEntityTest.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ShareWishlistEntityTest.php
@@ -155,7 +155,6 @@ public function test(
CatalogProductSimple $product,
array $sharingInfo
) {
- $this->markTestIncomplete("Bug: MAGETWO-30105");
//Steps
$this->loginCustomer($customer);
$browser->open($_ENV['app_frontend_url'] . $product->getUrlKey() . '.html');
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ViewProductInCustomerWishlistOnBackendTest.php b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ViewProductInCustomerWishlistOnBackendTest.php
index 21feb4148be38..6a19b5be336fe 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ViewProductInCustomerWishlistOnBackendTest.php
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ViewProductInCustomerWishlistOnBackendTest.php
@@ -59,8 +59,6 @@ public function test(
CustomerIndex $customerIndex,
CustomerIndexEdit $customerIndexEdit
) {
- $this->markTestIncomplete('Bug: MAGETWO-27949');
-
// Preconditions
$product = $this->createProducts($product)[0];
$this->loginCustomer($customer);
diff --git a/dev/tests/functional/tests/app/Magento/Wishlist/Test/etc/constraint.xml b/dev/tests/functional/tests/app/Magento/Wishlist/Test/etc/constraint.xml
index 0cf6e50c1a28b..b2437571725eb 100644
--- a/dev/tests/functional/tests/app/Magento/Wishlist/Test/etc/constraint.xml
+++ b/dev/tests/functional/tests/app/Magento/Wishlist/Test/etc/constraint.xml
@@ -6,30 +6,30 @@
-->
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
- low
+ low
diff --git a/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests.php b/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests.php
index 37512122ab9de..b9b75cf577c2f 100644
--- a/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests.php
+++ b/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests.php
@@ -96,12 +96,12 @@ private function initObjectManager()
? $_ENV['configuration:Mtf/TestSuite/InjectableTests']
: 'basic';
$confFilePath = __DIR__ . '/InjectableTests/' . $configurationFileName . '.xml';
- $testRunnerConfiguration = new Configuration();
+ /** @var \Mtf\TestRunner\Configuration $testRunnerConfiguration */
+ $testRunnerConfiguration = $objectManagerFactory->getObjectManager()->get('\Mtf\TestRunner\Configuration');
$testRunnerConfiguration->load($confFilePath);
+ $testRunnerConfiguration->loadEnvConfig();
- $shared = [
- 'Mtf\TestRunner\Configuration' => $testRunnerConfiguration,
- ];
+ $shared = ['Mtf\TestRunner\Configuration' => $testRunnerConfiguration];
$this->objectManager = $objectManagerFactory->create($shared);
}
}
diff --git a/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests/basic.xml b/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests/basic.xml
index 32fb471707c2d..045bf10e7ef22 100644
--- a/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests/basic.xml
+++ b/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests/basic.xml
@@ -6,10 +6,10 @@
-->
-
+
- Magento
- injectable
+
+
-
+
diff --git a/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests/installation.xml b/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests/installation.xml
new file mode 100644
index 0000000000000..e4d2fbca97b05
--- /dev/null
+++ b/dev/tests/functional/testsuites/Mtf/TestSuite/InjectableTests/installation.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
diff --git a/dev/tests/integration/framework/Magento/TestFramework/Annotation/Cache.php b/dev/tests/integration/framework/Magento/TestFramework/Annotation/Cache.php
new file mode 100644
index 0000000000000..d0962a6ba7fef
--- /dev/null
+++ b/dev/tests/integration/framework/Magento/TestFramework/Annotation/Cache.php
@@ -0,0 +1,131 @@
+getAnnotations();
+ if (isset($source['method']['magentoCache'])) {
+ $annotations = $source['method']['magentoCache'];
+ } elseif (isset($source['class']['magentoCache'])) {
+ $annotations = $source['class']['magentoCache'];
+ } else {
+ return;
+ }
+ $this->setValues($this->parseValues($annotations, $test), $test);
+ }
+
+ /**
+ * Handler for 'endTest' event
+ *
+ * @param \PHPUnit_Framework_TestCase $test
+ * @return void
+ */
+ public function endTest(\PHPUnit_Framework_TestCase $test)
+ {
+ if ($this->origValues) {
+ $this->setValues($this->origValues, $test);
+ $this->origValues = [];
+ }
+ }
+
+ /**
+ * Determines from docblock annotations which cache types to set
+ *
+ * @param array $annotations
+ * @param \PHPUnit_Framework_TestCase $test
+ * @return array
+ */
+ private function parseValues($annotations, \PHPUnit_Framework_TestCase $test)
+ {
+ $result = [];
+ $typeList = self::getTypeList();
+ foreach ($annotations as $subject) {
+ if (!preg_match('/^([a-z_]+)\s(enabled|disabled)$/', $subject, $matches)) {
+ self::fail("Invalid @magentoCache declaration: '{$subject}'", $test);
+ }
+ list(, $requestedType, $isEnabled) = $matches;
+ $isEnabled = $isEnabled == 'enabled' ? 1 : 0;
+ if ('all' === $requestedType) {
+ $result = [];
+ foreach ($typeList->getTypes() as $type) {
+ $result[$type['id']] = $isEnabled;
+ }
+ } else {
+ $result[$requestedType] = $isEnabled;
+ }
+ }
+ return $result;
+ }
+
+ /**
+ * Sets the values of cache types
+ *
+ * @param array $values
+ * @param \PHPUnit_Framework_TestCase $test
+ */
+ private function setValues($values, \PHPUnit_Framework_TestCase $test)
+ {
+ $typeList = self::getTypeList();
+ if (!$this->origValues) {
+ $this->origValues = [];
+ foreach ($typeList->getTypes() as $type => $row) {
+ $this->origValues[$type] = $row['status'];
+ }
+ }
+ /** @var \Magento\Framework\App\Cache\StateInterface $states */
+ $states = Bootstrap::getInstance()->getObjectManager()->get('Magento\Framework\App\Cache\StateInterface');
+ foreach ($values as $type => $isEnabled) {
+ if (!isset($this->origValues[$type])) {
+ self::fail("Unknown cache type specified: '{$type}' in @magentoCache", $test);
+ }
+ $states->setEnabled($type, $isEnabled);
+ }
+ }
+
+ /**
+ * Getter for cache types list
+ *
+ * @return \Magento\Framework\App\Cache\TypeListInterface
+ */
+ private static function getTypeList()
+ {
+ return Bootstrap::getInstance()->getObjectManager()->get('Magento\Framework\App\Cache\TypeListInterface');
+ }
+
+ /**
+ * Fails the test with specified error message
+ *
+ * @param string $message
+ * @param \PHPUnit_Framework_TestCase $test
+ * @throws \Exception
+ */
+ private static function fail($message, \PHPUnit_Framework_TestCase $test)
+ {
+ $test->fail("{$message} in the test '{$test->toString()}'");
+ throw new \Exception('The above line was supposed to throw an exception.');
+ }
+}
diff --git a/dev/tests/integration/framework/Magento/TestFramework/Annotation/ConfigFixture.php b/dev/tests/integration/framework/Magento/TestFramework/Annotation/ConfigFixture.php
index d1cf52c0ad8b6..f5bb55aa9639f 100644
--- a/dev/tests/integration/framework/Magento/TestFramework/Annotation/ConfigFixture.php
+++ b/dev/tests/integration/framework/Magento/TestFramework/Annotation/ConfigFixture.php
@@ -102,7 +102,8 @@ protected function _assignConfigData(\PHPUnit_Framework_TestCase $test)
if (preg_match('/^.+?(?=_store\s)/', $configPathAndValue, $matches)) {
/* Store-scoped config value */
$storeCode = $matches[0] != 'current' ? $matches[0] : null;
- list(, $configPath, $requiredValue) = preg_split('/\s+/', $configPathAndValue, 3);
+ $parts = preg_split('/\s+/', $configPathAndValue, 3);
+ list(, $configPath, $requiredValue) = $parts + ['', '', ''];
$originalValue = $this->_getConfigValue($configPath, $storeCode);
$this->_storeConfigValues[$storeCode][$configPath] = $originalValue;
$this->_setConfigValue($configPath, $requiredValue, $storeCode);
diff --git a/dev/tests/integration/framework/Magento/TestFramework/Bootstrap/DocBlock.php b/dev/tests/integration/framework/Magento/TestFramework/Bootstrap/DocBlock.php
index 58a551f8d54c1..f6fc10bb3c4d8 100644
--- a/dev/tests/integration/framework/Magento/TestFramework/Bootstrap/DocBlock.php
+++ b/dev/tests/integration/framework/Magento/TestFramework/Bootstrap/DocBlock.php
@@ -50,6 +50,7 @@ protected function _getSubscribers(\Magento\TestFramework\Application $applicati
new \Magento\TestFramework\Workaround\Cleanup\TestCaseProperties(),
new \Magento\TestFramework\Workaround\Cleanup\StaticProperties(),
new \Magento\TestFramework\Isolation\WorkingDirectory(),
+ new \Magento\TestFramework\Isolation\DeploymentConfig(),
new \Magento\TestFramework\Annotation\AppIsolation($application),
new \Magento\TestFramework\Event\Transaction(
new \Magento\TestFramework\EventManager(
@@ -60,6 +61,7 @@ protected function _getSubscribers(\Magento\TestFramework\Application $applicati
)
),
new \Magento\TestFramework\Annotation\AppArea($application),
+ new \Magento\TestFramework\Annotation\Cache($application),
new \Magento\TestFramework\Annotation\ConfigFixture(),
new \Magento\TestFramework\Annotation\AdminConfigFixture()
];
diff --git a/dev/tests/integration/framework/Magento/TestFramework/Isolation/DeploymentConfig.php b/dev/tests/integration/framework/Magento/TestFramework/Isolation/DeploymentConfig.php
new file mode 100644
index 0000000000000..fde5833296801
--- /dev/null
+++ b/dev/tests/integration/framework/Magento/TestFramework/Isolation/DeploymentConfig.php
@@ -0,0 +1,68 @@
+reader) {
+ $this->reader = Bootstrap::getObjectManager()->get('Magento\Framework\App\DeploymentConfig\Reader');
+ $this->config = $this->reader->load();
+ }
+ }
+
+ /**
+ * Checks if deployment configuration has been changed by a test
+ *
+ * Changing deployment configuration violates isolation between tests, so further tests may become broken.
+ * To fix this issue, find out why this test changes deployment configuration.
+ * If this is intentional, then it must be reverted to the previous state within the test.
+ * After that, the application needs to be wiped out and reinstalled.
+ *
+ * @param \PHPUnit_Framework_TestCase $test
+ * @return void
+ */
+ public function endTest(\PHPUnit_Framework_TestCase $test)
+ {
+ $config = $this->reader->load();
+ if ($this->config != $config) {
+ $error = "\n\nERROR: deployment configuration is corrupted. The application state is no longer valid.\n"
+ . 'Further tests may fail.'
+ . " This test failure may be misleading, if you are re-running it on a corrupted application.\n"
+ . $test->toString() . "\n";
+ $test->fail($error);
+ }
+ }
+}
diff --git a/dev/tests/integration/framework/Magento/TestFramework/Listener/ExtededTestdox.php b/dev/tests/integration/framework/Magento/TestFramework/Listener/ExtededTestdox.php
index 235601f391c82..a38db0245b70a 100644
--- a/dev/tests/integration/framework/Magento/TestFramework/Listener/ExtededTestdox.php
+++ b/dev/tests/integration/framework/Magento/TestFramework/Listener/ExtededTestdox.php
@@ -46,6 +46,11 @@ class ExtededTestdox extends \PHPUnit_Util_Printer implements \PHPUnit_Framework
*/
protected $incomplete = 0;
+ /**
+ * @var integer
+ */
+ protected $risky = 0;
+
/**
* @var string
*/
@@ -89,8 +94,8 @@ public function flush()
/**
* An error occurred.
*
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
+ * @param \PHPUnit_Framework_Test $test
+ * @param \Exception $e
* @param float $time
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
@@ -105,12 +110,12 @@ public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time)
/**
* A failure occurred.
*
- * @param PHPUnit_Framework_Test $test
- * @param PHPUnit_Framework_AssertionFailedError $e
+ * @param \PHPUnit_Framework_Test $test
+ * @param \PHPUnit_Framework_AssertionFailedError $e
* @param float $time
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
- public function addFailure(\PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
+ public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
{
if ($test instanceof $this->testTypeOfInterest) {
$this->testStatus = \PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE;
@@ -121,8 +126,8 @@ public function addFailure(\PHPUnit_Framework_Test $test, PHPUnit_Framework_Asse
/**
* Incomplete test.
*
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
+ * @param \PHPUnit_Framework_Test $test
+ * @param \Exception $e
* @param float $time
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
@@ -137,8 +142,8 @@ public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e,
/**
* Skipped test.
*
- * @param PHPUnit_Framework_Test $test
- * @param Exception $e
+ * @param \PHPUnit_Framework_Test $test
+ * @param \Exception $e
* @param float $time
* @since Method available since Release 3.0.0
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
@@ -151,10 +156,27 @@ public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $ti
}
}
+ /**
+ * Risky test.
+ *
+ * @param \PHPUnit_Framework_Test $test
+ * @param \Exception $e
+ * @param float $time
+ * @since Method available since Release 4.0.0
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function addRiskyTest(\PHPUnit_Framework_Test $test, \Exception $e, $time)
+ {
+ if ($test instanceof $this->testTypeOfInterest) {
+ $this->testStatus = \PHPUnit_Runner_BaseTestRunner::STATUS_RISKY;
+ $this->risky++;
+ }
+ }
+
/**
* A testsuite started.
*
- * @param PHPUnit_Framework_TestSuite $suite
+ * @param \PHPUnit_Framework_TestSuite $suite
* @since Method available since Release 2.2.0
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
@@ -165,7 +187,7 @@ public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
/**
* A testsuite ended.
*
- * @param PHPUnit_Framework_TestSuite $suite
+ * @param \PHPUnit_Framework_TestSuite $suite
* @since Method available since Release 2.2.0
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
@@ -176,7 +198,7 @@ public function endTestSuite(\PHPUnit_Framework_TestSuite $suite)
/**
* A test started.
*
- * @param PHPUnit_Framework_Test $test
+ * @param \PHPUnit_Framework_Test $test
*/
public function startTest(\PHPUnit_Framework_Test $test)
{
@@ -204,7 +226,7 @@ public function startTest(\PHPUnit_Framework_Test $test)
/**
* A test ended.
*
- * @param PHPUnit_Framework_Test $test
+ * @param \PHPUnit_Framework_Test $test
* @param float $time
*/
public function endTest(\PHPUnit_Framework_Test $test, $time)
diff --git a/dev/tests/integration/framework/Magento/TestFramework/Mail/Template/TransportBuilderMock.php b/dev/tests/integration/framework/Magento/TestFramework/Mail/Template/TransportBuilderMock.php
index 2d91bf268269f..cc8a08612d22d 100644
--- a/dev/tests/integration/framework/Magento/TestFramework/Mail/Template/TransportBuilderMock.php
+++ b/dev/tests/integration/framework/Magento/TestFramework/Mail/Template/TransportBuilderMock.php
@@ -24,7 +24,7 @@ protected function reset()
}
/**
- * Returns message object with prepared data
+ * Return message object with prepared data
*
* @return \Magento\Framework\Mail\Message|null
*/
@@ -32,4 +32,16 @@ public function getSentMessage()
{
return $this->_sentMessage;
}
+
+ /**
+ * Return transport mock.
+ *
+ * @return \Magento\TestFramework\Mail\TransportInterfaceMock
+ */
+ public function getTransport()
+ {
+ $this->prepareMessage();
+ $this->reset();
+ return new \Magento\TestFramework\Mail\TransportInterfaceMock();
+ }
}
diff --git a/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Config.php b/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Config.php
index fc1518c6e12ba..8660b2fa13202 100644
--- a/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Config.php
+++ b/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Config.php
@@ -4,14 +4,17 @@
*/
namespace Magento\TestFramework\ObjectManager;
-class Config extends \Magento\Framework\Interception\ObjectManager\Config
+class Config extends \Magento\Framework\Interception\ObjectManager\Config\Developer
{
/**
- * Clean configuration by recreating subject for proxy config
+ * Clean configuration
*/
public function clean()
{
- $className = get_class($this->subjectConfig);
- $this->subjectConfig = new $className();
+ $this->_preferences = [];
+ $this->_virtualTypes = [];
+ $this->_arguments = [];
+ $this->_nonShared = [];
+ $this->_mergedArguments = [];
}
}
diff --git a/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Environment/Developer.php b/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Environment/Developer.php
index 553e00bb87fc4..829515a373cca 100644
--- a/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Environment/Developer.php
+++ b/dev/tests/integration/framework/Magento/TestFramework/ObjectManager/Environment/Developer.php
@@ -10,10 +10,8 @@ public function getDiConfig()
{
if (!$this->config) {
$this->config = new \Magento\TestFramework\ObjectManager\Config(
- new \Magento\Framework\ObjectManager\Config\Config(
- $this->envFactory->getRelations(),
- $this->envFactory->getDefinitions()
- )
+ $this->envFactory->getRelations(),
+ $this->envFactory->getDefinitions()
);
}
diff --git a/dev/tests/integration/framework/Magento/TestFramework/Workaround/Cleanup/StaticProperties.php b/dev/tests/integration/framework/Magento/TestFramework/Workaround/Cleanup/StaticProperties.php
index e0e3654c36931..3a4d0cd0eef4e 100644
--- a/dev/tests/integration/framework/Magento/TestFramework/Workaround/Cleanup/StaticProperties.php
+++ b/dev/tests/integration/framework/Magento/TestFramework/Workaround/Cleanup/StaticProperties.php
@@ -15,7 +15,9 @@ class StaticProperties
*
* @var array
*/
- protected static $_cleanableFolders = ['/app/code/', '/dev/tests/', '/lib/internal/'];
+ protected static $_cleanableFolders = ['/app/code/', '/dev/tests/integration/framework', '/lib/internal/'];
+
+ protected static $backupStaticVariables = [];
/**
* Classes to exclude from static variables cleaning
@@ -29,6 +31,7 @@ class StaticProperties
'Magento\TestFramework\Event\Magento',
'Magento\TestFramework\Event\PhpUnit',
'Magento\TestFramework\Annotation\AppIsolation',
+ 'Magento\TestFramework\Workaround\Cleanup\StaticProperties',
'Magento\Framework\Phrase',
];
@@ -40,12 +43,7 @@ class StaticProperties
*/
protected static function _isClassCleanable(\ReflectionClass $reflectionClass)
{
- // 1. do not process php internal classes
- if ($reflectionClass->isInternal()) {
- return false;
- }
-
- // 2. do not process blacklisted classes from integration framework
+ // do not process blacklisted classes from integration framework
foreach (self::$_classesToSkip as $notCleanableClass) {
if ($reflectionClass->getName() == $notCleanableClass || is_subclass_of(
$reflectionClass->getName(),
@@ -55,45 +53,97 @@ protected static function _isClassCleanable(\ReflectionClass $reflectionClass)
return false;
}
}
+ return true;
+ }
- // 3. process only files from specific folders
- $fileName = $reflectionClass->getFileName();
-
- if ($fileName) {
- $fileName = str_replace('\\', '/', $fileName);
- foreach (self::$_cleanableFolders as $directory) {
- if (stripos($fileName, $directory) !== false) {
- return true;
- }
+ /**
+ * Check if class has to be backed up
+ *
+ * @param string $classFile
+ * @return bool
+ */
+ protected static function _isClassInCleanableFolders($classFile)
+ {
+ $classFile = str_replace('\\', '/', $classFile);
+ foreach (self::$_cleanableFolders as $directory) {
+ if (stripos($classFile, $directory) !== false) {
+ return true;
}
}
return false;
}
+
/**
- * Clear static variables (after running controller test case)
+ * Restore static variables (after running controller test case)
* @TODO: refactor all code where objects are stored to static variables to use object manager instead
*/
- public static function clearStaticVariables()
+ public static function restoreStaticVariables()
+ {
+ foreach (array_keys(self::$backupStaticVariables) as $class) {
+ $reflectionClass = new \ReflectionClass($class);
+ $staticProperties = $reflectionClass->getProperties(\ReflectionProperty::IS_STATIC);
+ foreach ($staticProperties as $staticProperty) {
+ $staticProperty->setAccessible(true);
+ $staticProperty->setValue(self::$backupStaticVariables[$class][$staticProperty->getName()]);
+ }
+ }
+ }
+
+ /**
+ * Backup static variables
+ *
+ */
+ public static function backupStaticVariables()
{
- $classes = get_declared_classes();
+ $classFiles = \Magento\Framework\Test\Utility\Files::init()->getClassFiles(true, true, false, true, false);
+ $namespacePattern = '/namespace [a-zA-Z0-9\\\\]+;/';
+ $classPattern = '/\nclass [a-zA-Z0-9_]+/';
+ foreach ($classFiles as $classFile) {
+ if (self::_isClassInCleanableFolders($classFile)) {
+ $file = @fopen($classFile, 'r');
+ $code = fread($file, 4096);
+ preg_match($namespacePattern, $code, $namespace);
+ preg_match($classPattern, $code, $class);
+ if (!isset($namespace[0]) || !isset($class[0])) {
+ fclose($file);
+ continue;
+ }
+ // trim namespace and class name
+ $namespace = substr($namespace[0], 10, strlen($namespace[0]) - 11);
+ $class = substr($class[0], 7, strlen($class[0]) - 7);
+ $className = $namespace . '\\' . $class;
- foreach ($classes as $class) {
- $reflectionCLass = new \ReflectionClass($class);
- if (self::_isClassCleanable($reflectionCLass)) {
- $staticProperties = $reflectionCLass->getProperties(\ReflectionProperty::IS_STATIC);
- foreach ($staticProperties as $staticProperty) {
- $staticProperty->setAccessible(true);
- $value = $staticProperty->getValue();
- if (is_object($value) || is_array($value) && is_object(current($value))) {
- $staticProperty->setValue(null);
+ try {
+ $reflectionClass = new \ReflectionClass($className);
+ } catch (\Exception $e) {
+ fclose($file);
+ continue;
+ }
+ if (self::_isClassCleanable($reflectionClass)) {
+ $staticProperties = $reflectionClass->getProperties(\ReflectionProperty::IS_STATIC);
+ foreach ($staticProperties as $staticProperty) {
+ $staticProperty->setAccessible(true);
+ $value = $staticProperty->getValue();
+ self::$backupStaticVariables[$className][$staticProperty->getName()] = $value;
}
- unset($value);
}
+ fclose($file);
}
}
}
+ /**
+ * Handler for 'startTestSuite' event
+ *
+ */
+ public function startTestSuite()
+ {
+ if (empty(self::$backupStaticVariables)) {
+ self::backupStaticVariables();
+ }
+ }
+
/**
* Handler for 'endTestSuite' event
*
@@ -109,7 +159,7 @@ public function endTestSuite(\PHPUnit_Framework_TestSuite $suite)
}
}
if ($clearStatics) {
- self::clearStaticVariables();
+ self::restoreStaticVariables();
}
}
}
diff --git a/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/RequestTest.php b/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/RequestTest.php
index 19d772d34ccfd..2d60675519cf4 100644
--- a/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/RequestTest.php
+++ b/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/RequestTest.php
@@ -17,7 +17,7 @@ protected function setUp()
$this->getMock('Magento\Framework\App\Route\ConfigInterface\Proxy', [], [], '', false),
$this->getMock('Magento\Framework\App\Request\PathInfoProcessorInterface', [], [], '', false),
$this->getMock('Magento\Framework\Stdlib\Cookie\CookieReaderInterface'),
- $this->getMock('Magento\Framework\App\Config\ReinitableConfigInterface')
+ $this->getMock('Magento\Framework\ObjectManagerInterface')
);
}
diff --git a/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/TestCase/ControllerAbstractTest.php b/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/TestCase/ControllerAbstractTest.php
index 145ce5f3e62ed..cf46839d580dc 100644
--- a/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/TestCase/ControllerAbstractTest.php
+++ b/dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/TestCase/ControllerAbstractTest.php
@@ -21,7 +21,7 @@ protected function setUp()
$this->getMock('Magento\Framework\App\Route\ConfigInterface\Proxy', [], [], '', false),
$this->getMock('Magento\Framework\App\Request\PathInfoProcessorInterface', [], [], '', false),
$this->getMock('Magento\Framework\Stdlib\Cookie\CookieReaderInterface'),
- $this->getMock('Magento\Framework\App\Config\ReinitableConfigInterface')
+ $this->getMock('Magento\Framework\ObjectManagerInterface')
);
$response = new \Magento\TestFramework\Response(
$this->getMock('Magento\Framework\Stdlib\CookieManagerInterface'),
diff --git a/dev/tests/integration/testsuite/Magento/AdminGws/Model/BlocksTest.php b/dev/tests/integration/testsuite/Magento/AdminGws/Model/BlocksTest.php
index c791799b2ba7b..93edda1aae439 100644
--- a/dev/tests/integration/testsuite/Magento/AdminGws/Model/BlocksTest.php
+++ b/dev/tests/integration/testsuite/Magento/AdminGws/Model/BlocksTest.php
@@ -50,7 +50,7 @@ public function testValidateCatalogPermissionsStoreGroups()
$this->dispatch('backend/catalog/category/edit/id/3');
$this->assertRegExp(
'/title\="New Permission"\s+type\="button"\s+' .
- 'class="action-\w*\s+scalable\s+delete\s+disabled\s+disabled"/',
+ 'class="action-\w*\s+scalable\s+delete(\s+disabled){2,}"/',
$this->getResponse()->getBody()
);
}
diff --git a/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/Cache/MassActionTest.php b/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/Cache/MassActionTest.php
new file mode 100644
index 0000000000000..205aeaaea81e2
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/Cache/MassActionTest.php
@@ -0,0 +1,142 @@
+get('Magento\Framework\App\DeploymentConfig');
+ $data = $config->getSegment(ConfigSegment::SEGMENT_KEY);
+ self::$typesSegment = new ConfigSegment($data);
+ }
+
+ protected function tearDown()
+ {
+ /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
+ $cacheState = Bootstrap::getObjectManager()->get('Magento\Framework\App\Cache\StateInterface');
+ foreach (self::$typesSegment->getData() as $type => $value) {
+ $cacheState->setEnabled($type, $value);
+ $cacheState->persist();
+ }
+ parent::tearDown();
+ }
+
+ /**
+ * @dataProvider massActionsDataProvider
+ * @param array $typesToEnable
+ */
+ public function testMassEnableAction($typesToEnable = [])
+ {
+ $this->setAll(false);
+
+ $this->getRequest()->setParams(['types' => $typesToEnable]);
+ $this->dispatch('backend/admin/cache/massEnable');
+
+ Bootstrap::getInstance()->reinitialize();
+
+ /** @var \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList */
+ $cacheTypeList = Bootstrap::getObjectManager()->get('Magento\Framework\App\Cache\TypeListInterface');
+ $types = array_keys($cacheTypeList->getTypes());
+ /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
+ $cacheState = Bootstrap::getObjectManager()->get('Magento\Framework\App\Cache\StateInterface');
+ foreach ($types as $type) {
+ if (in_array($type, $typesToEnable)) {
+ $this->assertTrue($cacheState->isEnabled($type), "Type '{$type}' has not been enabled");
+ } else {
+ $this->assertFalse($cacheState->isEnabled($type), "Type '{$type}' must remain disabled");
+ }
+ }
+ }
+
+ /**
+ * @dataProvider massActionsDataProvider
+ * @param array $typesToDisable
+ */
+ public function testMassDisableAction($typesToDisable = [])
+ {
+ $this->setAll(true);
+
+ $this->getRequest()->setParams(['types' => $typesToDisable]);
+ $this->dispatch('backend/admin/cache/massDisable');
+
+ Bootstrap::getInstance()->reinitialize();
+
+ /** @var \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList */
+ $cacheTypeList = Bootstrap::getObjectManager()->get('Magento\Framework\App\Cache\TypeListInterface');
+ $types = array_keys($cacheTypeList->getTypes());
+ /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
+ $cacheState = Bootstrap::getObjectManager()->get('Magento\Framework\App\Cache\StateInterface');
+ foreach ($types as $type) {
+ if (in_array($type, $typesToDisable)) {
+ $this->assertFalse($cacheState->isEnabled($type), "Type '{$type}' has not been disabled");
+ } else {
+ $this->assertTrue($cacheState->isEnabled($type), "Type '{$type}' must remain enabled");
+ }
+ }
+ }
+
+ /**
+ * Sets all cache types to enabled or disabled state
+ *
+ * @param bool $isEnabled
+ * @return void
+ */
+ private function setAll($isEnabled)
+ {
+ /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
+ $cacheState = Bootstrap::getObjectManager()->get('Magento\Framework\App\Cache\StateInterface');
+ foreach (array_keys(self::$typesSegment->getData()) as $type) {
+ $cacheState->setEnabled($type, $isEnabled);
+ }
+ $cacheState->persist();
+ }
+
+ /**
+ * @magentoDataFixture Magento/Backend/controllers/_files/cache/all_types_invalidated.php
+ * @dataProvider massActionsDataProvider
+ * @param array $typesToRefresh
+ */
+ public function testMassRefreshAction($typesToRefresh = [])
+ {
+ $this->getRequest()->setParams(['types' => $typesToRefresh]);
+ $this->dispatch('backend/admin/cache/massRefresh');
+
+ /** @var $cacheTypeList \Magento\Framework\App\Cache\TypeListInterface */
+ $cacheTypeList = Bootstrap::getObjectManager()->get('Magento\Framework\App\Cache\TypeListInterface');
+ $invalidatedTypes = array_keys($cacheTypeList->getInvalidated());
+ $failed = array_intersect($typesToRefresh, $invalidatedTypes);
+ $this->assertEmpty($failed, 'Could not refresh following cache types: ' . join(', ', $failed));
+ }
+
+ /**
+ * @return array
+ */
+ public function massActionsDataProvider()
+ {
+ return [
+ 'no types' => [[]],
+ 'existing types' => [
+ [
+ \Magento\Framework\App\Cache\Type\Config::TYPE_IDENTIFIER,
+ \Magento\Framework\App\Cache\Type\Layout::TYPE_IDENTIFIER,
+ \Magento\Framework\App\Cache\Type\Block::TYPE_IDENTIFIER
+ ]
+ ]
+ ];
+ }
+}
diff --git a/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/CacheTest.php b/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/CacheTest.php
index 9b3111a21cfca..c9cad685d772e 100644
--- a/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/CacheTest.php
+++ b/dev/tests/integration/testsuite/Magento/Backend/Controller/Adminhtml/CacheTest.php
@@ -15,10 +15,12 @@ class CacheTest extends \Magento\Backend\Utility\Controller
*/
public function testFlushAllAction()
{
- $this->dispatch('backend/admin/cache/flushAll');
-
/** @var $cache \Magento\Framework\App\Cache */
$cache = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\Framework\App\Cache');
+ $this->assertNotEmpty($cache->load('APPLICATION_FIXTURE'));
+
+ $this->dispatch('backend/admin/cache/flushAll');
+
/** @var $cachePool \Magento\Framework\App\Cache\Frontend\Pool */
$this->assertFalse($cache->load('APPLICATION_FIXTURE'));
@@ -56,98 +58,6 @@ public function testFlushSystemAction()
}
}
- /**
- * @magentoDataFixture Magento/Backend/controllers/_files/cache/all_types_disabled.php
- * @dataProvider massActionsDataProvider
- * @param array $typesToEnable
- */
- public function testMassEnableAction($typesToEnable = [])
- {
- $this->getRequest()->setParams(['types' => $typesToEnable]);
- $this->dispatch('backend/admin/cache/massEnable');
-
- /** @var \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList */
- $cacheTypeList = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
- 'Magento\Framework\App\Cache\TypeListInterface'
- );
- $types = array_keys($cacheTypeList->getTypes());
- /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
- $cacheState = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
- 'Magento\Framework\App\Cache\StateInterface'
- );
- foreach ($types as $type) {
- if (in_array($type, $typesToEnable)) {
- $this->assertTrue($cacheState->isEnabled($type), "Type '{$type}' has not been enabled");
- } else {
- $this->assertFalse($cacheState->isEnabled($type), "Type '{$type}' must remain disabled");
- }
- }
- }
-
- /**
- * @magentoDataFixture Magento/Backend/controllers/_files/cache/all_types_enabled.php
- * @dataProvider massActionsDataProvider
- * @param array $typesToDisable
- */
- public function testMassDisableAction($typesToDisable = [])
- {
- $this->getRequest()->setParams(['types' => $typesToDisable]);
- $this->dispatch('backend/admin/cache/massDisable');
-
- /** @var \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList */
- $cacheTypeList = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
- 'Magento\Framework\App\Cache\TypeListInterface'
- );
- $types = array_keys($cacheTypeList->getTypes());
- /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
- $cacheState = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
- 'Magento\Framework\App\Cache\StateInterface'
- );
- foreach ($types as $type) {
- if (in_array($type, $typesToDisable)) {
- $this->assertFalse($cacheState->isEnabled($type), "Type '{$type}' has not been disabled");
- } else {
- $this->assertTrue($cacheState->isEnabled($type), "Type '{$type}' must remain enabled");
- }
- }
- }
-
- /**
- * @magentoDataFixture Magento/Backend/controllers/_files/cache/all_types_invalidated.php
- * @dataProvider massActionsDataProvider
- * @param array $typesToRefresh
- */
- public function testMassRefreshAction($typesToRefresh = [])
- {
- $this->getRequest()->setParams(['types' => $typesToRefresh]);
- $this->dispatch('backend/admin/cache/massRefresh');
-
- /** @var $cacheTypeList \Magento\Framework\App\Cache\TypeListInterface */
- $cacheTypeList = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
- 'Magento\Framework\App\Cache\TypeListInterface'
- );
- $invalidatedTypes = array_keys($cacheTypeList->getInvalidated());
- $failed = array_intersect($typesToRefresh, $invalidatedTypes);
- $this->assertEmpty($failed, 'Could not refresh following cache types: ' . join(', ', $failed));
- }
-
- /**
- * @return array
- */
- public function massActionsDataProvider()
- {
- return [
- 'no types' => [[]],
- 'existing types' => [
- [
- \Magento\Framework\App\Cache\Type\Config::TYPE_IDENTIFIER,
- \Magento\Framework\App\Cache\Type\Layout::TYPE_IDENTIFIER,
- \Magento\Framework\App\Cache\Type\Block::TYPE_IDENTIFIER,
- ],
- ]
- ];
- }
-
/**
* @dataProvider massActionsInvalidTypesDataProvider
* @param $action
diff --git a/dev/tests/integration/testsuite/Magento/Backend/controllers/_files/cache/all_types_disabled.php b/dev/tests/integration/testsuite/Magento/Backend/controllers/_files/cache/all_types_disabled.php
deleted file mode 100644
index 32598d81153a1..0000000000000
--- a/dev/tests/integration/testsuite/Magento/Backend/controllers/_files/cache/all_types_disabled.php
+++ /dev/null
@@ -1,18 +0,0 @@
-create(
- 'Magento\Framework\App\Cache\TypeListInterface'
-);
-$types = array_keys($cacheTypeList->getTypes());
-
-/** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
-$cacheState = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
- ->get('Magento\Framework\App\Cache\StateInterface');
-foreach ($types as $type) {
- $cacheState->setEnabled($type, false);
-}
-$cacheState->persist();
diff --git a/dev/tests/integration/testsuite/Magento/Backend/controllers/_files/cache/all_types_enabled.php b/dev/tests/integration/testsuite/Magento/Backend/controllers/_files/cache/all_types_enabled.php
deleted file mode 100644
index f0e246d5e9422..0000000000000
--- a/dev/tests/integration/testsuite/Magento/Backend/controllers/_files/cache/all_types_enabled.php
+++ /dev/null
@@ -1,18 +0,0 @@
-create(
- 'Magento\Framework\App\Cache\TypeListInterface'
-);
-$types = array_keys($cacheTypeList->getTypes());
-
-/** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
-$cacheState = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
- ->get('Magento\Framework\App\Cache\StateInterface');
-foreach ($types as $type) {
- $cacheState->setEnabled($type, true);
-}
-$cacheState->persist();
diff --git a/dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/AttributeTest.php b/dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/AttributeTest.php
index c3a11018dfdec..c00942a7253b1 100644
--- a/dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/AttributeTest.php
+++ b/dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/AttributeTest.php
@@ -204,7 +204,6 @@ public function testSaveActionApplyToData()
/**
* @magentoDataFixture Magento/Translation/_files/db_translate_admin_store.php
- * @magentoDataFixture Magento/Backend/controllers/_files/cache/all_types_enabled.php
* @magentoDataFixture Magento/Catalog/controllers/_files/attribute_user_defined.php
* @magentoAppIsolation enabled
*/
diff --git a/dev/tests/integration/testsuite/Magento/Cms/Controller/PageTest.php b/dev/tests/integration/testsuite/Magento/Cms/Controller/PageTest.php
index f72544f76c94a..8ff3169659bb9 100644
--- a/dev/tests/integration/testsuite/Magento/Cms/Controller/PageTest.php
+++ b/dev/tests/integration/testsuite/Magento/Cms/Controller/PageTest.php
@@ -28,4 +28,27 @@ public function testAddBreadcrumbs()
$breadcrumbsBlock = $layout->getBlock('breadcrumbs');
$this->assertContains($breadcrumbsBlock->toHtml(), $this->getResponse()->getBody());
}
+
+ /**
+ * @magentoDataFixture cmsPageWithSystemRouteFixture
+ */
+ public function testCreatePageWithSameModuleName()
+ {
+ $this->dispatch('/shipping/');
+ $content = $this->getResponse()->getBody();
+ $this->assertContains('Shipping Test Page', $content);
+ }
+
+ public static function cmsPageWithSystemRouteFixture()
+ {
+ /** @var $page \Magento\Cms\Model\Page */
+ $page = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\Cms\Model\Page');
+ $page->setTitle('Test title')
+ ->setIdentifier('shipping')
+ ->setStores([0])
+ ->setIsActive(1)
+ ->setContent('