-
Notifications
You must be signed in to change notification settings - Fork 0
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
12 changed files
with
449 additions
and
76 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 |
---|---|---|
|
@@ -25,3 +25,6 @@ yarn-error.log* | |
|
||
# parcel | ||
.parcel-cache | ||
|
||
# cypress | ||
cypress/videos/*.mp4 |
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 @@ | ||
_ |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
CHANGED=$(git diff "$1" "$2" --stat -- ./yarn.lock | wc -l) | ||
if (( CHANGED > 0 )); then | ||
echo "📦 yarn.lock changed. Run yarn install to bring your dependencies up to date." | ||
fi |
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,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx git-branch-is --not main | ||
npx lint-staged |
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,54 @@ | ||
/// <reference types="Cypress" /> | ||
|
||
describe('template spec', () => { | ||
it('passes', () => { | ||
cy.visit('http://localhost:1234/rhode-island.html'); | ||
cy.get('rewiring-america-state-calculator').should('exist'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains('Your household info'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.find('input#zip') | ||
.type('02859{enter}'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains('Incentives available to you in Rhode Island'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.find('select#utility') | ||
.should("exist"); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains("Incentives you're interested in"); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains('$8,000 off a heat pump'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains('$1,250/ton off a heat pump'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains('$350/ton off a heat pump'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains('30% of cost of geothermal heating installation'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains('$2,000 off a heat pump'); | ||
|
||
cy.get('rewiring-america-state-calculator') | ||
.shadow() | ||
.contains("Other incentives available to you"); | ||
}); | ||
}); |
Binary file not shown.
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
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
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
Oops, something went wrong.