You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe("Home", () => {
it("login and view listof people", () => {
cy.visit("/login");
cy.login("MY_USER_ID");
cy.get('[data-cy="submit"]').click();
// get something in page
});
});
This snippet run without runtime error but doesn't work as i expect because i'm not logging into the system.
The problem i encountered is that the token is never set, instead the user does, inside the local storage.
I am trying to write a test for my firebase based login. In the first instance I installed the version 2.2.5 as suggested here #788.
Following the documentation I have my serviceAccount.json and cypress.config.ts in the project root.
Some code snippet here:
cypress.config.ts
cypress/support/command.ts
I wrote two tests. The first is the one suggested by the documentation to confirm things are working:
cypress/e2e/hello-firebase.cy.js
And here everything works as expected.
cypress/e2e/test-login.cy.js
This snippet run without runtime error but doesn't work as i expect because i'm not logging into the system.
The problem i encountered is that the token is never set, instead the user does, inside the local storage.
Screen of the test execution:
Screen of the local storage contents:
Packages version:
"firebase": "^9.20.0",
"firebase-admin": "^11.7.0",
"cypress": "^12.10.0",
"cypress-firebase": "2.2.5"
The text was updated successfully, but these errors were encountered: