mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Update to extension Id path for new chrome
This commit is contained in:
parent
228e06110d
commit
f7a3d8887c
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user