mirror of
https://github.com/node-red/node-red.git
synced 2025-12-26 23:26:46 +01:00
Add UI test cases for messages on cookbook (#1562)
This commit is contained in:
committed by
Nick O'Leary
parent
fd4fdb31b5
commit
8d7c157751
@@ -15,17 +15,17 @@
|
||||
**/
|
||||
|
||||
function open() {
|
||||
browser.click('#red-ui-tab-debug');
|
||||
browser.clickWithWait('#red-ui-tab-debug');
|
||||
}
|
||||
|
||||
function getMessage() {
|
||||
var debugMessagePath = '//div[@class="debug-content debug-content-list"]//span[contains(@class, "debug-message-type")]';
|
||||
browser.waitForExist(debugMessagePath);
|
||||
return browser.getText(debugMessagePath);
|
||||
function getMessage(index) {
|
||||
index = index ? index : 1;
|
||||
var debugMessagePath = '//div[@class="debug-content debug-content-list"]/div[contains(@class,"debug-message")][' + index + ']//span[contains(@class, "debug-message-type")]';
|
||||
return browser.getTextWithWait(debugMessagePath);
|
||||
}
|
||||
|
||||
function clearMessage() {
|
||||
browser.click('//a[@id="debug-tab-clear"]');
|
||||
browser.clickWithWait('//a[@id="debug-tab-clear"]');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user