Skip to content

Commit 000abd1

Browse files
committed
Feature test all types of accounts
1 parent b176a66 commit 000abd1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

features/account.feature

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ Feature: Accounts
99
Given I want to add a new asset account "Cash"
1010
When I add the new account
1111
Then I should have an asset account called "Cash"
12+
13+
Scenario: Adding a new expense account
14+
Given I want to add a new expense account "Groceries"
15+
When I add the new account
16+
Then I should have an expense account called "Groceries"
17+
18+
Scenario: Adding a new income account
19+
Given I want to add a new income account "Salaries"
20+
When I add the new account
21+
Then I should have an income account called "Salaries"

tests/PerFiIntegrationTest/AccountContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function iAddTheNewAccount()
4545
public function iShouldHaveAnAccountCalled($type, $title)
4646
{
4747
$this->visitPath('/accounts');
48-
$this->getSession()->wait(5000, "document.getElementById('accounts-table-".$type."').innerHTML != ''");
48+
$this->getSession()->wait(10000, "document.getElementById('accounts-table-".$type."').innerHTML != ''");
4949
$this->assertPageContainsText('Cash');
5050
}
5151
}

0 commit comments

Comments
 (0)