From f4283ebb589d29167e603292592873b7ebba9de9 Mon Sep 17 00:00:00 2001 From: rahuljain-dev Date: Thu, 22 Feb 2024 17:44:54 +0530 Subject: [PATCH] WEBUI-1455: Analysis on retention cicd ftest failure --- packages/nuxeo-web-ui-ftest/features/step_definitions/admin.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/audit.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/browser.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/bulk_edit.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/clipboard.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/cloud.js | 3 ++- .../features/step_definitions/collections.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/comments.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/compare.js | 3 ++- .../features/step_definitions/create_dialog.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/csv-import.js | 3 ++- .../features/step_definitions/doc_suggestion.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/document.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/favorites.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/group.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/history.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/home.js | 3 ++- .../features/step_definitions/import_dialog.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/login.js | 3 ++- .../features/step_definitions/permissions.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/personal.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/picture.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/preview.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/recents.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/search.js | 3 ++- .../features/step_definitions/spreadsheet.js | 3 ++- .../features/step_definitions/support/fixtures/comments.js | 3 ++- .../features/step_definitions/support/fixtures/consumers.js | 3 ++- .../features/step_definitions/support/fixtures/documents.js | 3 ++- .../features/step_definitions/support/fixtures/groups.js | 3 ++- .../features/step_definitions/support/fixtures/localstorage.js | 3 ++- .../features/step_definitions/support/fixtures/oauth2.js | 3 ++- .../features/step_definitions/support/fixtures/providers.js | 3 ++- .../features/step_definitions/support/fixtures/searches.js | 3 ++- .../features/step_definitions/support/fixtures/users.js | 3 ++- .../features/step_definitions/support/fixtures/vocabularies.js | 3 ++- .../features/step_definitions/support/fixtures/workflows.js | 3 ++- .../features/step_definitions/support/screenshots.js | 3 ++- .../features/step_definitions/support/ui_config.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/tasks.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/trash.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/ui.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/upload.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/user.js | 3 ++- .../features/step_definitions/user_settings.js | 3 ++- .../nuxeo-web-ui-ftest/features/step_definitions/versions.js | 3 ++- packages/nuxeo-web-ui-ftest/features/step_definitions/video.js | 3 ++- .../features/step_definitions/vocabularies.js | 3 ++- 48 files changed, 96 insertions(+), 48 deletions(-) diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/admin.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/admin.js index 3b0d084208..fd567e449f 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/admin.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/admin.js @@ -1,4 +1,5 @@ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; Then('I can see the administration menu', async function() { const { drawer } = this.ui; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/audit.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/audit.js index b9c388571e..4652d1ddbe 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/audit.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/audit.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can see the audit table', async function() { const isAuditTableDisplay = await this.ui.administration.audit.isAuditTableDisplayed; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js index 961e1c18b8..2a7c06a268 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/browser.js @@ -1,5 +1,6 @@ /* eslint-disable no-await-in-loop */ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; Then('I can see the {word} tree', async function(tab) { const drawer = await this.ui.drawer; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/bulk_edit.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/bulk_edit.js index 1659f6fa4b..4226625739 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/bulk_edit.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/bulk_edit.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I click the bulk edit button with {string} layout', async function(layoutName) { const browser = await this.ui.browser; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/clipboard.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/clipboard.js index fa726d4dc9..9c2fef7c08 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/clipboard.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/clipboard.js @@ -1,5 +1,6 @@ /* eslint-disable no-await-in-loop */ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I click remove button for {string} document', async function(title) { const drawer = await this.ui.drawer; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/cloud.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/cloud.js index 538b934570..557aefa324 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/cloud.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/cloud.js @@ -1,4 +1,5 @@ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; Given('provider {string} exists in providers', async (provider) => fixtures.providers.create({ diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/collections.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/collections.js index c345400b97..2c7ca18204 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/collections.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/collections.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can see the {string} collection', async function(name) { const collection = await this.ui.drawer.collections.waitForHasCollection(name); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/comments.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/comments.js index bd1a48b75a..89891d4d3a 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/comments.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/comments.js @@ -1,5 +1,6 @@ /* eslint-disable no-await-in-loop */ -import { Given, When, Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, When, Then } from '@cucumber/cucumber'; Given('I have the following comment thread:', function(table) { /* diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/compare.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/compare.js index c5c3dab542..58e7c07749 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/compare.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/compare.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I can click on the compare button', async function() { await this.ui.browser.waitForVisible(); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/create_dialog.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/create_dialog.js index 9fa6237198..e2f7bc5cbf 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/create_dialog.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/create_dialog.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; let currentDocType; let selectedTabName; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/csv-import.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/csv-import.js index ac0fc55759..0b42e13a0b 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/csv-import.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/csv-import.js @@ -1,4 +1,5 @@ -import { When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { When } from '@cucumber/cucumber'; /** * Import the csv file diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/doc_suggestion.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/doc_suggestion.js index ce4bf642ef..eb3ebd63a0 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/doc_suggestion.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/doc_suggestion.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can navigate to the document selected in the {string} single document suggestion widget', async function(name) { const docpageEle = await this.ui.browser.documentPage('DocSuggestion'); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/document.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/document.js index 2bc5462026..30172d6bf8 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/document.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/document.js @@ -1,5 +1,6 @@ /* eslint-disable no-await-in-loop */ -import { Given, When, Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, When, Then } from '@cucumber/cucumber'; import { url } from '../../pages/helpers'; Given('I have a {word} document', async function(docType) { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/favorites.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/favorites.js index fa5347668b..a4267d776d 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/favorites.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/favorites.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can see the document belongs to the favorites', async function() { const drawerEle = await this.ui.drawer; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/group.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/group.js index 1556dd8736..f85a301aae 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/group.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/group.js @@ -1,5 +1,6 @@ /* eslint-disable no-await-in-loop */ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When(/^I select group from the dropdown menu$/, async function() { const groupELe = this.ui.group; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/history.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/history.js index 6cf777f0e8..82e3fc61f7 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/history.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/history.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can see the history table', async function() { const historyTable = await this.ui.historyTable; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/home.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/home.js index f0a52bd1ab..9522f8ff8c 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/home.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/home.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I click the Nuxeo logo', async function() { const home = await this.ui.goHome(); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/import_dialog.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/import_dialog.js index 32350f59e1..291b1a4b4e 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/import_dialog.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/import_dialog.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I click on Add Properties button', async function() { const createDialog = await this.ui.createDialog; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/login.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/login.js index dd60cb9ee5..973d8f9eac 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/login.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/login.js @@ -1,4 +1,5 @@ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; import Login from '../../pages/login'; import UI from '../../pages/ui'; import { url } from '../../pages/helpers'; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/permissions.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/permissions.js index cce3f94d76..6d8946a08a 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/permissions.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/permissions.js @@ -1,5 +1,6 @@ /* eslint-disable no-await-in-loop */ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; When(/^I give (\w+) permission to "([^"]*)" on the document$/, async function(permission, name) { const viewButtonEle = await this.ui.browser.permissionsViewButton; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/personal.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/personal.js index c970b561b1..bb1234b5f7 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/personal.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/personal.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can see my personal workspace', async function() { const personalEle = await this.ui.drawer.personal; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/picture.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/picture.js index 2d3e9a21c5..4519e914b2 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/picture.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/picture.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can see the picture formats panel', async function() { const uiBrowser = await this.ui.browser; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/preview.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/preview.js index b29bf6a33e..7e72d5a52e 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/preview.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/preview.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I click the preview button', async function() { const page = await this.ui.browser.documentPage(this.doc.type); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/recents.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/recents.js index d6c7a16a93..a0a5e7b985 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/recents.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/recents.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I can click on recently viewed documents item {string}', async function(title) { await this.ui.drawer.recents.waitForVisible(); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/search.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/search.js index 795501c279..d4e3e6bfbe 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/search.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/search.js @@ -1,4 +1,5 @@ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; import { url } from '../../pages/helpers'; Then('I can see the {string} search panel', function(name) { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/spreadsheet.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/spreadsheet.js index 1af26bcb8d..5c32f87901 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/spreadsheet.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/spreadsheet.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; import Spreadsheet from '../../pages/spreadsheet'; When('I open the spreadsheet', async function() { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/comments.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/comments.js index 1e4d134a26..aee4eb1c59 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/comments.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/comments.js @@ -1,5 +1,6 @@ import Nuxeo from 'nuxeo'; -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; global.addedComments = []; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/consumers.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/consumers.js index 3f84212299..9c00f44276 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/consumers.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/consumers.js @@ -1,4 +1,5 @@ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; const endPoint = '/oauth2/client/'; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/documents.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/documents.js index 80e53cc37b..77fa988f15 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/documents.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/documents.js @@ -1,4 +1,5 @@ -import { After, Before } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After, Before } from '@cucumber/cucumber'; import documentService from '../services/documentService'; fixtures.documents = documentService; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/groups.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/groups.js index 7753a1c0ab..c343cccd52 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/groups.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/groups.js @@ -1,4 +1,5 @@ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; global.groups = { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/localstorage.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/localstorage.js index 15ba958f3c..ee94c0513e 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/localstorage.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/localstorage.js @@ -1,4 +1,5 @@ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; /* global document, localStorage */ // cleans up local storage fo the current user diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/oauth2.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/oauth2.js index 8c44cf744a..7175372856 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/oauth2.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/oauth2.js @@ -1,7 +1,8 @@ /** * Provisioning of OAuth2 providers, clients and tokens via oauth2/directory rest endpoint */ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; import '../services/date'; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/providers.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/providers.js index dcd5bafc22..816a713fe1 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/providers.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/providers.js @@ -1,4 +1,5 @@ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; const endPoint = '/oauth2/provider/'; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/searches.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/searches.js index d5eeb10ba3..b5d3db9278 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/searches.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/searches.js @@ -1,4 +1,5 @@ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; fixtures.savedSearches = { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/users.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/users.js index f92294883e..7d4b375ba6 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/users.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/users.js @@ -1,4 +1,5 @@ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; global.users = { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/vocabularies.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/vocabularies.js index 3d4914d2d6..0997408d05 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/vocabularies.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/vocabularies.js @@ -1,4 +1,5 @@ -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; global.addedVocabularyEntries = []; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/workflows.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/workflows.js index 48fd80bedf..bbd24df6b4 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/workflows.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/workflows.js @@ -1,5 +1,6 @@ import Nuxeo from 'nuxeo'; -import { After } from '../../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After } from '@cucumber/cucumber'; import nuxeo from '../services/client'; global.runningWorkflows = []; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js index ced0ad9c3d..0caccfdaa3 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/screenshots.js @@ -1,6 +1,7 @@ import * as path from 'path'; import * as mkdirp from 'mkdirp'; -import { After, Status } from '../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { After, Status } from '@cucumber/cucumber'; After(async function(scenario) { const { status } = scenario.result; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/ui_config.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/ui_config.js index 5e20d2144d..0309ff7d60 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/support/ui_config.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/support/ui_config.js @@ -1,4 +1,5 @@ -import { Before } from '../../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Before } from '@cucumber/cucumber'; Before((e) => { const { tags } = e.pickle; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/tasks.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/tasks.js index c8b17c9e3e..414722aa33 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/tasks.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/tasks.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I click the View Tasks Dashboard link', async function() { const dashboardLink = await this.ui.drawer.tasks.dashboardLink; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/trash.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/trash.js index 0a1a64d4fa..28496bb9d7 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/trash.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/trash.js @@ -1,4 +1,5 @@ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; Given(/^I have the following trashed documents$/, (table) => { const tasks = table.rows().map((row) => () => { diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/ui.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/ui.js index a529a6afb0..3d0572cb9e 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/ui.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/ui.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When('I click the {string} button', async function(button) { await driver.pause(1000); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/upload.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/upload.js index 2ba125e33e..9d05cf9790 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/upload.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/upload.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then(/^I upload file "(.+)" as document content/, async function(file) { const element = await this.ui.browser.el.element('nuxeo-dropzone'); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/user.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/user.js index 31b19323c0..62bb3a74f4 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/user.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/user.js @@ -1,4 +1,5 @@ -import { Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then, When } from '@cucumber/cucumber'; When(/^I select user from the dropdown menu$/, async function() { const dropdownEle = await this.ui.user.dropdown; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/user_settings.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/user_settings.js index f1ef47f954..33f0027056 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/user_settings.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/user_settings.js @@ -1,4 +1,5 @@ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; /* Cloud Services */ diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/versions.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/versions.js index fb1dbe6dfd..735fbcf7b1 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/versions.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/versions.js @@ -1,4 +1,5 @@ -import { When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { When } from '@cucumber/cucumber'; When(/^I can see the version info bar with text "(.*)"$/, async function(text) { const page = await this.ui.browser.documentPage(this.doc.type); diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/video.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/video.js index 91605bc7a2..13455bb6cd 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/video.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/video.js @@ -1,4 +1,5 @@ -import { Then } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Then } from '@cucumber/cucumber'; Then('I can see the video conversions panel', async function() { const uiBrowser = await this.ui.browser; diff --git a/packages/nuxeo-web-ui-ftest/features/step_definitions/vocabularies.js b/packages/nuxeo-web-ui-ftest/features/step_definitions/vocabularies.js index 47b5c6a874..3517f968b5 100644 --- a/packages/nuxeo-web-ui-ftest/features/step_definitions/vocabularies.js +++ b/packages/nuxeo-web-ui-ftest/features/step_definitions/vocabularies.js @@ -1,4 +1,5 @@ -import { Given, Then, When } from '../../node_modules/@cucumber/cucumber'; +// eslint-disable-next-line import/no-extraneous-dependencies +import { Given, Then, When } from '@cucumber/cucumber'; Given('I am on vocabulary page', async function() { const administration = await this.ui.administration;