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

chore: update css selector on test clients #731

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypress/e2e/check_email_deliverability/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe("should suggest valid email address", () => {
it("should sign-in", function () {
cy.visit("http://localhost:4001");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.get('[name="login"]').should("have.value", "[email protected]");
cy.contains("Adresse email invalide.");
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/delete_totp/index.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("delete TOTP connexion", () => {

it("should not be ask to sign with TOTP", function () {
cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();
cy.login("[email protected]");

cy.contains('"amr": [\n "pwd"\n ],');
Expand Down Expand Up @@ -76,7 +76,7 @@ describe("delete TOTP connexion", () => {

it("should not be ask to sign with TOTP", function () {
cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();
cy.login("[email protected]");

cy.contains('"amr": [\n "pwd"\n ],');
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/signin_from_agentconnect_client/index.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe("sign-in from agentconnect client", () => {
it("should sign-in", () => {
cy.visit("http://localhost:4001");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.get('[name="password"]').type("password123");
cy.get('[action="/users/sign-in"] [type="submit"]')
Expand All @@ -20,7 +20,7 @@ describe("sign-in from agentconnect client", () => {
cy.login("[email protected]");

cy.visit("http://localhost:4001");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.contains("moncomptepro-agentconnect-client");
cy.contains("[email protected]");
Expand All @@ -31,7 +31,7 @@ describe("sign-in from agentconnect client", () => {
cy.login("[email protected]");

cy.visit("http://localhost:4001");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.get('[name="password"]').type("password123");
cy.get('[action="/users/sign-in"] [type="submit"]')
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/signin_from_legacy_client/index.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe("sign-in from legacy client", () => {
it("should sign-in", function () {
cy.visit("http://localhost:4002");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.login("[email protected]");

Expand All @@ -13,7 +13,7 @@ describe("sign-in from legacy client", () => {

// then it should prompt for organization
cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();
cy.contains("Votre organisation de rattachement");
cy.get(".fr-grid-row .fr-col-12:first-child .fr-tile__link").click();
cy.contains("moncomptepro-standard-client");
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/signin_from_standard_client/index.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe("sign-in from standard client", () => {
it("should sign-in without org selection when having only one organization", function () {
cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.login("[email protected]");

Expand All @@ -30,7 +30,7 @@ describe("sign-in from standard client", () => {

it("should sign-in with org selection when having two organization", function () {
cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.login("[email protected]");

Expand Down Expand Up @@ -61,7 +61,7 @@ describe("sign-in from standard client", () => {
cy.login("[email protected]");

cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.contains("moncomptepro-standard-client");
cy.contains("[email protected]");
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/signin_with_totp/index.cy.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe("sign-in with TOTP on untrusted browser", () => {
it("should sign-in with password and TOTP", function () {
cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.mfaLogin("[email protected]");

Expand All @@ -10,7 +10,7 @@ describe("sign-in with TOTP on untrusted browser", () => {

it("should sign-in with password and no TOTP", function () {
cy.visit("http://localhost:4000");
cy.get("button.moncomptepro-button").click();
cy.get("button.proconnect-button").click();

cy.login("[email protected]");

Expand Down