From e02ececbe7574b1e8a4ffe831519c5139d210e29 Mon Sep 17 00:00:00 2001
From: RachelElysia <71795832+RachelElysia@users.noreply.github.com>
Date: Wed, 13 Apr 2022 15:22:10 -0400
Subject: [PATCH] Temporarily remove export host csv button (#5125)
---
cypress/integration/all/app/hosts.spec.ts | 14 ++++++++------
.../hosts/ManageHostsPage/ManageHostsPage.tsx | 4 +++-
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/cypress/integration/all/app/hosts.spec.ts b/cypress/integration/all/app/hosts.spec.ts
index fb5ce09cdd..04e97f6715 100644
--- a/cypress/integration/all/app/hosts.spec.ts
+++ b/cypress/integration/all/app/hosts.spec.ts
@@ -29,7 +29,7 @@ describe("Hosts flow", () => {
cy.visit("/hosts/manage");
cy.getAttached(".manage-hosts").within(() => {
- cy.getAttached(".manage-hosts__export-btn").click();
+ // cy.getAttached(".manage-hosts__export-btn").click(); // Feature pushed back from 4.13 release
cy.contains("button", /add hosts/i).click();
});
cy.getAttached(".react-tabs").within(() => {
@@ -47,11 +47,13 @@ describe("Hosts flow", () => {
// before each test run (seems to be related to issues with Cypress trashAssetsBeforeRun)
if (Cypress.platform !== "win32") {
// windows has issues with downloads location
- const formattedTime = format(new Date(), "yyyy-MM-dd");
- const filename = `Hosts ${formattedTime}.csv`;
- cy.readFile(path.join(Cypress.config("downloadsFolder"), filename), {
- timeout: 5000,
- });
+
+ // Feature pushed back from 4.13 release
+ // const formattedTime = format(new Date(), "yyyy-MM-dd");
+ // const filename = `Hosts ${formattedTime}.csv`;
+ // cy.readFile(path.join(Cypress.config("downloadsFolder"), filename), {
+ // timeout: 5000,
+ // });
cy.readFile(
path.join(Cypress.config("downloadsFolder"), "secret.txt"),
{
diff --git a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx
index 6826069c99..cdeef70533 100644
--- a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx
+++ b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx
@@ -1336,6 +1336,8 @@ const ManageHostsPage = ({
}`}
>
{`${count} host${count === 1 ? "" : "s"}`}
+ {/* Export all columns initially in 4.13 release but feature being pushed
+ back by product until we build client side filtering to export only selected columns
+ */}
);
}, [isHostCountLoading, filteredHostCount]);