diff --git a/cypress/integration/common/settings.js b/cypress/integration/common/settings.js index 675ecc677..e1f3cc5a8 100644 --- a/cypress/integration/common/settings.js +++ b/cypress/integration/common/settings.js @@ -74,14 +74,14 @@ Then('I should be on the {string} page', page => { expect(loc.pathname).to.eq(page) }) .get('h3') - .should('contain', 'My social media') + .should('contain', 'Social media') }) Then('I add a social media link', () => { cy.get("input[name='social-media']") .type('https://freeradical.zone/peter-pan') .get('button') - .contains('Add social media') + .contains('Add link') .click() }) @@ -100,7 +100,7 @@ Given('I have added a social media link', () => { .get("input[name='social-media']") .type('https://freeradical.zone/peter-pan') .get('button') - .contains('Add social media') + .contains('Add link') .click() }) @@ -109,4 +109,4 @@ Then('they should be able to see my social media links', () => { .contains('Where else can I find Peter Pan?') .get('a[href="https://freeradical.zone/peter-pan"]') .should('have.length', 1) -}) \ No newline at end of file +}) diff --git a/cypress/integration/user_profile/SocialMedia.feature b/cypress/integration/user_profile/SocialMedia.feature index a535b507a..988923c17 100644 --- a/cypress/integration/user_profile/SocialMedia.feature +++ b/cypress/integration/user_profile/SocialMedia.feature @@ -9,7 +9,7 @@ Feature: List Social Media Accounts Scenario: Adding Social Media Given I am on the "settings" page - And I click on the "My social media" link + And I click on the "Social media" link Then I should be on the "/settings/my-social-media" page When I add a social media link Then it gets saved successfully @@ -18,4 +18,4 @@ Feature: List Social Media Accounts Scenario: Other user's viewing my Social Media Given I have added a social media link When people visit my profile page - Then they should be able to see my social media links \ No newline at end of file + Then they should be able to see my social media links