diff --git a/extension/test/chrome/extension.spec.js b/extension/test/chrome/extension.spec.js index 86fdb064..7c52fe46 100644 --- a/extension/test/chrome/extension.spec.js +++ b/extension/test/chrome/extension.spec.js @@ -40,16 +40,14 @@ describe('Chrome extension', function () { it("should contain inspector monitor's component", async () => { await delay(1000); const val = await driver - .findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]')) + .findElement(webdriver.By.xpath('//div[@data-testid="inspector"]')) .getText(); expect(val).toBeDefined(); }); it('should contain an empty actions list', async () => { const val = await driver - .findElement( - webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'), - ) + .findElement(webdriver.By.xpath('//div[@data-testid="actionListRows"]')) .getText(); expect(val).toBe(''); }); @@ -72,9 +70,7 @@ describe('Chrome extension', function () { const result = await driver.wait( driver - .findElement( - webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'), - ) + .findElement(webdriver.By.xpath('//div[@data-testid="actionListRows"]')) .getText() .then((val) => { return actionsPattern.test(val); diff --git a/extension/test/electron/devpanel.spec.js b/extension/test/electron/devpanel.spec.js index 94dc5065..ca59117a 100644 --- a/extension/test/electron/devpanel.spec.js +++ b/extension/test/electron/devpanel.spec.js @@ -89,7 +89,7 @@ describe('DevTools panel for Electron', function () { it('should contain INIT action', async () => { const element = await driver.wait( webdriver.until.elementLocated( - webdriver.By.xpath('//div[contains(@class, "actionListRows-")]'), + webdriver.By.xpath('//div[@data-testid="actionListRows"]'), ), 5000, 'Element not found', @@ -100,7 +100,7 @@ describe('DevTools panel for Electron', function () { it("should contain Inspector monitor's component", async () => { const val = await driver - .findElement(webdriver.By.xpath('//div[contains(@class, "inspector-")]')) + .findElement(webdriver.By.xpath('//div[@data-testid="inspector"]')) .getText(); expect(val).toBeDefined(); });