Temporarily remove export host csv button (#5125)

This commit is contained in:
RachelElysia 2022-04-13 15:22:10 -04:00 committed by GitHub
parent 12a07aa4d9
commit e02ececbe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View file

@ -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"),
{

View file

@ -1336,6 +1336,8 @@ const ManageHostsPage = ({
}`}
>
<span>{`${count} host${count === 1 ? "" : "s"}`}</span>
{/* 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
<Button
className={`${baseClass}__export-btn`}
onClick={onExportHostsResults}
@ -1344,7 +1346,7 @@ const ManageHostsPage = ({
<>
Export hosts <img alt="" src={DownloadIcon} />
</>
</Button>
</Button> */}
</div>
);
}, [isHostCountLoading, filteredHostCount]);