From edbed07a630d92c4918362d2b5b686ea45bdd66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Klatt?= Date: Fri, 29 Jul 2016 08:42:44 +0000 Subject: [PATCH] Update tests, fixed small things --- codeception.yml | 4 ++-- tests/Acceptance.suite.yml | 2 +- .../Zed/PageObject/TaxRateCreatePage.php | 18 +++++++-------- .../Zed/PageObject/TaxRateListPage.php | 2 +- .../{Taxes => Tax}/Zed/TaxRateCreateCest.php | 22 +++++++++---------- .../Zed/Tester/TaxRateTester.php | 6 ++--- tests/_output/.gitkeep | 0 7 files changed, 27 insertions(+), 27 deletions(-) rename tests/Acceptance/{Taxes => Tax}/Zed/PageObject/TaxRateCreatePage.php (80%) rename tests/Acceptance/{Taxes => Tax}/Zed/PageObject/TaxRateListPage.php (92%) rename tests/Acceptance/{Taxes => Tax}/Zed/TaxRateCreateCest.php (84%) rename tests/Acceptance/{Taxes => Tax}/Zed/Tester/TaxRateTester.php (96%) delete mode 100644 tests/_output/.gitkeep diff --git a/codeception.yml b/codeception.yml index 0fb20873d..04b70ac73 100644 --- a/codeception.yml +++ b/codeception.yml @@ -1,7 +1,7 @@ actor: Tester -include: - - vendor/spryker/spryker/Bundles/* +#include: +# - vendor/spryker/spryker/Bundles/* paths: tests: tests diff --git a/tests/Acceptance.suite.yml b/tests/Acceptance.suite.yml index e95eedff4..bbb2a6d50 100644 --- a/tests/Acceptance.suite.yml +++ b/tests/Acceptance.suite.yml @@ -3,7 +3,7 @@ modules: enabled: - WebDriver: url: '' - browser: phantomjs + browser: chrome - \Application\Module\Yves - \Application\Module\Zed - Cli diff --git a/tests/Acceptance/Taxes/Zed/PageObject/TaxRateCreatePage.php b/tests/Acceptance/Tax/Zed/PageObject/TaxRateCreatePage.php similarity index 80% rename from tests/Acceptance/Taxes/Zed/PageObject/TaxRateCreatePage.php rename to tests/Acceptance/Tax/Zed/PageObject/TaxRateCreatePage.php index af7e3d111..d41c3c9ec 100644 --- a/tests/Acceptance/Taxes/Zed/PageObject/TaxRateCreatePage.php +++ b/tests/Acceptance/Tax/Zed/PageObject/TaxRateCreatePage.php @@ -5,7 +5,7 @@ * For full license information, please view the LICENSE file that was distributed with this source code. */ -namespace Acceptance\Taxes\Zed\PageObject; +namespace Acceptance\Tax\Zed\PageObject; class TaxRateCreatePage { @@ -20,14 +20,14 @@ class TaxRateCreatePage const ERROR_MESSAGE_COUNTRY_SHOULD_NOT_BE_BLANK = 'Select country.'; const ERROR_MESSAGE_PERCENTAGE_SHOULD_BE_VALID_NUMBER = 'This value should be a valid number.'; const ERROR_MESSAGE_TAX_RATE_ALREADY_EXISTS = 'Tax rate with provided name, percentage and country already exists.'; - const MESSAGE_SUCCESSFUL_ALERT_UPDATE = 'Tax rate succesfully updated.'; + const MESSAGE_SUCCESSFUL_ALERT_UPDATE = 'Tax rate successfully updated.'; const SELECTOR_NAME = '#tax_rate_name'; const SELECTOR_COUNTRY = '#tax_rate_fkCountry'; const SELECTOR_PERCENTAGE = '#tax_rate_rate'; const SELECTOR_DELETE_FROM_EDIT = 'i.fa.fa-trash'; - const SELECTOR_SAVE = "input.btn.btn-primary"; + const SELECTOR_SAVE = 'input.btn.btn-primary'; const SELECTOR_LIST_OF_TASK_RATES_BUTTON = 'List of tax rates'; @@ -41,8 +41,8 @@ class TaxRateCreatePage */ public static $taxRateData = [ self::TAX_RATE_VALID => [ - 'name' => 'Ukraine Standard', - 'country' => 'Ukraine', + 'name' => 'Acceptance Standard', + 'country' => 'Germany', 'percentage' => '5', ], self::TAX_RATE_INVALID => [ @@ -51,13 +51,13 @@ class TaxRateCreatePage 'percentage' => 'test', ], self::TAX_RATE_VALID_NOT_CREATED => [ - 'name' => 'Ukraine Standard Not Created', - 'country' => 'Ukraine', + 'name' => 'Acceptance Standard Not Created', + 'country' => 'Germany', 'percentage' => '5', ], self::TAX_RATE_VALID_EDITED => [ - 'name' => 'Ukraine Standard Edited', - 'country' => 'Ukraine', + 'name' => 'Acceptance Standard Edited', + 'country' => 'Germany', 'percentage' => '10', ] ]; diff --git a/tests/Acceptance/Taxes/Zed/PageObject/TaxRateListPage.php b/tests/Acceptance/Tax/Zed/PageObject/TaxRateListPage.php similarity index 92% rename from tests/Acceptance/Taxes/Zed/PageObject/TaxRateListPage.php rename to tests/Acceptance/Tax/Zed/PageObject/TaxRateListPage.php index b96c50760..3ad8b73b2 100644 --- a/tests/Acceptance/Taxes/Zed/PageObject/TaxRateListPage.php +++ b/tests/Acceptance/Tax/Zed/PageObject/TaxRateListPage.php @@ -5,7 +5,7 @@ * For full license information, please view the LICENSE file that was distributed with this source code. */ -namespace Acceptance\Taxes\Zed\PageObject; +namespace Acceptance\Tax\Zed\PageObject; class TaxRateListPage { diff --git a/tests/Acceptance/Taxes/Zed/TaxRateCreateCest.php b/tests/Acceptance/Tax/Zed/TaxRateCreateCest.php similarity index 84% rename from tests/Acceptance/Taxes/Zed/TaxRateCreateCest.php rename to tests/Acceptance/Tax/Zed/TaxRateCreateCest.php index 77b9b05c5..cd3c02f2d 100644 --- a/tests/Acceptance/Taxes/Zed/TaxRateCreateCest.php +++ b/tests/Acceptance/Tax/Zed/TaxRateCreateCest.php @@ -5,11 +5,11 @@ * For full license information, please view the LICENSE file that was distributed with this source code. */ -namespace Acceptance\Taxes\Zed; +namespace Acceptance\Tax\Zed; -use Acceptance\Taxes\Zed\PageObject\TaxRateCreatePage; -use Acceptance\Taxes\Zed\PageObject\TaxRateListPage; -use Acceptance\Taxes\Zed\Tester\TaxRateTester; +use Acceptance\Tax\Zed\PageObject\TaxRateCreatePage; +use Acceptance\Tax\Zed\PageObject\TaxRateListPage; +use Acceptance\Tax\Zed\Tester\TaxRateTester; /** * @group Acceptance @@ -24,7 +24,7 @@ class TaxRateCreateCest * @group Overview * @group Smoke * - * @param \Acceptance\Taxes\Zed\Tester\TaxRateTester $i + * @param \Acceptance\Tax\Zed\Tester\TaxRateTester $i * * @return void */ @@ -42,7 +42,7 @@ public function testCreateValidTaxRateShouldShowSuccessMessage(TaxRateTester $i) /** * @group Overview * - * @param \Acceptance\Taxes\Zed\Tester\TaxRateTester $i + * @param \Acceptance\Tax\Zed\Tester\TaxRateTester $i * * @return void */ @@ -58,14 +58,14 @@ public function testCreateInvalidTaxRateShouldShowErrorMessages(TaxRateTester $i /** * @group Overview * - * @param \Acceptance\Taxes\Zed\Tester\TaxRateTester $i + * @param \Acceptance\Tax\Zed\Tester\TaxRateTester $i * * @return void */ public function testBackToListOfTaskRatesShouldOpenTaxRateListPageWithoutSaving(TaxRateTester $i) { - $i->wantTo('Create valid tax rate and back to list of task rates'); - $i->expect('List of task rates is opened, task rate is not created'); + $i->wantTo('Create valid tax rate and back to list of tax rates'); + $i->expect('List of tax rates is opened, tax rate is not created'); $i->createTaxRateWithoutSaving(TaxRateCreatePage::TAX_RATE_VALID_NOT_CREATED); $i->click(TaxRateCreatePage::SELECTOR_LIST_OF_TASK_RATES_BUTTON); @@ -80,7 +80,7 @@ public function testBackToListOfTaskRatesShouldOpenTaxRateListPageWithoutSaving( /** * @group Overview * - * @param \Acceptance\Taxes\Zed\Tester\TaxRateTester $i + * @param \Acceptance\Tax\Zed\Tester\TaxRateTester $i * * @return void */ @@ -102,7 +102,7 @@ public function testCreateTaxRateWhichAlreadyExistsShouldShowErrorMessage(TaxRat /** * @group Overview * - * @param \Acceptance\Taxes\Zed\Tester\TaxRateTester $i + * @param \Acceptance\Tax\Zed\Tester\TaxRateTester $i * * @return void */ diff --git a/tests/Acceptance/Taxes/Zed/Tester/TaxRateTester.php b/tests/Acceptance/Tax/Zed/Tester/TaxRateTester.php similarity index 96% rename from tests/Acceptance/Taxes/Zed/Tester/TaxRateTester.php rename to tests/Acceptance/Tax/Zed/Tester/TaxRateTester.php index 4cc9d40fa..0fda4aaec 100644 --- a/tests/Acceptance/Taxes/Zed/Tester/TaxRateTester.php +++ b/tests/Acceptance/Tax/Zed/Tester/TaxRateTester.php @@ -5,10 +5,10 @@ * For full license information, please view the LICENSE file that was distributed with this source code. */ -namespace Acceptance\Taxes\Zed\Tester; +namespace Acceptance\Tax\Zed\Tester; -use Acceptance\Taxes\Zed\PageObject\TaxRateCreatePage; -use Acceptance\Taxes\Zed\PageObject\TaxRateListPage; +use Acceptance\Tax\Zed\PageObject\TaxRateCreatePage; +use Acceptance\Tax\Zed\PageObject\TaxRateListPage; use Orm\Zed\Tax\Persistence\SpyTaxRateQuery; class TaxRateTester extends \ZedAcceptanceTester diff --git a/tests/_output/.gitkeep b/tests/_output/.gitkeep deleted file mode 100644 index e69de29bb..000000000