Skip to content

Commit

Permalink
improve url validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Aug 4, 2023
1 parent ae710b3 commit e219189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions gateway/cypress/integration/retention/ui-homepage-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import credentials from '../../fixtures/credentials.json';
const { email, name } = data.homepageTestMembers.consortiumMember;

describe('Test editing member details', () => {
it('Editing Almonds forest member dtails', function () {
it('Editing Almonds Forest member details', function () {
const date = Date.now();
cy.programmaticSignin(email, credentials.password);
cy.visit('/');
Expand Down Expand Up @@ -61,11 +61,12 @@ describe('Test editing member details', () => {
cy.get('app-member-info-landing').contains('Street ' + date + ", City " + date + ", " + date);
cy.get('app-member-info-landing').contains(`YES - ORCID can use trademarked assets`);
cy.visit('/edit');
// wait for data to load
cy.intercept(`/services/memberservice/api/members/${data.homepageTestMembers.consortiumMember.salesforceId}/member-contacts`).as('details');
cy.wait('@details');
cy.get('[name="trademarkLicense"][value="No"]').click();
cy.get('[name="website"]').clear()
cy.get('[type="submit"]').click();
cy.get('app-member-info-landing').contains(`NO - ORCID cannot use this organization's trademarked name and logos`);

});
});
2 changes: 1 addition & 1 deletion gateway/cypress/integration/retention/ui-homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Test homepage', () => {
cy.get('.side-bar').contains("Public details")
cy.get('.side-bar').contains("Website")
cy.get('.side-bar').contains("Email")
cy.get('.side-bar').contains("https://")
cy.get('.side-bar').contains("No website added")
cy.get('.side-bar').contains("@orcid.org")
cy.get('.main-section').contains("Consortium/Parent organization: Mambo No 5")
cy.get('.main-section').contains("Membership: Active")
Expand Down

0 comments on commit e219189

Please sign in to comment.