Fix cypress test looking for English translations

Oops, I edited the translations and did not think of cypress tests that
might depend on them, sorry cc @mattwr18
This commit is contained in:
Robert Schäfer 2019-04-12 20:40:36 +02:00
parent 85973be5b0
commit 7bc0851b90
2 changed files with 6 additions and 6 deletions

View File

@ -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)
})
})

View File

@ -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
Then they should be able to see my social media links