Skip to content
Snippets Groups Projects
Commit 379566b6 authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

CE-2450: Remove unstable test

The test for TokenRenew has been failing intermittently for
an extended time period. Seeing as this is a QoL feature, and
considering the fact that we are replacing our auth provider
(to Ping), we may as well remove the test.
parent 89651b38
No related branches found
No related tags found
3 merge requests!446Merge main into develop,!445Draft: Main into develop,!436Cypress/CI improvements
Pipeline #173328 waiting for manual action
import { SnackbarProvider } from "notistack";
import React from "react";
import { UserProvider } from "../../../api/UserProvider";
import TokenRenew from ".";
import { DeployAPIProvider } from "../../../api/DeployApi";
function AppHarness({ children }) {
return (
<SnackbarProvider
preventDuplicate
maxSnack="5"
>
<DeployAPIProvider>
<UserProvider>{children}</UserProvider>
</DeployAPIProvider>
</SnackbarProvider>
);
}
function mountIntoHarness(children) {
cy.mount(<AppHarness>{children}</AppHarness>);
}
describe("TokenRenew", () => {
context("when logged in", () => {
beforeEach(() => {
cy.login();
});
it("renews the token periodically", () => {
cy.clock();
mountIntoHarness(<TokenRenew />);
cy.tick(window.TOKEN_RENEW_INTERVAL);
cy.wait("@renew", { responseTimeout: 1000 });
cy.getCookie("ce-deploy-auth").should(
"have.property",
"value",
"FADEDEAD"
);
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment