Skip to content

Commit

Permalink
UITEST-120 migrate imports from "bigtest" to "@interactors/html"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zburke committed Oct 2, 2024
1 parent e1e87ca commit fe20f3e
Show file tree
Hide file tree
Showing 28 changed files with 27 additions and 31 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Update `<MultiSelection>` 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)

Expand Down
3 changes: 1 addition & 2 deletions cypress/support/fragments/bulk-edit/bulk-edit-actions.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 1 addition & 2 deletions cypress/support/fragments/check-in-actions/checkInPane.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/circulation-log/searchPane.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { matching } from 'bigtest';
import { matching } from '@interactors/html';
import {
Accordion,
Button,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/circulation-log/searchResults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { matching } from 'bigtest';
import { matching } from '@interactors/html';
import {
MultiColumnList,
MultiColumnListCell,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/circulation/editStaffClips.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
Button,
Checkbox,
Expand Down
Original file line number Diff line number Diff line change
@@ -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' });
Expand Down
Original file line number Diff line number Diff line change
@@ -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' });
Expand Down
Original file line number Diff line number Diff line change
@@ -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' });
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/data-export/dataExportResults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
ListRow,
MultiColumnListCell,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
Pane,
NavListItem,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
Button,
Pane,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
Accordion,
PaneHeader,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/data_import/matchOnVRN.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable cypress/no-unnecessary-waiting */
import { not } from 'bigtest';
import { not } from '@interactors/html';
import {
Accordion,
Button,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import { Accordion } from '../../../../../interactors';
import InventoryItems from '../item/inventoryItems';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-dupe-keys */
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
matching,
Button,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/loans/loansPage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { matching } from 'bigtest';
import { matching } from '@interactors/html';
import {
Button,
Pane,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/oai-pmh/general.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { HTML, including } from '@interactors/html';
import { matching } from 'bigtest';
import { HTML, including, matching } from '@interactors/html';
import {
Accordion,
Button,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { HTML, including } from '@interactors/html';
import { not } from 'bigtest';
import { HTML, including, not } from '@interactors/html';
import {
Accordion,
Button,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
Button,
MultiColumnListRow,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/settings/users/customFields.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
Accordion,
Button,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/settings/users/paymentMethods.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { not } from 'bigtest';
import { not } from '@interactors/html';
import uuid from 'uuid';

import {
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/settings/users/waiveReasons.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { including } from 'bigtest';
import { including } from '@interactors/html';
import {
Button,
MultiColumnListCell,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/users/feeFines.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { matching } from 'bigtest';
import { matching } from '@interactors/html';
import { MultiColumnListRow, MultiColumnListCell, including } from '../../../../interactors';

export default {
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/users/loans/userLoans.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { matching } from 'bigtest';
import { matching } from '@interactors/html';
import moment from 'moment';
import {
Button,
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/fragments/users/userCharge.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { not } from 'bigtest';
import { not } from '@interactors/html';
import { Button, Modal, Select, TextField } from '../../../../interactors';
import UsersCard from './usersCard';

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fe20f3e

Please sign in to comment.