mirror of
https://github.com/jbcr/core.git
synced 2026-04-29 03:33:24 +02:00
Working on tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user