try to fix tests failing only on travis

This commit is contained in:
Adina Parpalita
2020-01-05 22:45:15 +02:00
parent 8077ec5078
commit 98e10adebd
2 changed files with 17 additions and 14 deletions

View File

@@ -23,7 +23,7 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
import { ElementFinder, ElementArrayFinder, by } from 'protractor';
import { ElementFinder, ElementArrayFinder, by, browser } from 'protractor';
import { GenericFilterPanel } from './generic-filter-panel';
export class FacetFilter extends GenericFilterPanel {
@@ -85,7 +85,8 @@ export class FacetFilter extends GenericFilterPanel {
async checkCategory(name: string): Promise<void> {
const option = this.facets.filter(async (elem) => (await elem.getText()).includes(name)).first();
await option.click();
await browser.actions().mouseMove(option).perform();
await browser.actions().click().perform();
}
async filterCategoriesBy(name: string): Promise<void> {