From a27798d10b20b78cd664fce35662397c46b588e5 Mon Sep 17 00:00:00 2001 From: Courtney Carpenter <100231016+ccarpenter28@users.noreply.github.com> Date: Tue, 11 Apr 2023 10:23:35 -0700 Subject: [PATCH 01/57] Blue team test updates (#123) * Added blue team tests to verify that comments cannot be favorited, that presentation mode navigation works, and that the redacted toggle works. Added another test to hide-show-beacon test to check hiding beacon from kebab menu. * Add blue and red team tests to verify redacted mode. Add blue team test to verify fields in Meta tab are disabled. Add associated data selectors and commands. * Update blue team Meta tab test. * Update timeline and mult-command comment tests to address GitHub test failures. * Add new test to check raw logs in blue team mode. * Update hide-show-beacon test to separate different functionality being tested. * Update "hide-last-server" red team test to streamline. --- .../Explore/Panels/Meta/BeaconMeta.tsx | 1 + .../e2e/blueteam/favorite-comments.cy.js | 20 +++ .../e2e/blueteam/hide-show-beacon.cy.js | 43 +++--- .../integration/e2e/blueteam/meta-tab.cy.js | 29 ++++ .../presentation-mode-navigation.cy.js | 133 ++++++++++++++++++ .../e2e/blueteam/toggle-redacted.cy.js | 42 ++++++ .../e2e/blueteam/view-raw-logs.cy.js | 51 +++++++ .../e2e/redteam/hide-last-server.cy.js | 39 +++-- .../e2e/redteam/toggle-redacted.cy.js | 42 ++++++ .../redeye-e2e/src/support/campaignCard.js | 1 + .../redeye-e2e/src/support/commands.js | 12 ++ 11 files changed, 374 insertions(+), 39 deletions(-) create mode 100644 applications/redeye-e2e/src/integration/e2e/blueteam/favorite-comments.cy.js create mode 100644 applications/redeye-e2e/src/integration/e2e/blueteam/meta-tab.cy.js create mode 100644 applications/redeye-e2e/src/integration/e2e/blueteam/presentation-mode-navigation.cy.js create mode 100644 applications/redeye-e2e/src/integration/e2e/blueteam/toggle-redacted.cy.js create mode 100644 applications/redeye-e2e/src/integration/e2e/blueteam/view-raw-logs.cy.js create mode 100644 applications/redeye-e2e/src/integration/e2e/redteam/toggle-redacted.cy.js diff --git a/applications/client/src/views/Campaign/Explore/Panels/Meta/BeaconMeta.tsx b/applications/client/src/views/Campaign/Explore/Panels/Meta/BeaconMeta.tsx index 02ce26b9..ef857dcf 100644 --- a/applications/client/src/views/Campaign/Explore/Panels/Meta/BeaconMeta.tsx +++ b/applications/client/src/views/Campaign/Explore/Panels/Meta/BeaconMeta.tsx @@ -231,6 +231,7 @@ export const BeaconMeta = observer((props) => { fill >