Fixed UI test problems caused by timing

This commit is contained in:
nakanishi
2018-10-31 09:27:33 +09:00
parent c0d8f904b3
commit d033c24fe5
12 changed files with 75 additions and 60 deletions

View File

@@ -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) {

View File

@@ -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) {