1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update ui tests for palette css namespace

This commit is contained in:
Nick O'Leary 2019-04-29 22:41:31 +01:00
parent a2632fdcc8
commit d251a30cb8
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
3 changed files with 16 additions and 16 deletions

View File

@ -102,7 +102,7 @@ module.exports = {
}); });
}); });
browser.url(url); browser.url(url);
browser.waitForExist('#palette_node_inject'); browser.waitForExist('#red-ui-palette-node_inject');
} catch (err) { } catch (err) {
console.log(err); console.log(err);
throw err; throw err;

View File

@ -16,23 +16,23 @@
var idMap = { var idMap = {
// input // input
"inject": "#palette_node_inject", "inject": "#red-ui-palette-node_inject",
"httpin": "#palette_node_http_in", "httpin": "#red-ui-palette-node_http_in",
"mqttIn": "#palette_node_mqtt_in", "mqttIn": "#red-ui-palette-node_mqtt_in",
// output // output
"debug": "#palette_node_debug", "debug": "#red-ui-palette-node_debug",
"httpResponse": "#palette_node_http_response", "httpResponse": "#red-ui-palette-node_http_response",
"mqttOut": "#palette_node_mqtt_out", "mqttOut": "#red-ui-palette-node_mqtt_out",
// function // function
"function": "#palette_node_function", "function": "#red-ui-palette-node_function",
"template": "#palette_node_template", "template": "#red-ui-palette-node_template",
"change": "#palette_node_change", "change": "#red-ui-palette-node_change",
"range": "#palette_node_range", "range": "#red-ui-palette-node_range",
"httpRequest": "#palette_node_http_request", "httpRequest": "#red-ui-palette-node_http_request",
"html": "#palette_node_html", "html": "#red-ui-palette-node_html",
"json": "#palette_node_json", "json": "#red-ui-palette-node_json",
// storage // storage
"filein": "#palette_node_file_in", "filein": "#red-ui-palette-node_file_in",
}; };
function getId(type) { function getId(type) {

View File

@ -46,7 +46,7 @@ function addNode(type, x, y) {
} }
browser.moveToObject(palette.getId(type)); browser.moveToObject(palette.getId(type));
browser.buttonDown(); browser.buttonDown();
browser.moveToObject("#palette-search", previousX + 300, previousY + 100); // adjust to the top-left corner of workspace. browser.moveToObject("#red-ui-palette-search", previousX + 300, previousY + 100); // adjust to the top-left corner of workspace.
browser.buttonUp(); browser.buttonUp();
// Last node is the one that has been created right now. // Last node is the one that has been created right now.
var nodeElement = browser.elements('//*[@class="node nodegroup"][last()]'); var nodeElement = browser.elements('//*[@class="node nodegroup"][last()]');