Skip to content

Commit

Permalink
clear localStorage to prevent percy flake (#14694)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjkandala committed Oct 26, 2020
1 parent 70a9e49 commit fc9580d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/web/src/integration/blob-viewer.test.ts
Expand Up @@ -208,6 +208,8 @@ describe('Blob viewer', () => {

it('shows a hover overlay from a hover provider and updates the URL when a token is clicked', async function () {
await driver.page.goto(`${driver.sourcegraphBaseUrl}/github.com/sourcegraph/test/-/blob/test.ts`)
await driver.page.evaluate(() => localStorage.removeItem('hover-count'))
await driver.page.reload()

// Click on "log" in "console.log()" in line 2
await driver.page.waitForSelector('.test-log-token', { visible: true })
Expand Down

0 comments on commit fc9580d

Please sign in to comment.