mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
Fix e2e tests
This commit is contained in:
parent
5a1c5fe635
commit
ebc7a5be7c
|
@ -6,26 +6,26 @@ export const delay = (time) =>
|
||||||
export const switchMonitorTests = {
|
export const switchMonitorTests = {
|
||||||
'should switch to Log Monitor': async function () {
|
'should switch to Log Monitor': async function () {
|
||||||
await this.driver
|
await this.driver
|
||||||
.findElement(webdriver.By.xpath('//div[text()="Inspector"]'))
|
.findElement(webdriver.By.xpath('//button[text()="Inspector"]'))
|
||||||
.click();
|
.click();
|
||||||
await delay(500); // Wait till menu is fully opened
|
await delay(500); // Wait till menu is fully opened
|
||||||
await this.driver
|
await this.driver
|
||||||
.findElement(webdriver.By.xpath('//div[text()="Log monitor"]'))
|
.findElement(webdriver.By.xpath('//button[text()="Log monitor"]'))
|
||||||
.click();
|
.click();
|
||||||
await delay(500);
|
await delay(500);
|
||||||
await this.driver.findElement(
|
await this.driver.findElement(
|
||||||
webdriver.By.xpath('//div[a[text()="Reset"] and .//a[text()="Revert"]]')
|
webdriver.By.xpath('//div[div[button[text()="Reset"]] and .//div[button[text()="Revert"]]]')
|
||||||
);
|
);
|
||||||
await delay(500);
|
await delay(500);
|
||||||
},
|
},
|
||||||
|
|
||||||
'should switch to Chart Monitor': async function () {
|
'should switch to Chart Monitor': async function () {
|
||||||
await this.driver
|
await this.driver
|
||||||
.findElement(webdriver.By.xpath('//div[text()="Log monitor"]'))
|
.findElement(webdriver.By.xpath('//button[text()="Log monitor"]'))
|
||||||
.click();
|
.click();
|
||||||
await delay(500); // Wait till menu is fully opened
|
await delay(500); // Wait till menu is fully opened
|
||||||
await this.driver
|
await this.driver
|
||||||
.findElement(webdriver.By.xpath('//div[text()="Chart"]'))
|
.findElement(webdriver.By.xpath('//button[text()="Chart"]'))
|
||||||
.click();
|
.click();
|
||||||
await delay(500);
|
await delay(500);
|
||||||
await this.driver.findElement(
|
await this.driver.findElement(
|
||||||
|
@ -36,11 +36,11 @@ export const switchMonitorTests = {
|
||||||
|
|
||||||
'should switch back to Inspector Monitor': async function () {
|
'should switch back to Inspector Monitor': async function () {
|
||||||
await this.driver
|
await this.driver
|
||||||
.findElement(webdriver.By.xpath('//div[text()="Chart"]'))
|
.findElement(webdriver.By.xpath('//button[text()="Chart"]'))
|
||||||
.click();
|
.click();
|
||||||
await delay(1000); // Wait till menu is fully opened
|
await delay(1000); // Wait till menu is fully opened
|
||||||
await this.driver
|
await this.driver
|
||||||
.findElement(webdriver.By.xpath('//div[text()="Inspector"]'))
|
.findElement(webdriver.By.xpath('//button[text()="Inspector"]'))
|
||||||
.click();
|
.click();
|
||||||
await delay(1500); // Wait till menu is closed
|
await delay(1500); // Wait till menu is closed
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user