Reenable browser extension e2e tests
Created by: chrismwendt
This reenables the browser extension e2e tests.
It only tests on pushes to the bext/release
branch.
It tests against Sourcegraph.com because I couldn't figure out how to set the chrome.storage.sync
sourcegraphURL
value through Puppeteer by getting a handle to the background script (see docs at https://github.com/GoogleChrome/puppeteer/blob/bc28f3b3dc42105e4214402fd16aaeea06e77f8b/docs/api.md#working-with-chrome-extensions). When I would do backgroundPage.evaluate(() => chrome.storage.sync)
, I would get could not read property 'sync' of undefined
. It seems that accessing storage is not supported. Testing against Sourcegraph.com is better than nothing, though.
Similar to https://github.com/sourcegraph/sourcegraph/pull/2533