-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(apps): fix dashboard/voucher/consent tests (#4627)
* test(apps): fix dashboard/voucher auth test * fix: revert nextjs version (known bug) * fix: avoid issue with hydra large challenge token * fix: e2e voucher test * fix: e2e dashboard test * fix: api key creation modal * fix: e2e consent test * fix: lint issue and cache invalidation error * fix: tiltfile deps * fix: bypass geetest in login phone test * fix: env variable in consent test * fix: ci validation * chore: remove unnecessary comments * fix: audit issues * test: fix consent initialization * test: add gh action to run build and integration tests in parallel * chore: update gh action name * fix: test core deps * test: parallelize e2e builds in gh action * chore: add short lived cache key * chore: remove old integration test
- Loading branch information
Showing
46 changed files
with
3,024 additions
and
2,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { testData } from "../support/test-config" | ||
|
||
describe("Account ID Test", () => { | ||
it("Login email Test", () => { | ||
const email = testData.EMAIL | ||
|
||
cy.flushRedis() | ||
cy.visit(testData.AUTHORIZATION_URL) | ||
cy.location("search").should((search) => { | ||
const params = new URLSearchParams(search) | ||
expect(params.has("login_challenge")).to.be.true | ||
}) | ||
|
||
cy.get("[data-testid=sign_in_with_phone_btn]") | ||
.should("exist") | ||
.should("be.visible") | ||
.click() | ||
|
||
cy.get("[data-testid=sign_in_with_email_btn]") | ||
.should("exist") | ||
.should("be.visible") | ||
.click() | ||
|
||
cy.get("[data-testid=email_id_input]") | ||
.should("exist") | ||
.should("be.visible") | ||
.should("not.be.disabled") | ||
.type(email) | ||
|
||
cy.get("[data-testid=email_login_next_btn]") | ||
.should("exist") | ||
.should("be.visible") | ||
.click() | ||
|
||
cy.getOTP(email).then((code) => { | ||
cy.get("[data-testid=verification_code_input]") | ||
.should("exist") | ||
.should("be.visible") | ||
.should("not.be.disabled") | ||
.type(code) | ||
|
||
cy.get("[data-testid=submit_consent_btn]") | ||
.should("exist") | ||
.should("be.visible") | ||
.should("not.be.disabled") | ||
}) | ||
}) | ||
}) |
Oops, something went wrong.