Skip to content

Commit

Permalink
Use contains instead of equal to avoid the test error
Browse files Browse the repository at this point in the history
  • Loading branch information
hadijahkyampeire committed Sep 8, 2021
1 parent ee997e6 commit b86c893
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ When(/the user selects the "(.+)" menu list item/, menuItem =>
Then("the subscription url should be copied", () => {
cy.window().then(win => {
win.navigator.clipboard.readText().then(text => {
assert.equal(
text,
`/users/${getUser()}/collections/${getDictionaryId()}/${getVersionId()}`
);
expect(text).to.contain(`/users/${getUser()}/collections/${getDictionaryId()}/${getVersionId()}/`)
});
});
});

0 comments on commit b86c893

Please sign in to comment.