Unable to login to web application using Cypress 13, via AWS Amplify Cognito v6 authentication #28974
Unanswered
s5b
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a VueJS 3 web application using AWS Amplify Cognito v6 for authentication that runs fine in production, but the web application fails when run within a cypress test. This test used to work fine with AWS Amplify Cognito V5, but is failing post the upgrade.
When running in Chrome via cypress, the web application loads and presents the embedded login form. Cypress is able to fill in the username and password on the form, and click the form submission button. It's at this stage that the web application presents an error message box on the form stating "An unknown error has occurred.". And there is nothing reported in the browser console.
One difference I noticed between the production (working) interaction with AWS Amplify Cognito versus the Cypress version is that the production interaction communicates using
http2
, while Cypress is usinghttp1.1
.@aws-amplify/ui-vue:
4.2.0
; vue:3.4.18
; aws-amplify:6.0.16
; cypress/vue:5.0.5
; cypress:13.6.4
; chrome:121.0.6167.139
; macOS14.3.1
(From reading the Cypress Discord, there appears to be a pull request pending for using AWS Amplify V6 with Cypress.)
Beta Was this translation helpful? Give feedback.
All reactions