diff --git a/extension/test/chrome/extension.spec.js b/extension/test/chrome/extension.spec.js index c56046ca..35520bf1 100644 --- a/extension/test/chrome/extension.spec.js +++ b/extension/test/chrome/extension.spec.js @@ -37,25 +37,6 @@ describe('Chrome extension', function () { expect(title).toBe('Redux DevTools'); }); - it("should contain inspector monitor's component", async () => { - await delay(1000); - const val = await driver - .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[@data-testid="actionListRows"]')) - .getText(); - expect(val).toBe(''); - }); - - Object.keys(switchMonitorTests).forEach((description) => - it(description, () => switchMonitorTests[description](driver)), - ); - it('should get actions list', async () => { const url = 'https://zalmoxisus.github.io/examples/router/'; await driver.executeScript(`window.open('${url}')`); @@ -68,6 +49,7 @@ describe('Chrome extension', function () { await driver.switchTo().window(tabs[0]); + await delay(1000); const result = await driver.wait( driver .findElement(webdriver.By.xpath('//div[@data-testid="actionListRows"]')) @@ -80,4 +62,15 @@ describe('Chrome extension', function () { ); expect(result).toBeTruthy(); }); + + it("should contain inspector monitor's component", async () => { + const val = await driver + .findElement(webdriver.By.xpath('//div[@data-testid="inspector"]')) + .getText(); + expect(val).toBeDefined(); + }); + + Object.keys(switchMonitorTests).forEach((description) => + it(description, () => switchMonitorTests[description](driver)), + ); });