Skip to content

Commit

Permalink
Preview pagination josdejong#27 (josdejong#46)
Browse files Browse the repository at this point in the history
* specify exact way to table

* Had to pause for wait on login

Co-authored-by: Aleksey Gerasimov <[email protected]>
  • Loading branch information
anzud and starostin13 committed May 12, 2020
1 parent 2d2b649 commit 566b4b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/features/previewModalWindow.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ Feature: Modal window with preview of output document
Because I want to be sure that data processed corretly

Background:
Given I open the url "https://dash-staging.accumatic.com/sign-out"
When I pause for 1000ms
Then I wait on element "form.dash-form" for 5000ms to be displayed
When I open the url "https://dash-staging.accumatic.com/sign-in"
When I set "beepbeep" to the inputfield "#dash-form-field-password"
When I set "[email protected]" to the inputfield "#dash-form-field-email"
And I press "Enter"
Given I authorized as Dealer

@Verbose
Scenario: Able to switch page of items
Then I wait on element "div.job-item" for 2000ms to be displayed
When I click on the element "div.job-item"
Then I wait on element "a.preview-icon-wrapper" for 2000ms to be displayed
When I click on the element "a.preview-icon-wrapper"
Then I wait on element "div.header-block.header-block-right img.close-button"
When I click on the element "div.dealertrack-preview-table div.select"
And I click on the element "div.dealertrack-preview-table div.select div[class*='-menu'] div[class*='-option']"
When I click on the element "div.dealertrack-preview-table div.pagination-wrapper a:nth-child(4)"
Then I expect that element "div.dealertrack-preview-table div.table-wrapper table tbody tr:nth-child(2) td.cell.read-only span.value-viewer" matches the text "11"

@Verbose
Scenario: Able to close preview modal window
Expand Down
1 change: 1 addition & 0 deletions src/support/action/authorizationOrSkip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export function authorizationOrSkip(role: 'Dealer' | 'Administrator'): void {
browser.pause(1000);
const currentUrl = browser.getUrl();
if (currentUrl.includes('jobs')) {
$('div.name')['waitForExist'](5000, false);
return;
}

Expand Down

0 comments on commit 566b4b1

Please sign in to comment.