Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cypress): fix redirectionHandler from failing to compile #4846

Merged
merged 9 commits into from
Jun 4, 2024

Conversation

pixincreate
Copy link
Member

@pixincreate pixincreate commented Jun 3, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

It looks like Jenkins expects file names to be case sensitive which is good. However, that led to Cypress tests to fail.

In commands.js, we've given the file name to be ./redirectionHandler to be imported while the actual file name is ./redirectionhandler.

Execute:

git mv -f /cypress-tests/cypress/support/redirectionhandler.js /cypress-tests/cypress/support/redirectionHandler.js

Had to add a normaliser function as on Jenkins, it considers a standard connector name:

image

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

NIL

How did you test it?

CI should not cry from now on. But on local, this bug is not reproducible.

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@pixincreate pixincreate added A-CI-CD Area: Continuous Integration/Deployment S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Jun 3, 2024
@pixincreate pixincreate added this to the May 2024 Release milestone Jun 3, 2024
@pixincreate pixincreate self-assigned this Jun 3, 2024
@pixincreate pixincreate requested review from a team as code owners June 3, 2024 08:40
@pixincreate pixincreate changed the title fix(cypress): fix file name fix(cypress): fix redirectionHandler from failing to compile Jun 3, 2024
likhinbopanna
likhinbopanna previously approved these changes Jun 3, 2024
SanchithHegde
SanchithHegde previously approved these changes Jun 3, 2024
Comment on lines 238 to 243
cy.get(".BankSearch_searchInput__uX_9l").type(
"Volksbank Hildesheim{enter}"
);
cy.get(".BankSearch_searchIcon__EcVO7").click();
cy.get(".BankSearch_bankWrapper__R5fUK").click();
cy.get("._transactionId__primaryButton__nCa0r").click();
Copy link
Member

Choose a reason for hiding this comment

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

Won't these identifiers change over time?

Copy link
Member Author

Choose a reason for hiding this comment

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

I believe not. Other simpler methods never worked here when I tried. Had to resort to the work that @tsdk02 and @Abhitator216 had done.

@pixincreate pixincreate marked this pull request as draft June 3, 2024 09:43
@pixincreate pixincreate marked this pull request as ready for review June 3, 2024 09:48
@pixincreate pixincreate dismissed stale reviews from SanchithHegde and likhinbopanna via 8d3deea June 3, 2024 11:36
SanchithHegde
SanchithHegde previously approved these changes Jun 3, 2024
@pixincreate pixincreate requested a review from Sakilmostak June 4, 2024 09:45
Sakilmostak
Sakilmostak previously approved these changes Jun 4, 2024
SanchithHegde
SanchithHegde previously approved these changes Jun 4, 2024
* 'main' of github.com:juspay/hyperswitch:
  feat(cypress): Add service level testing for Payouts (#4744)
  feat(auth): Create and use `SinglePurposeOrLoginTokenAuth` (#4830)
  refactor(connector): [Adyen] handle redirection error response (#4862)
  refactor(api_models): rename Card struct for payouts to avoid overrides in auto generated open API spec (#4861)
  chore(version): 2024.06.04.1
  fix(connector): [Adyen]add required fields for afterpay clearpay (#4858)
  chore(version): 2024.06.04.0
  fix: include client_version and client_source in retried payments (#4826)
  refactor(users): Changes for Home and Signout APIs for TOTP Redis flows (#4851)
  feat(users): Create config for TOTP Issuer (#4776)
  feat(multitenancy): add support for multitenancy and handle the same in router, producer, consumer, drainer and analytics (#4630)
  feat(connector): [AUTHORIZEDOTNET] Support payment_method_id in recurring mandate payment (#4841)
  refactor(connector): airwallex convert init payment to preprocessing (#4842)
  feat(router): send `three_ds_requestor_url` in authentication_response for external 3ds flow (#4828)
  feat(consolidated-kafka-events): add consolidated kafka payment events (#4798)
@pixincreate pixincreate dismissed stale reviews from SanchithHegde and Sakilmostak via 7a6e897 June 4, 2024 12:06
@preetamrevankar preetamrevankar added this pull request to the merge queue Jun 4, 2024
Merged via the queue into main with commit 901b88a Jun 4, 2024
10 checks passed
@preetamrevankar preetamrevankar deleted the cypress-fix branch June 4, 2024 12:58
@pixincreate pixincreate removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI-CD Area: Continuous Integration/Deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants