This repository has been archived by the owner on Feb 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
221 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#https://github.com/cfpb/hmda-pilot/issues/122 | ||
#https://github.com/cfpb/hmda-pilot/issues/165 | ||
#https://github.com/cfpb/hmda-pilot/issues/166 | ||
|
||
Feature: User has to provide verification for all quality errors, MSA, and Q029 edit errors | ||
As a user | ||
I want to verify all quality errors, MSA, and Q029 edit errors | ||
So that I have can submit my verified .dat file for completion | ||
|
||
Scenario: Confirming inability to complete without verification of quality edit errors | ||
Given that I am at the HMDA homepage | ||
When I upload the 'quality/Q001.dat' file for validation | ||
And I click the submit button | ||
And I continue to the quality and macro edit reports page | ||
Then I am unable to continue to the next page | ||
|
||
Scenario: Verifying quality edit errors | ||
Given that I am at the HMDA homepage | ||
When I upload the 'quality/Q001.dat' file for validation | ||
And I click the submit button | ||
And I continue to the quality and macro edit reports page | ||
And I correct all quality errors | ||
And I correct all macro errors | ||
Then I can continue to the next page | ||
|
||
Scenario: Verifying Q595 edit errors | ||
Given that I am at the HMDA homepage | ||
When I upload the 'Q595.dat' file for validation | ||
And I click the submit button | ||
And I continue through the quality macro errors page | ||
And I click on the 'Q595' report link | ||
And I correct all report errors | ||
Then I can continue to the IRS report | ||
|
||
Scenario: Verifying Q029 edit errors | ||
Given that I am at the HMDA homepage | ||
When I upload the 'Q029.dat' file for validation | ||
And I click the submit button | ||
And I continue to the msa and irs edit reports page | ||
And I click on the 'Q029' report link | ||
And I correct all report errors | ||
Then I can continue to the IRS report | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,50 @@ | ||
#https://github.com/cfpb/hmda-pilot/issues/155 | ||
|
||
@wip | ||
Feature: Display edit validation steps using a wizard | ||
As a user | ||
I want to see the steps involved in validating my HMDA file | ||
So that I know what is coming next | ||
So that I know what is coming next and can navigate backwards to any step in the wizard | ||
|
||
Scenario: Receive electronic report | ||
Scenario: Navigate from syntactical page | ||
Given that I am at the HMDA homepage | ||
When I upload the 'quality/q001.dat' file for validation | ||
When I click the localDB storage option | ||
And I upload the 'perfect.dat' file for validation | ||
And I click the submit button | ||
And I continue to the syntactical and validity edit reports page | ||
Then I see a navigation wizard | ||
And I can reset my session by clicking on the 'Select File' Tab | ||
|
||
Scenario: Navigate from quality page | ||
Given that I am at the HMDA homepage | ||
When I click the localDB storage option | ||
And I upload the 'perfect.dat' file for validation | ||
And I click the submit button | ||
And I continue to the quality and macro edit reports page | ||
Then I see a navigation wizard | ||
And I can navigate to the 'summarySyntacticalValidity' page by clicking the 'Syntactical & validity edit reports' Tab | ||
And I can reset my session by clicking on the 'Select File' Tab | ||
|
||
Scenario: Navigate from msa and irs page | ||
Given that I am at the HMDA homepage | ||
When I click the localDB storage option | ||
And I upload the 'perfect.dat' file for validation | ||
And I click the submit button | ||
And I continue to the msa and irs edit reports page | ||
Then I see a navigation wizard | ||
And I can navigate to the 'summaryQualityMacro' page by clicking the 'Quality & macro edit reports' Tab | ||
And I can navigate to the 'summarySyntacticalValidity' page by clicking the 'Syntactical & validity edit reports' Tab | ||
And I can reset my session by clicking on the 'Select File' Tab | ||
|
||
Scenario: Navigate from validation summary page | ||
Given that I am at the HMDA homepage | ||
When I click the localDB storage option | ||
And I upload the 'perfect.dat' file for validation | ||
And I click the submit button | ||
And I continue to the msa and irs edit reports page | ||
And I click on the 'IRS' report link | ||
And I verify the 'IRS' report and continue | ||
Then I see a navigation wizard | ||
And I can navigate to the 'summaryMSA-IRS' page by clicking the 'MSA and IRS reports' Tab | ||
And I can navigate to the 'summaryQualityMacro' page by clicking the 'Quality & macro edit reports' Tab | ||
And I can navigate to the 'summarySyntacticalValidity' page by clicking the 'Syntactical & validity edit reports' Tab | ||
And I can reset my session by clicking on the 'Select File' Tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
test/functional/cucumber/step_definitions/errorVerification.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* jshint expr:true, -W079 */ | ||
'use strict'; | ||
|
||
var chai = require('chai'), | ||
expect = chai.expect, | ||
chaiAsPromised = require('chai-as-promised'); | ||
|
||
chai.use(chaiAsPromised); | ||
|
||
module.exports = function() { | ||
this.Then(/^I am unable to continue to the next page$/, function(next) { | ||
element.all(by.css('.btn__disabled')).then(function(continueButton) { | ||
continueButton[0].getText().then(function(text) { | ||
expect(text).is.equal('Continue'); | ||
next(); | ||
}); | ||
}); | ||
}); | ||
|
||
this.Then(/^I can continue to the next page$/, function(next) { | ||
element.all(by.css('.btn__disabled')).count().then(function(count) { | ||
expect(count).is.equal(0); | ||
next(); | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* jshint expr:true, -W079 */ | ||
'use strict'; | ||
|
||
var chai = require('chai'), | ||
expect = chai.expect, | ||
chaiAsPromised = require('chai-as-promised'); | ||
|
||
chai.use(chaiAsPromised); | ||
|
||
module.exports = function() { | ||
this.Then(/^I see a navigation wizard$/, function(next) { | ||
expect(element(by.css('.step')).isPresent()).to.eventually.be.true.notify(next); | ||
}); | ||
|
||
this.Then(/^I can reset my session by clicking on the 'Select File' Tab$/, function(next) { | ||
element.all(by.css('.step-title')).filter(function(step) { | ||
return step.getText().then(function(stepTitle) { | ||
return (stepTitle === 'Select file & validate'); | ||
}); | ||
}).then(function(selectFileStep) { | ||
selectFileStep[0].click(); | ||
expect(element(by.css('.btn__warning')).isPresent()).to.eventually.be.true.notify(next); | ||
}); | ||
}); | ||
|
||
this.Then(/^I can navigate to the '([^']*)' page by clicking the '([^']*)' Tab$/, function(pageUrl, targetStepTitle, next) { | ||
element.all(by.css('.step-title')).filter(function(step) { | ||
return step.getText().then(function(stepTitle) { | ||
return (stepTitle === targetStepTitle); | ||
}); | ||
}).then(function(selectFileStep) { | ||
selectFileStep[0].click(); | ||
browser.getCurrentUrl().then(function(url) { | ||
var targetUrl = browser.baseUrl + '#/' + pageUrl; | ||
expect(url).to.equal(targetUrl); | ||
next(); | ||
}); | ||
}); | ||
}); | ||
}; |