Skip to content

sjh/remove_cypress#4494

Merged
stephenhand merged 3 commits into
masterfrom
sjh/remove_cypress
Jun 25, 2026
Merged

sjh/remove_cypress#4494
stephenhand merged 3 commits into
masterfrom
sjh/remove_cypress

Conversation

@stephenhand

Copy link
Copy Markdown
Collaborator

Description

Checklist

  • Corresponding issue has been opened
  • New tests added
  • Feature flags added
  • Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Other Related Issues

None

Verification steps

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

Copilot AI review requested due to automatic review settings June 25, 2026 09:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the Cypress end-to-end testing setup from aselo-webchat-react-app (dependencies and the cypress/ test tree), and also drops node-fetch usage from the scripts workspace.

Changes:

  • Removed Cypress and cypress-file-upload from aselo-webchat-react-app and deleted the associated Cypress test/support code.
  • Removed node-fetch from scripts dependencies and removed its import from setAppConfigCreds.ts.
  • Updated both workspaces’ lockfiles to reflect the dependency removals.

Reviewed changes

Copilot reviewed 23 out of 30 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/src/setAppConfigCreds.ts Removes the node-fetch import from the script that generates appConfig.js credentials.
scripts/package.json Removes node-fetch dependency from the scripts workspace.
scripts/package-lock.json Updates lockfile to remove node-fetch and transitive dependencies.
aselo-webchat-react-app/package.json Removes Cypress-related devDependencies.
aselo-webchat-react-app/package-lock.json Updates lockfile to remove Cypress-related packages and transitive dependencies.
aselo-webchat-react-app/cypress/utils/constants.ts Deletes Cypress test constants.
aselo-webchat-react-app/cypress/tsconfig.json Deletes Cypress-specific TypeScript config.
aselo-webchat-react-app/cypress/support/e2e.ts Deletes Cypress support entry.
aselo-webchat-react-app/cypress/support/commands/webchatSessionCookie.ts Deletes custom Cypress session cookie helpers.
aselo-webchat-react-app/cypress/support/commands/index.ts Deletes Cypress command registrations and chainable typings.
aselo-webchat-react-app/cypress/support/commands/createNewWebchat.ts Deletes helper for creating a new webchat session in Cypress.
aselo-webchat-react-app/cypress/support/commands/addAttachmentFileAndSend.ts Deletes Cypress helpers for attachment upload and message validation.
aselo-webchat-react-app/cypress/plugins/helpers/twilioClient.ts Deletes Cypress plugin Twilio client helper.
aselo-webchat-react-app/cypress/plugins/helpers/interactionHandler.ts Deletes Cypress plugin helpers for accepting/wrapping/completing interactions and fetching messages.
aselo-webchat-react-app/cypress/plugins/helpers/gmail-api-helper.ts Deletes Gmail API helper used by Cypress plugins.
aselo-webchat-react-app/cypress/plugins/helpers/getWorker.ts Deletes Cypress plugin helper for worker/task/reservation operations.
aselo-webchat-react-app/cypress/plugins/helpers/getToken.ts Deletes Cypress plugin helper for generating worker JWTs.
aselo-webchat-react-app/cypress/pageObjects/preEngagementChatForm.ts Deletes Cypress page object for pre-engagement form.
aselo-webchat-react-app/cypress/pageObjects/endChatView.ts Deletes Cypress page object for end-chat view.
aselo-webchat-react-app/cypress/pageObjects/Chat/messageInputBoxView.ts Deletes Cypress page object for message input/attachments.
aselo-webchat-react-app/cypress/pageObjects/Chat/chatNotificationView.ts Deletes Cypress page object for alert/notification UI.
aselo-webchat-react-app/cypress/pageObjects/Chat/chatMessagesView.ts Deletes Cypress page object for message list/separators.
aselo-webchat-react-app/cypress/fixtures/files/test.txt Deletes Cypress fixture file.
aselo-webchat-react-app/cypress/fixtures/files/test.json Deletes Cypress fixture file.
aselo-webchat-react-app/cypress/e2e/General/WebchatGeneral.cy.ts Deletes the Cypress E2E spec suite.
Files not reviewed (2)
  • aselo-webchat-react-app/package-lock.json: Generated file
  • scripts/package-lock.json: Generated file

Comment on lines 1 to 4
import { config } from 'dotenv';
import yargs from 'yargs';
import fetch from 'node-fetch';
import * as fs from 'node:fs/promises';
import { getSSMParameter, setRoleToAssume } from './helpers/ssm';
Comment on lines 60 to 64
"axios": "^1.18.0",
"cors": "^2.8.5",
"cross-env": "^10.1.0",
"cypress": "15.10.0",
"cypress-file-upload": "^5.0.8",
"dotenv": "^16.0.0",
"eslint": "^7.11.0",
@stephenhand stephenhand merged commit 3880657 into master Jun 25, 2026
26 checks passed
@stephenhand stephenhand deleted the sjh/remove_cypress branch June 25, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants