@@ -22,84 +22,84 @@ module.exports = {
22
22
23
23
browser . url ( devServer ) . pause ( 500 ) . expect . element ( 'body' ) . to . be . present
24
24
25
- browser . waitForElementVisible ( '.app' , 10000 )
26
- . assert . elementPresent ( '.app-header' )
27
- . assert . elementPresent ( '.app-header > .navbar-brand' )
28
- . assert . elementPresent ( '.app-body' )
29
- . assert . elementPresent ( '.app-body > .main > .breadcrumb' )
30
- . assert . elementPresent ( '.app-body > .main > .container-fluid > .animated' )
31
- . assert . elementPresent ( '.app-body > .sidebar > .sidebar-nav' )
32
- . assert . elementPresent ( '.app-body > .sidebar > .sidebar-minimizer' )
33
- . assert . elementPresent ( '.app-footer' )
34
- . assert . containsText ( '.app-footer > div > span' , 'creativeLabs' )
35
- . assert . containsText ( '.app-footer > div.ml-auto > span' , 'Powered by' )
36
- . assert . elementCount ( 'button' , 10 )
37
- . resizeWindow ( 1024 , 800 )
38
- . pause ( 500 )
39
-
40
- browser . click ( 'body > div > header > button.d-none.d-lg-block.navbar-toggler' , function ( response ) {
41
- console . log ( 'response' , typeof response )
42
- this . assert . ok ( browser === this , 'Check if the context is right.' )
43
- this . assert . cssClassPresent ( 'body' , 'aside-menu-show' )
44
- } )
45
-
46
- browser . pause ( 500 )
47
-
48
- browser . click ( 'body > div > header > button.d-none.d-lg-block.navbar-toggler' , function ( response ) {
49
- console . log ( 'response' , typeof response )
50
- this . assert . cssClassNotPresent ( 'body' , 'aside-menu-show' )
51
- } )
52
-
53
- browser . pause ( 500 )
54
-
55
- browser
56
- . useXpath ( )
57
- . click ( '/html/body/div/header/button[2]' , function ( response ) {
58
- console . log ( 'response' , typeof response )
59
- this . assert . cssClassNotPresent ( '/html/body' , 'sidebar-lg-show' )
60
- } )
61
-
62
- browser
63
- . pause ( 500 )
64
- . click ( '/html/body/div/header/button[2]' , function ( response ) {
65
- console . log ( 'response' , typeof response )
66
- this . assert . cssClassPresent ( '/html/body' , 'sidebar-lg-show' )
67
- } )
68
-
69
- browser
70
- . pause ( 500 )
71
- . click ( '/html/body/div/div/div/button' , function ( response ) {
72
- console . log ( 'response' , typeof response )
73
- this . assert . cssClassPresent ( '/html/body' , 'sidebar-minimized' )
74
- this . assert . cssClassPresent ( '/html/body' , 'brand-minimized' )
75
- } )
76
- . pause ( 500 )
77
- . click ( '/html/body/div/div/div/button' , function ( response ) {
78
- console . log ( 'response' , typeof response )
79
- this . assert . cssClassNotPresent ( '/html/body' , 'sidebar-minimized' )
80
- this . assert . cssClassNotPresent ( '/html/body' , 'brand-minimized' )
81
- } )
82
-
83
- browser
84
- . resizeWindow ( 800 , 600 )
85
- . pause ( 500 )
86
-
87
- browser
88
- . pause ( 500 )
89
- . click ( '/html/body/div/header/button[1]' , function ( response ) {
90
- console . log ( 'response' , typeof response )
91
- this . assert . cssClassPresent ( '/html/body' , 'sidebar-show' )
92
- } )
93
-
94
- browser
95
- . pause ( 500 )
96
- . click ( '/html/body/div/div/div/nav/section/ul/li[1]/div/a' , function ( response ) {
97
- console . log ( 'response' , typeof response )
98
- this . assert . cssClassNotPresent ( '/html/body' , 'sidebar-show' )
99
- } )
100
-
101
- browser
102
- . pause ( 5000 )
103
- . end ( )
25
+ // browser.waitForElementVisible('.app', 10000)
26
+ // .assert.elementPresent('.app-header')
27
+ // .assert.elementPresent('.app-header > .navbar-brand')
28
+ // .assert.elementPresent('.app-body')
29
+ // .assert.elementPresent('.app-body > .main > .breadcrumb')
30
+ // .assert.elementPresent('.app-body > .main > .container-fluid > .animated')
31
+ // .assert.elementPresent('.app-body > .sidebar > .sidebar-nav')
32
+ // .assert.elementPresent('.app-body > .sidebar > .sidebar-minimizer')
33
+ // .assert.elementPresent('.app-footer')
34
+ // .assert.containsText('.app-footer > div > span', 'creativeLabs')
35
+ // .assert.containsText('.app-footer > div.ml-auto > span', 'Powered by')
36
+ // .assert.elementCount('button', 10)
37
+ // .resizeWindow(1024, 800)
38
+ // .pause(500)
39
+
40
+ // browser.click('body > div > header > button.d-none.d-lg-block.navbar-toggler', function (response) {
41
+ // console.log('response', typeof response)
42
+ // this.assert.ok(browser === this, 'Check if the context is right.')
43
+ // this.assert.cssClassPresent('body', 'aside-menu-show')
44
+ // })
45
+ //
46
+ // browser.pause(500)
47
+
48
+ // browser.click('body > div > header > button.d-none.d-lg-block.navbar-toggler', function (response) {
49
+ // console.log('response', typeof response)
50
+ // this.assert.cssClassNotPresent('body', 'aside-menu-show')
51
+ // })
52
+ //
53
+ // browser.pause(500)
54
+ //
55
+ // browser
56
+ // .useXpath()
57
+ // .click('/html/body/div/header/button[2]', function (response) {
58
+ // console.log('response', typeof response)
59
+ // this.assert.cssClassNotPresent('/html/body', 'sidebar-lg-show')
60
+ // })
61
+ //
62
+ // browser
63
+ // .pause(500)
64
+ // .click('/html/body/div/header/button[2]', function (response) {
65
+ // console.log('response', typeof response)
66
+ // this.assert.cssClassPresent('/html/body', 'sidebar-lg-show')
67
+ // })
68
+ //
69
+ // browser
70
+ // .pause(500)
71
+ // .click('/html/body/div/div/div/button', function (response) {
72
+ // console.log('response', typeof response)
73
+ // this.assert.cssClassPresent('/html/body', 'sidebar-minimized')
74
+ // this.assert.cssClassPresent('/html/body', 'brand-minimized')
75
+ // })
76
+ // .pause(500)
77
+ // .click('/html/body/div/div/div/button', function (response) {
78
+ // console.log('response', typeof response)
79
+ // this.assert.cssClassNotPresent('/html/body', 'sidebar-minimized')
80
+ // this.assert.cssClassNotPresent('/html/body', 'brand-minimized')
81
+ // })
82
+ //
83
+ // browser
84
+ // .resizeWindow(800, 600)
85
+ // .pause(500)
86
+ //
87
+ // browser
88
+ // .pause(500)
89
+ // .click('/html/body/div/header/button[1]', function (response) {
90
+ // console.log('response', typeof response)
91
+ // this.assert.cssClassPresent('/html/body', 'sidebar-show')
92
+ // })
93
+ //
94
+ // browser
95
+ // .pause(500)
96
+ // .click('/html/body/div/div/div/nav/section/ul/li[1]/div/a', function (response) {
97
+ // console.log('response', typeof response)
98
+ // this.assert.cssClassNotPresent('/html/body', 'sidebar-show')
99
+ // })
100
+ //
101
+ // browser.pause(5000)
102
+
103
+ browser . end ( )
104
104
}
105
105
}
0 commit comments