mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Temporarily remove export host csv button (#5125)
This commit is contained in:
parent
12a07aa4d9
commit
e02ececbe7
2 changed files with 11 additions and 7 deletions
|
|
@ -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"),
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue