Skip to content

Commit

Permalink
localhost -> 127.0.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Jun 13, 2024
1 parent c427c4f commit e568de2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ jobs:
# Starts web server for E2E tests - replace with your own server invocation
# https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server
start: yarn start
wait-on: 'http://localhost:3000' # Waits for above
wait-on: 'http://127.0.0.1:3000' # Waits for above
browser: chrome
# Records to Cypress Cloud
# https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
record: true
# Specify Cypress test spec files in each matrix job to deterministically run tests in parallel
spec: cypress/e2e/${{ matrix.e2e }}
parallel: false # Don't use Cypress in-built parallelization
install: false # Install Cypress only, don't install dependencies
install: true
install-command: yarn --frozen-lockfile --prefer-offline --ignore-optional
cache-key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
env:
# For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
Expand Down
2 changes: 1 addition & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = defineConfig({
config.env.PD_USER_TOKEN = process.env.VITE_PD_USER_TOKEN;
return config;
},
baseUrl: 'http://localhost:3000/pd-live-react',
baseUrl: 'http://127.0.0.1:3000/pd-live-react',
specPattern: 'cypress/e2e/**/*.spec.{js,ts,jsx,tsx}',
testIsolation: true,
},
Expand Down
2 changes: 1 addition & 1 deletion src/util/auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const unmockedFetch = global.fetch;
describe('Authentication Helper Suite', () => {
const clientId = PD_OAUTH_CLIENT_ID;
const clientSecret = PD_OAUTH_CLIENT_SECRET;
const redirectURL = 'http://localhost:3000/';
const redirectURL = 'http://127.0.0.1:3000/';
const code = 'SOME_REDIRECT_CODE';
const mockAccessToken = faker.string.alphanumeric();
let codeVerifier;
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function fixAcceptHeader404() {
export default defineConfig(() => ({
base: '/pd-live-react',
server: {
host: '127.0.0.1',
port: 3000,
},
build: {
Expand Down

0 comments on commit e568de2

Please sign in to comment.