Working on tests

This commit is contained in:
Bob den Otter
2019-01-19 09:37:31 +01:00
parent c35e2a3932
commit 508d3f41ba
3 changed files with 6 additions and 7 deletions
+2 -4
View File
@@ -1,9 +1,7 @@
Feature: Visiting Dashboard
@wip
Scenario: As an admin I want to see Dashboard page
Given I am logged in as "admin"
When I visit the "dashboard" page
Then there is element "header" with text "Dashboard"
And the "rows" element is visible
And there are "equal 5" "rows" elements
And there are "equal 6" "records" elements
And the "first_record" element is visible
+2 -2
View File
@@ -1,8 +1,8 @@
Feature: Record listing
Scenario: As an Admin I want to navigate over record listing
Given I am logged in as "admin"
When I visit the "pages_overview" page
And I click the "pager_next" element
Then I wait for "record_title" element to appear
Then I wait for "record_title" element to appear
+2 -1
View File
@@ -8,7 +8,8 @@ class DashboardPage extends BasePage {
this.profile_text = $('#toolbar .is-profile');
this.header = $('.admin__header--title strong');
this.rows = $('.listing__row');
this.records = element.all(by.css('.listing__row'));
this.first_record = element(by.css('.listing__row'));
}
}