diff --git a/cypress/integration/UserProfile.SocialMedia/I_add_a_social_media_link.js b/cypress/integration/UserProfile.SocialMedia/I_add_a_social_media_link.js index 9253709f9..ca2e36818 100644 --- a/cypress/integration/UserProfile.SocialMedia/I_add_a_social_media_link.js +++ b/cypress/integration/UserProfile.SocialMedia/I_add_a_social_media_link.js @@ -1,9 +1,12 @@ import { When } from "cypress-cucumber-preprocessor/steps"; When('I add a social media link', () => { - cy.get('input#addSocialMedia') - .type('https://freeradical.zone/peter-pan') - .get('button') + cy.get('button') .contains('Add link') .click() + .get('#editSocialMedia') + .type('https://freeradical.zone/peter-pan') + .get('button') + .contains('Save') + .click() }) \ No newline at end of file diff --git a/cypress/integration/UserProfile.SocialMedia/I_have_added_a_social_media_link.js b/cypress/integration/UserProfile.SocialMedia/I_have_added_a_social_media_link.js index 203b97032..93e35bf28 100644 --- a/cypress/integration/UserProfile.SocialMedia/I_have_added_a_social_media_link.js +++ b/cypress/integration/UserProfile.SocialMedia/I_have_added_a_social_media_link.js @@ -2,9 +2,12 @@ import { Given } from "cypress-cucumber-preprocessor/steps"; Given('I have added a social media link', () => { cy.visit('/settings/my-social-media') - .get('input#addSocialMedia') - .type('https://freeradical.zone/peter-pan') .get('button') .contains('Add link') .click() + .get('#editSocialMedia') + .type('https://freeradical.zone/peter-pan') + .get('button') + .contains('Save') + .click() }) \ No newline at end of file