Skip to content

Commit

Permalink
Add scenario (josdejong#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksey Gerasimov <[email protected]>
  • Loading branch information
anzud and starostin13 authored May 14, 2020
1 parent b4787b0 commit da83d5f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/features/job-page.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,19 @@ Feature: Page of the job
And I expect that element "div.job-details div.job-documents-wrapper p" matches the text "Creator: [email protected]"
And I expect that element "div.division-item div.division-item-name a" matches the text "101 - Bud Clary Chevrolet Subaru"

@Verbose
Scenario: Button for rerun and delete job is exist
Then I wait on element "label.file-upload-button" for 2000ms to be displayed
When I upload file
Then I wait on element "div.info-box.success div.info-box-content a:nth-child(2)" for 10000ms to be displayed
And I expect that element "div.info-box.success div.info-box-content a:nth-child(3)" does exist
And I expect that button "div.info-box.success div.info-box-content a:nth-child(2)" contains the text "RERUN"
And I expect that button "div.info-box.success div.info-box-content a:nth-child(3)" contains the text "DELETE DOCUMENTS"

@Verbose
Scenario: Product table is showed
Then I wait on element "label.file-upload-button" for 3000ms to be displayed
When I upload "dump-input-gm-warranty.txt" file
Then I wait on element "table.data-grid.table-datasheet" for 10000ms to be displayed
And I expect that element "table.data-grid.table-datasheet tbody tr:nth-child(2) td:nth-child(2)" does exist
And I expect that element "table.data-grid.table-datasheet tbody tr:nth-child(2) td:nth-child(2)" is not empty
And I expect that element "table.data-grid.table-datasheet tbody tr:nth-child(2) td:nth-child(2)" is not empty

0 comments on commit da83d5f

Please sign in to comment.