Skip to content

Commit 12c8aa7

Browse files
authored
Merge pull request #140 from coreui/e2e-testing
test(e2e): case for mobile sidebar outclick
2 parents 3114861 + b66a882 commit 12c8aa7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/e2e/specs/test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ module.exports = {
7474
console.log('response', typeof response)
7575
this.assert.cssClassPresent('/html/body', 'sidebar-minimized')
7676
this.assert.cssClassPresent('/html/body', 'brand-minimized')
77+
this.pause(500)
7778
this.assert.cssProperty("/html/body/div/div/main", "margin-left", "50px");
7879
})
7980
.pause(500)
@@ -92,6 +93,7 @@ module.exports = {
9293
.click('/html/body/div/header/button[1]', function (response) {
9394
console.log('response', typeof response)
9495
this.assert.cssClassPresent('/html/body', 'sidebar-show')
96+
this.pause(500)
9597
this.assert.cssProperty("/html/body/div/div/main", "margin-left", "200px");
9698
})
9799

@@ -111,6 +113,12 @@ module.exports = {
111113
this.assert.cssClassPresent('/html/body', 'sidebar-show')
112114
this.assert.cssProperty("/html/body/div/div/main", "margin-left", "0px");
113115
})
116+
.pause(500)
117+
.click('/html/body/div/div/main', function (response) {
118+
console.log('response', typeof response)
119+
this.assert.cssClassNotPresent('/html/body', 'sidebar-show')
120+
this.assert.cssProperty("/html/body/div/div/main", "margin-left", "0px");
121+
})
114122

115123
browser
116124
.pause(5000)

0 commit comments

Comments
 (0)