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

@ -33,18 +33,20 @@ jobs:
- npm run test:ci - npm run test:ci
- bash <(curl -s https://codecov.io/bash) -X gcov - bash <(curl -s https://codecov.io/bash) -X gcov
- stage: e2e - stage: e2e
name: Test Suite appNavigation&search # name: Test Suite appNavigation&search
script: npm run build.e2e && SUITE="--suite authentication,listViews,navigation,application,pagination,search" npm run e2e:docker # script: npm run build.e2e && SUITE="--suite authentication,listViews,navigation,application,pagination,search" npm run e2e:docker
- name: Test Suite actionsAvailable # - name: Test Suite actionsAvailable
script: npm run build.e2e && SUITE="--suite actionsAvailable" npm run e2e:docker # script: npm run build.e2e && SUITE="--suite actionsAvailable" npm run e2e:docker
- name: Test Suite addRemoveContent # - name: Test Suite addRemoveContent
script: npm run build.e2e && SUITE="--suite addRemoveContent" npm run e2e:docker # script: npm run build.e2e && SUITE="--suite addRemoveContent" npm run e2e:docker
- name: Test Suite manageContent # - name: Test Suite manageContent
script: npm run build.e2e && SUITE="--suite manageContent" npm run e2e:docker # script: npm run build.e2e && SUITE="--suite manageContent" npm run e2e:docker
- name: Test Suite sharingContent&markFavorite # - name: Test Suite sharingContent&markFavorite
script: npm run build.e2e && SUITE="--suite sharingContent" npm run e2e:docker # script: npm run build.e2e && SUITE="--suite sharingContent" npm run e2e:docker
- name: Test Suite viewContent&metadata&extensions # - name: Test Suite viewContent&metadata&extensions
script: npm run build.e2e && SUITE="--suite viewer,infoDrawer,extensions" npm run e2e:docker # script: npm run build.e2e && SUITE="--suite viewer,infoDrawer,extensions" npm run e2e:docker
name: Test Suite search
script: npm run build.e2e && SUITE="--suite search" npm run e2e:docker
after_failure: after_failure:
- alfrescoContainerId=$(docker ps -a | grep 'alfresco-content-repository-community' | awk '{print $1}') - alfrescoContainerId=$(docker ps -a | grep 'alfresco-content-repository-community' | awk '{print $1}')

View File

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