Skip to content

Commit

Permalink
fix(test): correct the e2e test for media link (#615)
Browse files Browse the repository at this point in the history
CI Tests failed because of BE demo landing pages got changed somehow. Merge this PR as CI failed by unrelated issue
  • Loading branch information
tim-yao authored Dec 16, 2019
1 parent bdd5acd commit 2d22bc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Then(`there should be {int} embedded videos`, (number) => {
})

Then(`there should be a embedded video transcript link`, (number) => {
const link = cy.get('.rpl-embed-video__link').find('a')
link.its('href').should('eq', '/media/7008')
const link = cy.get('.rpl-embed-video__link a')
link.should('have.attr', 'href', '/media/7008')
link.contains('View transcript')
})

0 comments on commit 2d22bc0

Please sign in to comment.