From ff6bce31b25b97f7c09122db8a278070f0588ecf Mon Sep 17 00:00:00 2001 From: Courtney Carpenter <100231016+ccarpenter28@users.noreply.github.com> Date: Thu, 1 Jun 2023 15:40:57 -0700 Subject: [PATCH] Bulk edit feature (#142) * Add tests for new Bulk Edit feature (incl. associated data selectors and commands). * test * retry * update hide host bulk test * Update bulk edit tests to streamline. * Minor update to hide-host-bulk test. --------- Co-authored-by: Sebastian Ang --- .../Campaign/Explore/Panels/Beacon/Beacon.tsx | 2 +- .../Campaign/Explore/Panels/BulkEdit.tsx | 5 +- .../Campaign/Explore/Panels/Host/Host.tsx | 2 +- .../Explore/components/ControlBar.tsx | 5 + .../e2e/redteam/hide-beacon-bulk.cy.js | 94 +++++++++++++++++++ .../e2e/redteam/hide-host-bulk.cy.js | 88 +++++++++++++++++ .../redeye-e2e/src/support/explore.js | 19 ++++ 7 files changed, 212 insertions(+), 3 deletions(-) create mode 100644 applications/redeye-e2e/src/integration/e2e/redteam/hide-beacon-bulk.cy.js create mode 100644 applications/redeye-e2e/src/integration/e2e/redteam/hide-host-bulk.cy.js diff --git a/applications/client/src/views/Campaign/Explore/Panels/Beacon/Beacon.tsx b/applications/client/src/views/Campaign/Explore/Panels/Beacon/Beacon.tsx index 7b22229a..71cd67fa 100644 --- a/applications/client/src/views/Campaign/Explore/Panels/Beacon/Beacon.tsx +++ b/applications/client/src/views/Campaign/Explore/Panels/Beacon/Beacon.tsx @@ -133,7 +133,7 @@ export const BeaconRow = observer(({ beacon, ...props }) => { {beacon.meta?.[0]?.maybeCurrent?.username} - {beacon?.hidden && } + {beacon?.hidden && } ( return ( <>
- + {count} {typeName === 'beacons' ? 'Beacon' : 'Host'} {count <= 1 ? '' : 's'} Selected @@ -122,6 +122,7 @@ export const BulkEdit = observer( disabled={count === 0} icon={