From 0919357aa582a54e1e40637cadc42ad4071296b7 Mon Sep 17 00:00:00 2001 From: Veekas Ashoka <3917726+veekas@users.noreply.github.com> Date: Thu, 19 Sep 2024 13:59:07 -0400 Subject: [PATCH 1/3] Exclude RI HEAR Rebates --- src/ira-rebates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ira-rebates.ts b/src/ira-rebates.ts index 36759fd..5f8093a 100644 --- a/src/ira-rebates.ts +++ b/src/ira-rebates.ts @@ -59,7 +59,7 @@ const hearRebates: { * As states launch their HEAR and HER programs, we'll want to stop showing this * generic info to users in those states. */ -const HEAR_EXCLUDE_STATES = new Set(['NY']); +const HEAR_EXCLUDE_STATES = new Set(['NY', 'RI']); const HER_EXCLUDE_STATES = new Set(['ME', 'WI']); export function getRebatesFor(response: APIResponse, msg: MsgFn): IRARebate[] { From f54cea365ccb2b80a1c4ffd73c1efd43d7df541f Mon Sep 17 00:00:00 2001 From: Veekas Ashoka <3917726+veekas@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:24:43 -0400 Subject: [PATCH 2/3] update test (broken until API change is released) --- cypress/e2e/state-calculator.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/state-calculator.cy.ts b/cypress/e2e/state-calculator.cy.ts index 0b731dd..5ce4057 100644 --- a/cypress/e2e/state-calculator.cy.ts +++ b/cypress/e2e/state-calculator.cy.ts @@ -61,7 +61,7 @@ describe('rewiring-america-state-calculator', () => { cy.get('rewiring-america-state-calculator') .shadow() - .contains('Discount off a heat pump'); + .contains('Up to $1,840 off a heat pump'); // Reflects RI's HEAR implementation cy.get('rewiring-america-state-calculator') .shadow() From 8b0a94192f8a516d9ac77be36b80c48a03ebabf8 Mon Sep 17 00:00:00 2001 From: Veekas Ashoka <3917726+veekas@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:16:01 -0400 Subject: [PATCH 3/3] Remove HVAC HEAR test in Cypress --- cypress/e2e/state-calculator.cy.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cypress/e2e/state-calculator.cy.ts b/cypress/e2e/state-calculator.cy.ts index 5ce4057..e780180 100644 --- a/cypress/e2e/state-calculator.cy.ts +++ b/cypress/e2e/state-calculator.cy.ts @@ -59,10 +59,6 @@ describe('rewiring-america-state-calculator', () => { cy.selectProjects(['hvac']); - cy.get('rewiring-america-state-calculator') - .shadow() - .contains('Up to $1,840 off a heat pump'); // Reflects RI's HEAR implementation - cy.get('rewiring-america-state-calculator') .shadow() .contains('$1,000/ton off an air source heat pump');