#1052 e2e extension para refrescar formularios/vistas

This commit is contained in:
Carlos Jimenez Ruiz 2019-01-27 20:49:15 +01:00
parent 84c680d8ed
commit b144f24f24
1 changed files with 8 additions and 0 deletions

View File

@ -376,6 +376,14 @@ let actions = {
.catch(() => {
done(new Error(`.datePicker(), for ${daySelector} timed out`));
});
},
reloadSection: function(sectionRoute, done) {
this.waitToClick('vn-icon[icon="desktop_windows"]')
.wait('vn-card.summary')
.waitToClick(`vn-left-menu li > a[ui-sref="${sectionRoute}"]`)
.then(done)
.catch(done);
}
};