diff --git a/ui/cypress/e2e/reset-test-data.cy.js b/ui/cypress/e2e/reset-test-data.cy.js index 4dfa1a03b..94f226275 100644 --- a/ui/cypress/e2e/reset-test-data.cy.js +++ b/ui/cypress/e2e/reset-test-data.cy.js @@ -10,12 +10,12 @@ describe("Add new user", () => { it("Remove all affiliations from test group", function () { cy.programmaticSignin(data.member.users.owner.email, credentials.password); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get(".btn-group").each(($e) => { cy.wrap($e).children().last().click(); cy.get("button").filter('[data-cy="confirmDeleteAffiliation"]').click(); }); - cy.visit("ui/en/users"); + cy.visit("en/users"); cy.get(".btn-group").each(($e) => { cy.wrap($e) .children() @@ -32,7 +32,7 @@ describe("Add new user", () => { it("Remove all affiliations from test member", function () { cy.programmaticSignin(data.member.users.owner.email, credentials.password); - cy.visit("ui/en/users"); + cy.visit("en/users"); cy.get(".btn-group").each(($e) => { cy.wrap($e) .children() @@ -52,7 +52,7 @@ describe("Add new user", () => { data.csvMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get(".btn-group").each(($e) => { cy.wrap($e).children().last().click(); cy.get("button").filter('[data-cy="confirmDeleteAffiliation"]').click(); @@ -65,7 +65,7 @@ describe("Add new user", () => { data.notificationsMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get(".btn-group").each(($e) => { cy.wrap($e).children().last().click(); cy.get("button").filter('[data-cy="confirmDeleteAffiliation"]').click(); diff --git a/ui/cypress/e2e/retention/add-affiliation.cy.js b/ui/cypress/e2e/retention/add-affiliation.cy.js index 051f19910..159235f29 100644 --- a/ui/cypress/e2e/retention/add-affiliation.cy.js +++ b/ui/cypress/e2e/retention/add-affiliation.cy.js @@ -32,7 +32,7 @@ describe("Add and remove affiliation", () => { it("Add affiliation", function () { cy.programmaticSignin(data.member.users.owner.email, credentials.password); - cy.visit("ui/en/affiliations/new"); + cy.visit("en/affiliations/new"); cy.get("#field_email").type(record.invalidEmail); cy.get("small.text-danger").should("exist"); @@ -71,7 +71,7 @@ describe("Add and remove affiliation", () => { it("Grant permission and check ORCID record for added affiliation", () => { cy.programmaticSignin(data.member.users.owner.email, credentials.password); // Get permission link - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get("tbody").children().first().children().eq(0).contains(record.email); cy.get("tbody") .children() @@ -141,7 +141,7 @@ describe("Add and remove affiliation", () => { it("Confirm UI changes on the assertion page", () => { cy.programmaticSignin(data.member.users.owner.email, credentials.password); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get("tbody").children().first().children().eq(1).contains(record.id); cy.get("tbody").children().first().children().eq(4).contains("In ORCID"); cy.programmaticSignout(); @@ -149,7 +149,7 @@ describe("Add and remove affiliation", () => { it("Delete affiliation", () => { cy.programmaticSignin(data.member.users.owner.email, credentials.password); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get(".btn-group").each(($e) => { cy.wrap($e).children().last().click(); cy.get("button").filter('[data-cy="confirmDeleteAffiliation"]').click(); diff --git a/ui/cypress/e2e/retention/add-member.cy.js b/ui/cypress/e2e/retention/add-member.cy.js index 697bafda7..8ea14bab8 100644 --- a/ui/cypress/e2e/retention/add-member.cy.js +++ b/ui/cypress/e2e/retention/add-member.cy.js @@ -6,7 +6,7 @@ const { salesforceId, clientName, clientId } = data.member; describe('Test "Add member" functionality', () => { it("Add member", function () { cy.programmaticSignin(credentials.adminEmail, credentials.adminPassword); - cy.visit("ui/en/members"); + cy.visit("en/members"); cy.get("tbody") .children() // Fetch existing salesforce id @@ -15,7 +15,7 @@ describe('Test "Add member" functionality', () => { .first() .then((existingSfId) => { // Check required field flags - cy.visit("ui/en/members/new"); + cy.visit("en/members/new"); cy.get("#field_salesforceId").should("have.class", "ng-invalid"); cy.get("#field_clientName").should("have.class", "ng-invalid"); // Save button should be disabled diff --git a/ui/cypress/e2e/retention/add-user.cy.js b/ui/cypress/e2e/retention/add-user.cy.js index b4e7d4a10..0035af8f9 100644 --- a/ui/cypress/e2e/retention/add-user.cy.js +++ b/ui/cypress/e2e/retention/add-user.cy.js @@ -6,7 +6,7 @@ describe("Add new user", () => { it("Add user", function () { // enter email cy.programmaticSignin(data.member.users.owner.email, credentials.password); - cy.visit("ui/en/users/new"); + cy.visit("en/users/new"); // type in invalid email address cy.get("#field_email").type(data.invalidEmail); // type in name and surname @@ -62,7 +62,7 @@ describe("Add new user", () => { it("Remove added user", function () { cy.programmaticSignin(data.member.users.owner.email, credentials.password); - cy.visit("ui/en/users"); + cy.visit("en/users"); cy.get(".btn-group").each(($e) => { cy.wrap($e) .children() diff --git a/ui/cypress/e2e/retention/csv-add-affiliations.cy.js b/ui/cypress/e2e/retention/csv-add-affiliations.cy.js index 57095adb7..b2752d2c0 100644 --- a/ui/cypress/e2e/retention/csv-add-affiliations.cy.js +++ b/ui/cypress/e2e/retention/csv-add-affiliations.cy.js @@ -10,7 +10,7 @@ describe("Test adding affiliations via CSV", () => { data.csvMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations/"); + cy.visit("en/affiliations/"); }); it("Upload CSV and check inbox for the confirmation email", function () { diff --git a/ui/cypress/e2e/retention/csv-edit-affiliations.cy.js b/ui/cypress/e2e/retention/csv-edit-affiliations.cy.js index 9b792306b..197f4e5b3 100644 --- a/ui/cypress/e2e/retention/csv-edit-affiliations.cy.js +++ b/ui/cypress/e2e/retention/csv-edit-affiliations.cy.js @@ -12,7 +12,7 @@ describe("Test updating affiliations via CSV", () => { data.csvPopulatedMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations/"); + cy.visit("en/affiliations/"); }); it("Edit the contents of the existing CSV file", function () { diff --git a/ui/cypress/e2e/retention/csv-invalid-affiliations.cy.js b/ui/cypress/e2e/retention/csv-invalid-affiliations.cy.js index 2e4ed38ad..a1688f6b4 100644 --- a/ui/cypress/e2e/retention/csv-invalid-affiliations.cy.js +++ b/ui/cypress/e2e/retention/csv-invalid-affiliations.cy.js @@ -8,7 +8,7 @@ describe("Test invalid CSV upload", () => { data.csvMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations/"); + cy.visit("en/affiliations/"); cy.uploadCsv("../fixtures/invalidAffiliations.csv"); cy.task("checkInbox", { subject: data.outbox.csvUpload, diff --git a/ui/cypress/e2e/retention/edit-affiliation.cy.js b/ui/cypress/e2e/retention/edit-affiliation.cy.js index 39a343354..277ed54a7 100644 --- a/ui/cypress/e2e/retention/edit-affiliation.cy.js +++ b/ui/cypress/e2e/retention/edit-affiliation.cy.js @@ -14,8 +14,8 @@ describe("Edit an affiliation", () => { ); }); it("Edit affiliation in the member portal", function () { - cy.visit("ui/en/affiliations"); - cy.visit(`ui/en/affiliations/${record.affiliation.id}/edit`); + cy.visit("en/affiliations"); + cy.visit(`en/affiliations/${record.affiliation.id}/edit`); cy.get("#field_orgName").clear().type(testString); cy.get("#field_orgCity").clear().type(testString); @@ -56,7 +56,7 @@ describe("Edit an affiliation", () => { delay: 30000, // delay before next iteration, ms }, ); - cy.visit("ui/en/affiliations/"); + cy.visit("en/affiliations/"); cy.get("tbody").children().first().children().eq(4).contains("In ORCID"); }); }); diff --git a/ui/cypress/e2e/retention/edit-member.cy.js b/ui/cypress/e2e/retention/edit-member.cy.js index 6afa597f5..444a8f667 100644 --- a/ui/cypress/e2e/retention/edit-member.cy.js +++ b/ui/cypress/e2e/retention/edit-member.cy.js @@ -6,7 +6,7 @@ const { salesforceId, clientName, clientId } = data.member; describe("Manage members menu", () => { it("Test edit member form", function () { cy.programmaticSignin(credentials.adminEmail, credentials.adminPassword); - cy.visit(`ui/en/members/${data.member.id}/edit`); + cy.visit(`en/members/${data.member.id}/edit`); cy.get("#field_isConsortiumLead").should("be.checked").uncheck(); cy.get("#field_salesforceId").invoke("attr", "disabled").should("exist"); cy.get("#field_parentSalesforceId").clear().type(clientName); diff --git a/ui/cypress/e2e/retention/edit-user.cy.js b/ui/cypress/e2e/retention/edit-user.cy.js index 2a5186e31..875d30683 100644 --- a/ui/cypress/e2e/retention/edit-user.cy.js +++ b/ui/cypress/e2e/retention/edit-user.cy.js @@ -8,7 +8,7 @@ describe("Test the edit user form", () => { data.populatedMember.users.owner.email, credentials.password, ); - cy.visit(`ui/en/users/${data.populatedMember.users.owner.id}/edit`); + cy.visit(`en/users/${data.populatedMember.users.owner.id}/edit`); // Clear first name input field cy.get("#field_firstName").clear(); // Shouldn't be possible to save with an empty name field diff --git a/ui/cypress/e2e/retention/notifications.cy.js b/ui/cypress/e2e/retention/notifications.cy.js index abcf36e1d..c303d1269 100644 --- a/ui/cypress/e2e/retention/notifications.cy.js +++ b/ui/cypress/e2e/retention/notifications.cy.js @@ -12,7 +12,7 @@ describe("Test notifications", () => { data.notificationsMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations/new"); + cy.visit("en/affiliations/new"); cy.get("#field_email").type(record.nonregisteredEmail); cy.get("#field_affiliationSection").select(type); cy.get("#field_orgName").type(data.testString); @@ -30,7 +30,7 @@ describe("Test notifications", () => { data.notificationsMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations/new"); + cy.visit("en/affiliations/new"); cy.get("#field_email").type(record.email); cy.get("#field_affiliationSection").select(type); cy.get("#field_orgName").type(data.testString + " 2"); @@ -40,7 +40,7 @@ describe("Test notifications", () => { cy.get("#field_disambiguatedOrgId").type(ror.id); cy.get("#save-entity").click(); cy.get(".alert-success").should("exist"); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get("button").filter('[data-cy="sendNotifications"]').click(); cy.get("#langKey").should("have.value", data.italianLanguageCode); cy.get("button").filter('[data-cy="confirmCsvUpload"]').click(); @@ -122,7 +122,7 @@ describe("Test notifications", () => { data.notificationsMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get(".btn-group").each(($e) => { cy.wrap($e).children().last().click(); cy.get("button").filter('[data-cy="confirmDeleteAffiliation"]').click(); diff --git a/ui/cypress/e2e/retention/reset-password.cy.js b/ui/cypress/e2e/retention/reset-password.cy.js index 5bb9a7380..db435a83a 100644 --- a/ui/cypress/e2e/retention/reset-password.cy.js +++ b/ui/cypress/e2e/retention/reset-password.cy.js @@ -4,7 +4,7 @@ import credentials from "../../fixtures/credentials.json"; describe("Test the password reset functionality", () => { it("Forgot your password?", function () { - cy.visit("ui/en/reset/request"); + cy.visit("en/reset/request"); cy.get("#email").type(data.invalidEmail); cy.get("small").filter('[data-cy="emailInvalid"]').should("exist"); cy.get("button") @@ -34,7 +34,7 @@ describe("Test the password reset functionality", () => { data.populatedMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/password"); + cy.visit("en/password"); cy.get("#currentPassword").type(credentials.wrongConfirmationPasssword); cy.processPasswordForm("#newPassword"); cy.get(".alert-danger") diff --git a/ui/cypress/e2e/retention/restricted-access.cy.js b/ui/cypress/e2e/retention/restricted-access.cy.js index 2f6a38a8d..a88c6730e 100644 --- a/ui/cypress/e2e/retention/restricted-access.cy.js +++ b/ui/cypress/e2e/retention/restricted-access.cy.js @@ -12,7 +12,7 @@ describe("Test restricted access", () => { data.populatedMember.users.user.email, credentials.password, ); - cy.visit("ui/en/members"); + cy.visit("en/members"); cy.get("h1") .filter('[data-cy="cannotProcessRequest"]') .contains("Your request cannot be processed"); @@ -27,7 +27,7 @@ describe("Test restricted access", () => { data.populatedMember.users.user.email, credentials.password, ); - cy.visit("ui/en/users"); + cy.visit("en/users"); cy.get("h1") .filter('[data-cy="cannotProcessRequest"]') .contains("Your request cannot be processed"); @@ -42,7 +42,7 @@ describe("Test restricted access", () => { data.populatedMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/members"); + cy.visit("en/members"); cy.get("h1") .filter('[data-cy="cannotProcessRequest"]') .contains("Your request cannot be processed"); @@ -57,7 +57,7 @@ describe("Test restricted access", () => { data.homepageTestMembers.consortiumLeadAndMember.email, credentials.password, ); - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get("h1") .filter('[data-cy="cannotProcessRequest"]') .contains("Your request cannot be processed"); diff --git a/ui/cypress/e2e/retention/ui-authorities.cy.js b/ui/cypress/e2e/retention/ui-authorities.cy.js index 173b11e16..52a8a4f1f 100644 --- a/ui/cypress/e2e/retention/ui-authorities.cy.js +++ b/ui/cypress/e2e/retention/ui-authorities.cy.js @@ -19,7 +19,7 @@ describe("Test authorities", () => { data.populatedMember.users.user.email, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#admin-menu").should("not.exist"); cy.get("#entity-menu").should("exist"); cy.get("a").filter('[routerLink="/affiliations"]').should("exist"); @@ -113,7 +113,7 @@ describe("Test authorities", () => { data.populatedMember.users.owner.email, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#admin-menu").should("exist"); cy.get("#entity-menu").should("exist"); cy.get("a").filter('[routerlink="/users"]').should("exist"); @@ -203,7 +203,7 @@ describe("Test authorities", () => { it("Admin", function () { cy.programmaticSignin(credentials.adminEmail, credentials.adminPassword); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#admin-menu").should("exist"); cy.get("#entity-menu").should("exist"); cy.get("a").filter('[routerlink="/users"]').should("exist"); @@ -289,7 +289,7 @@ describe("Test authorities", () => { data.homepageTestMembers.consortiumLeadAndMember.email, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#admin-menu").should("not.exist"); cy.get("#entity-menu").should("not.exist"); cy.get("a").filter('[routerlink="/users"]').should("not.exist"); diff --git a/ui/cypress/e2e/retention/ui-homepage-edit.cy.js b/ui/cypress/e2e/retention/ui-homepage-edit.cy.js index d0698fedf..7b6be9f22 100644 --- a/ui/cypress/e2e/retention/ui-homepage-edit.cy.js +++ b/ui/cypress/e2e/retention/ui-homepage-edit.cy.js @@ -8,9 +8,9 @@ describe("Test editing member details", () => { it("Editing Almonds Forest member details", function () { const date = Date.now(); cy.programmaticSignin(email, credentials.password); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info").contains(date).should("not.exist"); - cy.visit("ui/en/edit"); + cy.visit("en/edit"); cy.get(".text-danger").should("not.exist"); // wait for data to load cy.intercept( @@ -70,7 +70,7 @@ describe("Test editing member details", () => { cy.get("app-member-info").contains( `YES - ORCID can use trademarked assets`, ); - cy.visit("ui/en/edit"); + cy.visit("en/edit"); // wait for data to load cy.intercept( `/services/memberservice/api/members/${data.homepageTestMembers.consortiumMember.salesforceId}/member-contacts`, diff --git a/ui/cypress/e2e/retention/ui-homepage.cy.js b/ui/cypress/e2e/retention/ui-homepage.cy.js index 908ef8b23..684bea08a 100644 --- a/ui/cypress/e2e/retention/ui-homepage.cy.js +++ b/ui/cypress/e2e/retention/ui-homepage.cy.js @@ -8,7 +8,7 @@ describe("Test homepage", () => { data.homepageTestMembers.directMemberEmail, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info", { timeout: 20000 }); cy.get(".side-bar").contains("Public details"); cy.get(".side-bar").contains("Website"); @@ -28,7 +28,7 @@ describe("Test homepage", () => { data.homepageTestMembers.consortiumLeadEmail, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info", { timeout: 20000 }); cy.get(".side-bar").contains("Public details"); cy.get(".side-bar").contains("Website"); @@ -50,7 +50,7 @@ describe("Test homepage", () => { data.homepageTestMembers.consortiumMember.email, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info", { timeout: 20000 }); cy.get(".side-bar").contains("Public details"); cy.get(".side-bar").contains("Website"); @@ -74,7 +74,7 @@ describe("Test homepage", () => { data.homepageTestMembers.consortiumMemberEmail2, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info", { timeout: 20000 }); cy.get(".side-bar").contains("Public details"); cy.get(".side-bar").contains("Website"); @@ -94,7 +94,7 @@ describe("Test homepage", () => { data.homepageTestMembers.consortiumLeadAndMember.email, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info", { timeout: 20000 }); cy.get(".side-bar").contains("Public details"); cy.get(".side-bar").contains("Website"); @@ -115,7 +115,7 @@ describe("Test homepage", () => { data.homepageTestMembers.inactiveConsortiumMemberEmail, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info", { timeout: 20000 }).contains( "Something has gone wrong...", ); diff --git a/ui/cypress/e2e/retention/ui-login.cy.js b/ui/cypress/e2e/retention/ui-login.cy.js index 56175b2ed..d0d55c247 100644 --- a/ui/cypress/e2e/retention/ui-login.cy.js +++ b/ui/cypress/e2e/retention/ui-login.cy.js @@ -4,7 +4,7 @@ import credentials from "../../fixtures/credentials.json"; describe("Test sign in form", () => { it("Sign in", function () { - cy.visit(`ui/en/`); + cy.visit(`en/`); cy.get("#username").clear().type(data.member.users.owner.email); cy.get("#password").type(credentials.password); cy.get("button").filter('[type="submit"]').click(); diff --git a/ui/cypress/e2e/retention/ui-pagination.cy.js b/ui/cypress/e2e/retention/ui-pagination.cy.js index 20155e708..dc76e9bd3 100644 --- a/ui/cypress/e2e/retention/ui-pagination.cy.js +++ b/ui/cypress/e2e/retention/ui-pagination.cy.js @@ -15,7 +15,7 @@ describe("Test pagination", () => { }); it('Test the "Manage users" page', function () { - cy.visit("ui/en/users"); + cy.visit("en/users"); cy.get("tbody").children().should("have.length", 20); cy.get(".pagination").contains("1"); cy.get(".pagination").contains("3").should("not.exist"); @@ -31,7 +31,7 @@ describe("Test pagination", () => { }); it('Test the "Affiliations" page', function () { - cy.visit("ui/en/affiliations"); + cy.visit("en/affiliations"); cy.get("tbody").children().should("have.length", 20); cy.get(".pagination").contains("1"); cy.get(".pagination").contains("2"); diff --git a/ui/cypress/e2e/retention/ui-reports.cy.js b/ui/cypress/e2e/retention/ui-reports.cy.js index 015949675..1c3718210 100644 --- a/ui/cypress/e2e/retention/ui-reports.cy.js +++ b/ui/cypress/e2e/retention/ui-reports.cy.js @@ -8,7 +8,7 @@ describe("Test report menus", () => { data.homepageTestMembers.directMemberEmail, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("app-member-info", { timeout: 20000 }); cy.get("#tools-menu").click(); cy.get('[routerLink="/report/member"]').should("be.visible"); @@ -55,7 +55,7 @@ describe("Test report menus", () => { data.homepageTestMembers.consortiumLeadEmail, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#tools-menu").click(); cy.get('[routerlink="/report/member"]').should("be.visible"); cy.get('[routerlink="/report/integration"]').should("be.visible"); @@ -101,7 +101,7 @@ describe("Test report menus", () => { data.homepageTestMembers.consortiumMember.email, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#tools-menu").click(); cy.get('[routerlink="/report/member"]').should("be.visible"); cy.get('[routerlink="/report/integration"]').should("be.visible"); @@ -147,7 +147,7 @@ describe("Test report menus", () => { data.homepageTestMembers.consortiumMemberEmail2, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#tools-menu").click(); cy.get('[routerlink="/report/member"]').should("be.visible"); cy.get('[routerlink="/report/integration"]').should("be.visible"); @@ -193,7 +193,7 @@ describe("Test report menus", () => { data.homepageTestMembers.consortiumLeadAndMember.email, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#tools-menu").click(); cy.get('[routerlink="/report/member"]').should("be.visible"); cy.get('[routerlink="/report/integration"]').should("be.visible"); @@ -239,7 +239,7 @@ describe("Test report menus", () => { data.homepageTestMembers.inactiveConsortiumMemberEmail, credentials.password, ); - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#tools-menu").click(); cy.get('[routerLink="/report/member"]').should("be.visible"); cy.get('[routerLink="/report/integration"]').should("be.visible"); diff --git a/ui/cypress/support/commands.js b/ui/cypress/support/commands.js index d26b0618d..04443b4ec 100644 --- a/ui/cypress/support/commands.js +++ b/ui/cypress/support/commands.js @@ -29,7 +29,7 @@ import credentials from "../fixtures/credentials.json"; import record from "../fixtures/orcid-record.json"; Cypress.Commands.add("signin", (email, password) => { - cy.visit("ui/en/"); + cy.visit("en/"); cy.get("#username") .clear() .type(email) @@ -54,7 +54,7 @@ Cypress.Commands.add("programmaticSignin", (username, password) => { cy.getCookie("XSRF-TOKEN").then((csrfCookie) => { if (!csrfCookie) { return cy - .visit("ui/en/") + .visit("en/") .getCookie("XSRF-TOKEN") .then(() => cy.programmaticSignin(username, password)); } else { @@ -138,7 +138,7 @@ Cypress.Commands.add("visitLinkFromEmail", (email) => { cy.visit( href.replace( "https://member-portal.qa.orcid.org/", - "https://member-portal.qa.orcid.org/ui/en/", + "https://member-portal.qa.orcid.org/en/", ), ); }); @@ -161,7 +161,7 @@ Cypress.Commands.add("removeAffiliation", ($e) => { }); Cypress.Commands.add("changeOrgOwner", () => { - cy.visit(`ui/en/users/${data.member.users.owner.id}/edit`); + cy.visit(`en/users/${data.member.users.owner.id}/edit`); cy.get("#field_mainContact").click(); cy.get("#save-entity").click(); cy.get(".alert-success").should("exist"); @@ -220,9 +220,7 @@ Cypress.Commands.add("fetchLinkAndGrantPermission", (email) => { // *ADD ID cy.get(".mt-5").within(() => { - cy.get("h2") - .filter('[jhitranslate="landingPage.success.thanks.string"]') - .should("exist"); + cy.get("h2").filter('[data-cy="thanksMessage"]').should("exist"); }); });