1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Update to extension Id path for new chrome

This commit is contained in:
Thomas 2018-05-08 07:03:17 -07:00
parent 228e06110d
commit f7a3d8887c

View File

@ -39,12 +39,12 @@ describe('Metamask popup page', function () {
})
it(`selects MetaMask's extension id and opens it in the current tab`, async function () {
// // For latest Chrome version (when they updated the extension view)
// // Use piercing CSS selector /deep/ to access the extension id in the Shadow Dom
// const elems = await driver.findElements(By.css('* /deep/ extensions-item'))
// extensionId = await elems[1].getAttribute('id')
const elems = await driver.findElements(By.css('.extension-list-item-wrapper'))
// For latest Chrome version (when they updated the extension view)
// Use piercing CSS selector /deep/ to access the extension id in the Shadow Dom
const elems = await driver.findElements(By.css('* /deep/ extensions-item'))
extensionId = await elems[1].getAttribute('id')
// const elems = await driver.findElements(By.css('.extension-list-item-wrapper'))
// extensionId = await elems[1].getAttribute('id')
await driver.get(`chrome-extension://${extensionId}/popup.html`)
await delay(500)
})