From b50a88d9ff4ff5f8773d659423eee9615734bef3 Mon Sep 17 00:00:00 2001 From: scottrosen14 Date: Wed, 20 Nov 2024 18:59:37 -0600 Subject: [PATCH] Rename check redirect util file --- cypress.config.ts => cypress.config.js | 3 +-- cypress/tests/us/home.cy.js | 2 +- cypress/utils/{checkUSRedirect.js => checkCountryRedirect.js} | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename cypress.config.ts => cypress.config.js (84%) rename cypress/utils/{checkUSRedirect.js => checkCountryRedirect.js} (100%) diff --git a/cypress.config.ts b/cypress.config.js similarity index 84% rename from cypress.config.ts rename to cypress.config.js index 2f2e5e27b..356e65aad 100644 --- a/cypress.config.ts +++ b/cypress.config.js @@ -1,6 +1,6 @@ const { defineConfig } = require('cypress'); require('dotenv').config({ - path: `.env.${process.env.CYPRESS_ENV || 'development'}` + path: `.env.${process.env.STAGE_ENV || 'development'}` }); module.exports = defineConfig({ @@ -9,7 +9,6 @@ module.exports = defineConfig({ supportFile: 'cypress/support/e2e.js', specPattern: 'cypress/tests/**/*.cy.js', }, - video: false, setupNodeEvents(on, config) { on('task', { log(message) { diff --git a/cypress/tests/us/home.cy.js b/cypress/tests/us/home.cy.js index 2513b1eaa..d6d48210f 100644 --- a/cypress/tests/us/home.cy.js +++ b/cypress/tests/us/home.cy.js @@ -1,4 +1,4 @@ -import { checkCountryRedirect } from "../../utils/checkUSRedirect" +import { checkCountryRedirect } from "../../utils/checkCountryRedirect" describe('PolicyEngine Homepage', () => { const regexArg = /the\s(us|u\.s\.|usa|united states)/; diff --git a/cypress/utils/checkUSRedirect.js b/cypress/utils/checkCountryRedirect.js similarity index 100% rename from cypress/utils/checkUSRedirect.js rename to cypress/utils/checkCountryRedirect.js