1
1
/// <reference types="cypress" />
2
2
3
- describe ( ' Navigation' , ( ) => {
3
+ describe ( " Navigation" , ( ) => {
4
4
beforeEach ( ( ) => {
5
5
cy . visitPlayground ( ) ;
6
6
cy . dismissTour ( ) ;
7
- } )
7
+ } ) ;
8
8
9
- it ( ' displays schema tab' , ( ) => {
10
- cy . tab ( ' Schema' ) ;
9
+ it ( " displays schema tab" , ( ) => {
10
+ cy . tab ( " Schema" ) ;
11
11
// Default editor content
12
- cy . editorText ( )
13
- . containsAll ( [
14
- 'definition user {}' ,
15
- 'definition resource {' ,
16
- '}' ,
17
- ] ) ;
12
+ cy . editorText ( ) . containsAll ( [
13
+ "definition user {}" ,
14
+ "definition resource {" ,
15
+ "}" ,
16
+ ] ) ;
18
17
// Sub-menu buttons
19
- cy . get ( 'button' )
20
- . contains ( 'Format' )
21
- . should ( 'exist' ) ;
18
+ cy . get ( "button" ) . contains ( "Format" ) . should ( "exist" ) ;
22
19
} ) ;
23
20
24
- it ( ' displays relationships tab' , ( ) => {
25
- cy . tab ( ' Test Relationships' ) ;
21
+ it ( " displays relationships tab" , ( ) => {
22
+ cy . tab ( " Test Relationships" ) ;
26
23
// Editor mode buttons
27
- cy . get ( '[aria-label="relationship editor view"]' )
24
+ cy . get ( '[aria-label="relationship editor view"]' ) ;
28
25
// Grid view
29
- cy . contains ( ' Highlight same types, objects and relations' )
30
- cy . get ( '[aria-label="code editor"]' ) . click ( )
26
+ cy . contains ( " Highlight same types, objects and relations" ) ;
27
+ cy . get ( '[aria-label="code editor"]' ) . click ( ) ;
31
28
// Text view
32
- cy . editorText ( )
33
- . contains ( 'resource:anotherresource#writer@user:somegal' ) ;
29
+ cy . editorText ( ) . contains ( "resource:anotherresource#writer@user:somegal" ) ;
34
30
} ) ;
35
31
36
- it ( ' displays assertions tab' , ( ) => {
37
- cy . tab ( ' Assertions' ) ;
32
+ it ( " displays assertions tab" , ( ) => {
33
+ cy . tab ( " Assertions" ) ;
38
34
// Default editor content
39
- cy . editorText ( )
40
- . containsAll ( [
41
- 'assertTrue' ,
42
- 'assertFalse' ,
43
- ] ) ;
35
+ cy . editorText ( ) . containsAll ( [ "assertTrue" , "assertFalse" ] ) ;
44
36
// Sub-menu buttons
45
- cy . contains ( 'Validation not run' )
46
- . should ( 'exist' ) ;
47
- cy . get ( 'button' )
48
- . contains ( 'Run' )
49
- . should ( 'exist' ) ;
37
+ cy . contains ( "Validation not run" ) . should ( "exist" ) ;
38
+ cy . get ( "button" ) . contains ( "Run" ) . should ( "exist" ) ;
50
39
} ) ;
51
40
52
- it ( ' displays expected relations tab' , ( ) => {
53
- cy . tab ( ' Expected Relations' ) ;
41
+ it ( " displays expected relations tab" , ( ) => {
42
+ cy . tab ( " Expected Relations" ) ;
54
43
// No default editor content
55
- // Sub-menu buttons
56
- cy . contains ( 'Validation not run' )
57
- . should ( 'exist' ) ;
58
- cy . get ( 'button' )
59
- . contains ( 'Run' )
60
- . should ( 'exist' ) ;
61
- cy . get ( 'button' )
62
- . contains ( 'Re-Generate' )
63
- . should ( 'exist' ) ;
64
- cy . get ( 'button' )
65
- . contains ( 'Compute and Diff' )
66
- . should ( 'exist' ) ;
44
+ // Sub-menu buttons
45
+ cy . contains ( "Validation not run" ) . should ( "exist" ) ;
46
+ cy . get ( "button" ) . contains ( "Run" ) . should ( "exist" ) ;
47
+ cy . get ( "button" ) . contains ( "Re-Generate" ) . should ( "exist" ) ;
48
+ cy . get ( "button" ) . contains ( "Compute and Diff" ) . should ( "exist" ) ;
67
49
} ) ;
68
50
69
- it ( ' displays panels' , ( ) => {
51
+ it ( " displays panels" , ( ) => {
70
52
cy . waitForWasm ( ) ;
71
- cy . panel ( 'Problems' ) ;
72
- cy . panelText ( )
73
- . contains ( 'No problems found' ) ;
74
- cy . panel ( 'Check Watches' ) ;
75
- cy . panelText ( )
76
- . find ( 'table.MuiTable-root' ) ;
77
- cy . panel ( 'System Visualization' )
78
- cy . panelText ( )
79
- . find ( 'div.vis-network' ) ;
80
- cy . panel ( 'Last Validation Run' ) ;
81
- cy . panelText ( )
82
- . contains ( 'Validation Not Run' ) ;
53
+ cy . panel ( "Problems" ) ;
54
+ cy . panelText ( ) . contains ( "No problems found" ) ;
55
+ cy . panel ( "Check Watches" ) ;
56
+ cy . panelText ( ) . find ( "table.MuiTable-root" ) ;
57
+ cy . panel ( "System Visualization" ) ;
58
+ cy . panelText ( ) . find ( "div.vis-network" ) ;
59
+ cy . panel ( "Last Validation Run" ) ;
60
+ cy . panelText ( ) . contains ( "Validation Not Run" ) ;
83
61
} ) ;
84
- } ) ;
62
+ } ) ;
0 commit comments