Skip to content

Commit

Permalink
test: update emissions form validation test. Fields are initially valid
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Apr 13, 2020
1 parent 43245cb commit 57eb105
Showing 1 changed file with 2 additions and 144 deletions.
146 changes: 2 additions & 144 deletions app/cypress/integration/application-form-validation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,153 +135,11 @@ describe('When reviewing a submitted application as an analyst', () => {
cy.get(':nth-child(2) > .nav-link').click();
cy.contains('Continue').click();
// General Stationary Combustion - 5
cy.get('#root_sourceTypes_0_gases_0_annualEmission').clear();
cy.get(
'#root_sourceTypes_0_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_0_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_0_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_0_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_0_gases_4_annualEmission +div .error-detail'
).contains('should be number');
// Industrial Process - 8
cy.get(
'#root_sourceTypes_1_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_1_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_1_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_1_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_1_gases_4_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_1_gases_5_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_1_gases_6_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_1_gases_7_annualEmission +div .error-detail'
).contains('should be number');
// Venting - 5
cy.get(
'#root_sourceTypes_2_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_2_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_2_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_2_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_2_gases_4_annualEmission +div .error-detail'
).contains('should be number');
// Flaring - 5
cy.get(
'#root_sourceTypes_3_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_3_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_3_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_3_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_3_gases_4_annualEmission +div .error-detail'
).contains('should be number');
// Fugitive - 8
cy.get(
'#root_sourceTypes_4_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_4_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_4_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_4_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_4_gases_4_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_4_gases_5_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_4_gases_6_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_4_gases_7_annualEmission +div .error-detail'
).contains('should be number');
// On-Site Transportation - 5
cy.get(
'#root_sourceTypes_5_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_5_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_5_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_5_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_5_gases_4_annualEmission +div .error-detail'
).contains('should be number');
// Waste - 5
cy.get(
'#root_sourceTypes_6_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_6_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_6_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_6_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_6_gases_4_annualEmission +div .error-detail'
).contains('should be number');
cy.percySnapshot('emission');
// Wastewater - 5
cy.get(
'#root_sourceTypes_7_gases_0_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_7_gases_1_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_7_gases_2_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_7_gases_3_annualEmission +div .error-detail'
).contains('should be number');
cy.get(
'#root_sourceTypes_7_gases_4_annualEmission +div .error-detail'
).contains('should be number');
cy.percySnapshot('emission');
cy.percySnapshot('Emissions form');

// Fuel Form
cy.get(':nth-child(3) > .nav-link').click();
Expand Down

0 comments on commit 57eb105

Please sign in to comment.