Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Commit

Permalink
Update tests, fixed small things
Browse files Browse the repository at this point in the history
  • Loading branch information
stereomon committed Jul 29, 2016
1 parent e825624 commit edbed07
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
actor: Tester

include:
- vendor/spryker/spryker/Bundles/*
#include:
# - vendor/spryker/spryker/Bundles/*

paths:
tests: tests
Expand Down
2 changes: 1 addition & 1 deletion tests/Acceptance.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ modules:
enabled:
- WebDriver:
url: ''
browser: phantomjs
browser: chrome
- \Application\Module\Yves
- \Application\Module\Zed
- Cli
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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';

Expand All @@ -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 => [
Expand All @@ -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',
]
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand All @@ -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);
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file removed tests/_output/.gitkeep
Empty file.

0 comments on commit edbed07

Please sign in to comment.