mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fixed UI test problems caused by timing
This commit is contained in:
@@ -14,8 +14,13 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
function open() {
|
||||
function open(retainMessage) {
|
||||
browser.clickWithWait('#red-ui-tab-debug-link-button');
|
||||
|
||||
if (!retainMessage) {
|
||||
// Clear old messages
|
||||
browser.clickWithWait('//a[@id="debug-tab-clear"]');
|
||||
}
|
||||
}
|
||||
|
||||
function getMessage(index) {
|
||||
|
@@ -73,6 +73,8 @@ function deploy() {
|
||||
});
|
||||
});
|
||||
browser.waitForText('#btn-deploy', 2000);
|
||||
// Need additional wait until buttons becomes clickable.
|
||||
browser.pause(50);
|
||||
}
|
||||
|
||||
function init(width, height) {
|
||||
|
Reference in New Issue
Block a user