@@ -19,17 +19,10 @@ limitations under the License.
19
19
import { SynapseInstance } from "../../plugins/synapsedocker" ;
20
20
import { MatrixClient } from "../../global" ;
21
21
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
-
27
22
describe ( "Threads" , ( ) => {
28
23
let synapse : SynapseInstance ;
29
24
30
25
beforeEach ( ( ) => {
31
- // Default threads to ON for this spec
32
- cy . enableLabsFeature ( "feature_thread" ) ;
33
26
cy . window ( ) . then ( ( win ) => {
34
27
win . localStorage . setItem ( "mx_lhs_size" , "0" ) ; // Collapse left panel for these tests
35
28
} ) ;
@@ -44,35 +37,6 @@ describe("Threads", () => {
44
37
cy . stopSynapse ( synapse ) ;
45
38
} ) ;
46
39
47
- it ( "should reload when enabling threads beta" , ( ) => {
48
- markWindowBeforeReload ( ) ;
49
-
50
- // Turn off
51
- cy . openUserSettings ( "Labs" ) . within ( ( ) => {
52
- // initially the new property is there
53
- cy . window ( ) . should ( "have.prop" , "beforeReload" , true ) ;
54
-
55
- cy . leaveBeta ( "Threads" ) ;
56
- cy . wait ( 1000 ) ;
57
- // after reload the property should be gone
58
- cy . window ( ) . should ( "not.have.prop" , "beforeReload" ) ;
59
- } ) ;
60
-
61
- cy . get ( ".mx_MatrixChat" , { timeout : 15000 } ) ; // wait for the app
62
- markWindowBeforeReload ( ) ;
63
-
64
- // Turn on
65
- cy . openUserSettings ( "Labs" ) . within ( ( ) => {
66
- // initially the new property is there
67
- cy . window ( ) . should ( "have.prop" , "beforeReload" , true ) ;
68
-
69
- cy . joinBeta ( "Threads" ) ;
70
- cy . wait ( 1000 ) ;
71
- // after reload the property should be gone
72
- cy . window ( ) . should ( "not.have.prop" , "beforeReload" ) ;
73
- } ) ;
74
- } ) ;
75
-
76
40
it ( "should be usable for a conversation" , ( ) => {
77
41
let bot : MatrixClient ;
78
42
cy . getBot ( synapse , {
0 commit comments