Skip to content

Commit

Permalink
test(e2e): adjust atDataset
Browse files Browse the repository at this point in the history
Merge pull request #655 from qri-io/test_e2e_atdataset
  • Loading branch information
ramfox authored Oct 12, 2020
1 parent 6263cf3 commit 2c911f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/utils/e2eTestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function atDataset (app: any) {
const location = new url.URL(currUrl).hash
return location.startsWith('#/collection') && username === '' ? true : location.includes(username) && location.includes(datasetName)
}, 10000, `expected url to be '#/collection/${username === '' ? 'some_username' : username}/${datasetName}', got: ${location}`)
await client.waitUntil(async () => {
return client.element('.title-container .subtitle').isExisting()
}, 10000, `element '.title-container .subtitle cannot be found`)
if (username !== '') {
expect(await app.client.element('.title-container .subtitle').getText()).toBe(username + '/')
}
Expand Down

0 comments on commit 2c911f7

Please sign in to comment.