Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0473b00

Browse files
committed
remove threads reload when labs is toggled
1 parent 5d4d182 commit 0473b00

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

cypress/e2e/threads/threads.spec.ts

-34
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ limitations under the License.
1919
import { SynapseInstance } from "../../plugins/synapsedocker";
2020
import { MatrixClient } from "../../global";
2121

22-
function markWindowBeforeReload(): void {
23-
// mark our window object to "know" when it gets reloaded
24-
cy.window().then((w) => (w.beforeReload = true));
25-
}
26-
2722
describe("Threads", () => {
2823
let synapse: SynapseInstance;
2924

@@ -42,35 +37,6 @@ describe("Threads", () => {
4237
cy.stopSynapse(synapse);
4338
});
4439

45-
it("should reload when enabling threads beta", () => {
46-
markWindowBeforeReload();
47-
48-
// Turn off
49-
cy.openUserSettings("Labs").within(() => {
50-
// initially the new property is there
51-
cy.window().should("have.prop", "beforeReload", true);
52-
53-
cy.leaveBeta("Threads");
54-
cy.wait(1000);
55-
// after reload the property should be gone
56-
cy.window().should("not.have.prop", "beforeReload");
57-
});
58-
59-
cy.get(".mx_MatrixChat", { timeout: 15000 }); // wait for the app
60-
markWindowBeforeReload();
61-
62-
// Turn on
63-
cy.openUserSettings("Labs").within(() => {
64-
// initially the new property is there
65-
cy.window().should("have.prop", "beforeReload", true);
66-
67-
cy.joinBeta("Threads");
68-
cy.wait(1000);
69-
// after reload the property should be gone
70-
cy.window().should("not.have.prop", "beforeReload");
71-
});
72-
});
73-
7440
it("should be usable for a conversation", () => {
7541
let bot: MatrixClient;
7642
cy.getBot(synapse, {

0 commit comments

Comments
 (0)