mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-04-16 22:41:59 +03:00
Fix Chrome E2E tests
This commit is contained in:
parent
3773787eab
commit
0bdb38e868
|
@ -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)),
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user