From fe20f3e5308156f70b7b37f9bc5afe0d8d3bc20d Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Wed, 2 Oct 2024 12:50:38 -0400 Subject: [PATCH] UITEST-120 migrate imports from "bigtest" to "@interactors/html" Just like it says on the tin: migrate imports from `bigtest`, which contains many unmaintained dependencies (e.g. old versions of `minimist` vulnerable to CVE-2021-44906), to imports from `@interactors/html` which is maintained. Refs UITEST-120 --- CHANGELOG.md | 1 + cypress/support/fragments/bulk-edit/bulk-edit-actions.js | 3 +-- cypress/support/fragments/check-in-actions/checkInPane.js | 3 +-- cypress/support/fragments/circulation-log/searchPane.js | 2 +- cypress/support/fragments/circulation-log/searchResults.js | 2 +- cypress/support/fragments/circulation/editStaffClips.js | 2 +- .../fragments/consortium-manager/modal/confirm-create.js | 2 +- .../fragments/consortium-manager/modal/confirm-share.js | 2 +- .../fragments/consortium-manager/modal/delete-cancel-reason.js | 2 +- cypress/support/fragments/data-export/dataExportResults.js | 2 +- .../data-export/exportJobProfile/exportJobProfiles.js | 2 +- .../exportMappingProfile/exportFieldMappingProfiles.js | 2 +- .../exportMappingProfile/singleFieldMappingProfilePane.js | 2 +- cypress/support/fragments/data_import/matchOnVRN.js | 2 +- .../support/fragments/inventory/holdings/inventoryHoldings.js | 2 +- cypress/support/fragments/inventory/search/browseSubjects.js | 2 +- cypress/support/fragments/loans/loansPage.js | 2 +- cypress/support/fragments/oai-pmh/general.js | 2 +- .../dataImport/fieldMappingProfile/fieldMappingProfileView.js | 3 +-- .../settings/dataImport/matchProfiles/newMatchProfile.js | 3 +-- .../inventory/instance-holdings-item/urlRelationship.js | 2 +- cypress/support/fragments/settings/users/customFields.js | 2 +- cypress/support/fragments/settings/users/paymentMethods.js | 2 +- cypress/support/fragments/settings/users/waiveReasons.js | 2 +- cypress/support/fragments/users/feeFines.js | 2 +- cypress/support/fragments/users/loans/userLoans.js | 2 +- cypress/support/fragments/users/userCharge.js | 2 +- package.json | 1 - 28 files changed, 27 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccb446767f..fe62611997 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Update `` interactor. Refs STCOM-1304. - Hide call number type options for Local, Other scheme, and SuDoc. Refs FAT-16052. - Change the labels of the Classification and Call number sections in Inventory browse options. Refs FAT-16040. +- Migrate imports from `bigtest` to `@interactors/html`. Refs UITEST-120. ## [4.7.0](https://github.com/folio-org/stripes-testing/tree/v4.7.0) (2024-03-12) diff --git a/cypress/support/fragments/bulk-edit/bulk-edit-actions.js b/cypress/support/fragments/bulk-edit/bulk-edit-actions.js index a28599c291..fb015d4407 100644 --- a/cypress/support/fragments/bulk-edit/bulk-edit-actions.js +++ b/cypress/support/fragments/bulk-edit/bulk-edit-actions.js @@ -1,5 +1,4 @@ -import { HTML, including } from '@interactors/html'; -import { not } from 'bigtest'; +import { HTML, including, not } from '@interactors/html'; import FileManager from '../../utils/fileManager'; import { Accordion, diff --git a/cypress/support/fragments/check-in-actions/checkInPane.js b/cypress/support/fragments/check-in-actions/checkInPane.js index 19485f6e74..3f7aa94fee 100644 --- a/cypress/support/fragments/check-in-actions/checkInPane.js +++ b/cypress/support/fragments/check-in-actions/checkInPane.js @@ -1,5 +1,4 @@ -import { matching } from 'bigtest'; -import { HTML, including } from '@interactors/html'; +import { matching, HTML, including } from '@interactors/html'; import { MultiColumnListCell, MultiColumnListRow } from '../../../../interactors'; import DateTools from '../../utils/dateTools'; diff --git a/cypress/support/fragments/circulation-log/searchPane.js b/cypress/support/fragments/circulation-log/searchPane.js index 111001e454..d7be3912c0 100644 --- a/cypress/support/fragments/circulation-log/searchPane.js +++ b/cypress/support/fragments/circulation-log/searchPane.js @@ -1,4 +1,4 @@ -import { matching } from 'bigtest'; +import { matching } from '@interactors/html'; import { Accordion, Button, diff --git a/cypress/support/fragments/circulation-log/searchResults.js b/cypress/support/fragments/circulation-log/searchResults.js index a9e62d10a6..1e85a4b5ab 100644 --- a/cypress/support/fragments/circulation-log/searchResults.js +++ b/cypress/support/fragments/circulation-log/searchResults.js @@ -1,4 +1,4 @@ -import { matching } from 'bigtest'; +import { matching } from '@interactors/html'; import { MultiColumnList, MultiColumnListCell, diff --git a/cypress/support/fragments/circulation/editStaffClips.js b/cypress/support/fragments/circulation/editStaffClips.js index 2619086d7e..898f467d22 100644 --- a/cypress/support/fragments/circulation/editStaffClips.js +++ b/cypress/support/fragments/circulation/editStaffClips.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Button, Checkbox, diff --git a/cypress/support/fragments/consortium-manager/modal/confirm-create.js b/cypress/support/fragments/consortium-manager/modal/confirm-create.js index 68347fcd73..ef304f3b7e 100644 --- a/cypress/support/fragments/consortium-manager/modal/confirm-create.js +++ b/cypress/support/fragments/consortium-manager/modal/confirm-create.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Button, Modal } from '../../../../../interactors'; const confirmShareToAllModal = Modal({ id: 'create-controlled-vocab-entry-confirmation' }); diff --git a/cypress/support/fragments/consortium-manager/modal/confirm-share.js b/cypress/support/fragments/consortium-manager/modal/confirm-share.js index 6a582faf63..97bdb755be 100644 --- a/cypress/support/fragments/consortium-manager/modal/confirm-share.js +++ b/cypress/support/fragments/consortium-manager/modal/confirm-share.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Button, Modal } from '../../../../../interactors'; const confirmShareToAllModal = Modal({ id: 'share-controlled-vocab-entry-confirmation' }); diff --git a/cypress/support/fragments/consortium-manager/modal/delete-cancel-reason.js b/cypress/support/fragments/consortium-manager/modal/delete-cancel-reason.js index c996b9dc45..a4e3945393 100644 --- a/cypress/support/fragments/consortium-manager/modal/delete-cancel-reason.js +++ b/cypress/support/fragments/consortium-manager/modal/delete-cancel-reason.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Button, Modal } from '../../../../../interactors'; const deleteCancelReasonModal = Modal({ id: 'delete-controlled-vocab-entry-confirmation' }); diff --git a/cypress/support/fragments/data-export/dataExportResults.js b/cypress/support/fragments/data-export/dataExportResults.js index 064f652ccb..b7c3d1137d 100644 --- a/cypress/support/fragments/data-export/dataExportResults.js +++ b/cypress/support/fragments/data-export/dataExportResults.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { ListRow, MultiColumnListCell, diff --git a/cypress/support/fragments/data-export/exportJobProfile/exportJobProfiles.js b/cypress/support/fragments/data-export/exportJobProfile/exportJobProfiles.js index 3b0e5b84cb..6dbf69c58f 100644 --- a/cypress/support/fragments/data-export/exportJobProfile/exportJobProfiles.js +++ b/cypress/support/fragments/data-export/exportJobProfile/exportJobProfiles.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Pane, NavListItem, diff --git a/cypress/support/fragments/data-export/exportMappingProfile/exportFieldMappingProfiles.js b/cypress/support/fragments/data-export/exportMappingProfile/exportFieldMappingProfiles.js index 5c5633058e..f9ff009845 100644 --- a/cypress/support/fragments/data-export/exportMappingProfile/exportFieldMappingProfiles.js +++ b/cypress/support/fragments/data-export/exportMappingProfile/exportFieldMappingProfiles.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Button, Pane, diff --git a/cypress/support/fragments/data-export/exportMappingProfile/singleFieldMappingProfilePane.js b/cypress/support/fragments/data-export/exportMappingProfile/singleFieldMappingProfilePane.js index ddd7fac32f..0d6b8db570 100644 --- a/cypress/support/fragments/data-export/exportMappingProfile/singleFieldMappingProfilePane.js +++ b/cypress/support/fragments/data-export/exportMappingProfile/singleFieldMappingProfilePane.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Accordion, PaneHeader, diff --git a/cypress/support/fragments/data_import/matchOnVRN.js b/cypress/support/fragments/data_import/matchOnVRN.js index 2c5231c30a..39cfe354e4 100644 --- a/cypress/support/fragments/data_import/matchOnVRN.js +++ b/cypress/support/fragments/data_import/matchOnVRN.js @@ -1,5 +1,5 @@ /* eslint-disable cypress/no-unnecessary-waiting */ -import { not } from 'bigtest'; +import { not } from '@interactors/html'; import { Accordion, Button, diff --git a/cypress/support/fragments/inventory/holdings/inventoryHoldings.js b/cypress/support/fragments/inventory/holdings/inventoryHoldings.js index a80c803d12..b3b85ba3e2 100644 --- a/cypress/support/fragments/inventory/holdings/inventoryHoldings.js +++ b/cypress/support/fragments/inventory/holdings/inventoryHoldings.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Accordion } from '../../../../../interactors'; import InventoryItems from '../item/inventoryItems'; diff --git a/cypress/support/fragments/inventory/search/browseSubjects.js b/cypress/support/fragments/inventory/search/browseSubjects.js index 69c68ce018..fe50f42493 100644 --- a/cypress/support/fragments/inventory/search/browseSubjects.js +++ b/cypress/support/fragments/inventory/search/browseSubjects.js @@ -1,5 +1,5 @@ /* eslint-disable no-dupe-keys */ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { matching, Button, diff --git a/cypress/support/fragments/loans/loansPage.js b/cypress/support/fragments/loans/loansPage.js index facd9d90a9..6204d12747 100644 --- a/cypress/support/fragments/loans/loansPage.js +++ b/cypress/support/fragments/loans/loansPage.js @@ -1,4 +1,4 @@ -import { matching } from 'bigtest'; +import { matching } from '@interactors/html'; import { Button, Pane, diff --git a/cypress/support/fragments/oai-pmh/general.js b/cypress/support/fragments/oai-pmh/general.js index cd8b46718d..f2c6fb4e6e 100644 --- a/cypress/support/fragments/oai-pmh/general.js +++ b/cypress/support/fragments/oai-pmh/general.js @@ -1,4 +1,4 @@ -import { matching } from 'bigtest'; +import { matching } from '@interactors/html'; import { Checkbox, Pane, Select, TextArea, TextField, Button } from '../../../../interactors'; const generalPane = Pane('General'); diff --git a/cypress/support/fragments/settings/dataImport/fieldMappingProfile/fieldMappingProfileView.js b/cypress/support/fragments/settings/dataImport/fieldMappingProfile/fieldMappingProfileView.js index dd5419a3da..7fc25155d0 100644 --- a/cypress/support/fragments/settings/dataImport/fieldMappingProfile/fieldMappingProfileView.js +++ b/cypress/support/fragments/settings/dataImport/fieldMappingProfile/fieldMappingProfileView.js @@ -1,5 +1,4 @@ -import { HTML, including } from '@interactors/html'; -import { matching } from 'bigtest'; +import { HTML, including, matching } from '@interactors/html'; import { Accordion, Button, diff --git a/cypress/support/fragments/settings/dataImport/matchProfiles/newMatchProfile.js b/cypress/support/fragments/settings/dataImport/matchProfiles/newMatchProfile.js index 95c0a1aa16..293dcaf5e6 100644 --- a/cypress/support/fragments/settings/dataImport/matchProfiles/newMatchProfile.js +++ b/cypress/support/fragments/settings/dataImport/matchProfiles/newMatchProfile.js @@ -1,5 +1,4 @@ -import { HTML, including } from '@interactors/html'; -import { not } from 'bigtest'; +import { HTML, including, not } from '@interactors/html'; import { Accordion, Button, diff --git a/cypress/support/fragments/settings/inventory/instance-holdings-item/urlRelationship.js b/cypress/support/fragments/settings/inventory/instance-holdings-item/urlRelationship.js index 905051d65a..799bb0fe95 100644 --- a/cypress/support/fragments/settings/inventory/instance-holdings-item/urlRelationship.js +++ b/cypress/support/fragments/settings/inventory/instance-holdings-item/urlRelationship.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Button, MultiColumnListRow, diff --git a/cypress/support/fragments/settings/users/customFields.js b/cypress/support/fragments/settings/users/customFields.js index 5e657dbbcd..5b0e5097e2 100644 --- a/cypress/support/fragments/settings/users/customFields.js +++ b/cypress/support/fragments/settings/users/customFields.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Accordion, Button, diff --git a/cypress/support/fragments/settings/users/paymentMethods.js b/cypress/support/fragments/settings/users/paymentMethods.js index 628f9a4c3d..3e5856dccf 100644 --- a/cypress/support/fragments/settings/users/paymentMethods.js +++ b/cypress/support/fragments/settings/users/paymentMethods.js @@ -1,4 +1,4 @@ -import { not } from 'bigtest'; +import { not } from '@interactors/html'; import uuid from 'uuid'; import { diff --git a/cypress/support/fragments/settings/users/waiveReasons.js b/cypress/support/fragments/settings/users/waiveReasons.js index def692b94a..e8b479fbc0 100644 --- a/cypress/support/fragments/settings/users/waiveReasons.js +++ b/cypress/support/fragments/settings/users/waiveReasons.js @@ -1,4 +1,4 @@ -import { including } from 'bigtest'; +import { including } from '@interactors/html'; import { Button, MultiColumnListCell, diff --git a/cypress/support/fragments/users/feeFines.js b/cypress/support/fragments/users/feeFines.js index 4108428aab..db2890f27e 100644 --- a/cypress/support/fragments/users/feeFines.js +++ b/cypress/support/fragments/users/feeFines.js @@ -1,4 +1,4 @@ -import { matching } from 'bigtest'; +import { matching } from '@interactors/html'; import { MultiColumnListRow, MultiColumnListCell, including } from '../../../../interactors'; export default { diff --git a/cypress/support/fragments/users/loans/userLoans.js b/cypress/support/fragments/users/loans/userLoans.js index 87835de966..c3a3b26fbe 100644 --- a/cypress/support/fragments/users/loans/userLoans.js +++ b/cypress/support/fragments/users/loans/userLoans.js @@ -1,4 +1,4 @@ -import { matching } from 'bigtest'; +import { matching } from '@interactors/html'; import moment from 'moment'; import { Button, diff --git a/cypress/support/fragments/users/userCharge.js b/cypress/support/fragments/users/userCharge.js index dba21f9f8b..85aeecfc89 100644 --- a/cypress/support/fragments/users/userCharge.js +++ b/cypress/support/fragments/users/userCharge.js @@ -1,4 +1,4 @@ -import { not } from 'bigtest'; +import { not } from '@interactors/html'; import { Button, Modal, Select, TextField } from '../../../../interactors'; import UsersCard from './usersCard'; diff --git a/package.json b/package.json index ee3efcc817..7cb1c0a8de 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "axe-core": "4.3.3", "axios": "^1.7.7", "babel-loader": "^9.2.1", - "bigtest": "^0.16.1", "cypress": "12.0.0", "cypress-cloud": "^1.9.6", "cypress-downloadfile": "^1.2.1",