Skip to content

Commit

Permalink
Fix shadow DOM selector in recorder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Sep 2, 2024
1 parent 316954c commit c681af1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ describe('developer-extension', () => {
class DeveloperExtensionPanel {
async open() {
await browser.url('chrome://extensions')
// extensions page is built with custom elements, >>> selector to traverse shadow DOM
// cf https://webdriver.io/docs/selectors/#deep-selectors
const extensionId = await $('>>>extensions-item').getAttribute('id')
const extensionId = await $('extensions-item').getAttribute('id')
const url = `chrome-extension://${extensionId}/panel.html`
await browser.url(url)
expect(await browser.getUrl()).toEqual(url)
Expand Down

0 comments on commit c681af1

Please sign in to comment.