Skip to content

Commit ee23ce1

Browse files
authored
Merge pull request #118 from coreui/dev-jest-testing
tests: add missing unit and e2e testing
2 parents f67b9be + 3de2137 commit ee23ce1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1243
-110
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## [vue](./README.md) version `changelog`
22

3+
##### `v2.0.0-rc.0`
4+
- test(unit): add some views testing
5+
- test(e2e): add testing for mobile `sidebar-show`
6+
- refactor: card headers margins
7+
- chore: update `vue` to `2.5.17`
8+
- chore: update `vue-template-compiler` to `2.5.17`
9+
- chore: update `@vue/cli-plugin-babel` to `3.0.1`
10+
- chore: update `@vue/cli-plugin-e2e-nightwatch` to `3.0.1`
11+
- chore: update `@vue/cli-plugin-eslint` to `3.0.1`
12+
- chore: update `@vue/cli-plugin-unit-jest` to `3.0.1`
13+
- chore: update `@vue/cli-service` to `3.0.1`
14+
- chore: update `@vue/test-utils` to `1.0.0-beta.24`
15+
- chore: update `babel-jest` to `23.4.2`
16+
- chore: update `node-sass` to `4.9.3`
17+
- chore: update `sass-loader` to `7.1.0`
18+
- chore: update `vue-chartjs` to `3.4.0`
19+
320
##### `v2.0.0-beta.13`
421
- fix(jest.config.js): solves - _SecurityError: localStorage is not available for opaque origins_
522
- chore: update `bootstrap` to `4.1.3`

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coreui/coreui-free-vue-admin-template",
3-
"version": "2.0.0-beta.13",
3+
"version": "2.0.0-rc.0",
44
"description": "Open Source Bootstrap Admin Template",
55
"author": "Łukasz Holeczek",
66
"homepage": "http://coreui.io",
@@ -22,28 +22,28 @@
2222
"bootstrap-vue": "^2.0.0-rc.11",
2323
"chart.js": "^2.7.2",
2424
"core-js": "^2.5.7",
25-
"css-vars-ponyfill": "^1.8.0",
25+
"css-vars-ponyfill": "^1.9.0",
2626
"flag-icon-css": "^3.0.0",
2727
"font-awesome": "^4.7.0",
2828
"perfect-scrollbar": "^1.4.0",
2929
"simple-line-icons": "^2.4.1",
30-
"vue": "^2.5.16",
31-
"vue-chartjs": "^3.3.2",
30+
"vue": "^2.5.17",
31+
"vue-chartjs": "^3.4.0",
3232
"vue-perfect-scrollbar": "^0.1.0",
3333
"vue-router": "^3.0.1"
3434
},
3535
"devDependencies": {
36-
"@vue/cli-plugin-babel": "^3.0.0-rc.7",
37-
"@vue/cli-plugin-e2e-nightwatch": "^3.0.0-rc.7",
38-
"@vue/cli-plugin-eslint": "^3.0.0-rc.7",
39-
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.7",
40-
"@vue/cli-service": "^3.0.0-rc.7",
41-
"@vue/test-utils": "^1.0.0-beta.21",
36+
"@vue/cli-plugin-babel": "^3.0.1",
37+
"@vue/cli-plugin-e2e-nightwatch": "^3.0.1",
38+
"@vue/cli-plugin-eslint": "^3.0.1",
39+
"@vue/cli-plugin-unit-jest": "^3.0.1",
40+
"@vue/cli-service": "^3.0.1",
41+
"@vue/test-utils": "^1.0.0-beta.24",
4242
"babel-core": "^7.0.0-bridge.0",
43-
"babel-jest": "^23.4.0",
44-
"node-sass": "^4.9.2",
45-
"sass-loader": "^7.0.3",
46-
"vue-template-compiler": "^2.5.16"
43+
"babel-jest": "^23.4.2",
44+
"node-sass": "^4.9.3",
45+
"sass-loader": "^7.1.0",
46+
"vue-template-compiler": "^2.5.17"
4747
},
4848
"browserslist": [
4949
"> 1%",

src/views/base/Breadcrumbs.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
header-tag="header"
88
footer-tag="footer">
99
<div slot="header">
10-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Breadcrumb</strong>
10+
<i class="fa fa-align-justify"></i><strong> Bootstrap Breadcrumb</strong>
1111
<div class="card-header-actions">
1212
<a href="https://bootstrap-vue.js.org/docs/components/breadcrumb" class="card-header-action" rel="noreferrer noopener" target="_blank">
1313
<small class="text-muted">docs</small>

src/views/base/Carousels.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
header-tag="header"
88
footer-tag="footer">
99
<div slot="header">
10-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Carousel</strong>
10+
<i class="fa fa-align-justify"></i><strong> Bootstrap Carousel</strong>
1111
<div class="card-header-actions">
1212
<a href="https://bootstrap-vue.js.org/docs/components/carousel" class="card-header-action" rel="noreferrer noopener" target="_blank">
1313
<small class="text-muted">docs</small>

src/views/base/Collapses.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
header-tag="header"
88
footer-tag="footer">
99
<div slot="header">
10-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Collapse</strong>
10+
<i class="fa fa-align-justify"></i><strong> Bootstrap Collapse </strong>
1111
<div class="card-header-actions">
1212
<a href="https://bootstrap-vue.js.org/docs/components/collapse" class="card-header-action" rel="noreferrer noopener" target="_blank">
1313
<small class="text-muted">docs</small>
@@ -33,7 +33,7 @@
3333
header-tag="header"
3434
footer-tag="footer">
3535
<div slot="header">
36-
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>with <code>v-b-toggle</code> directive</small>
36+
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>with <code>v-b-toggle</code> directive</small>
3737
</div>
3838
<div>
3939
<!-- Using modifiers -->
@@ -58,7 +58,7 @@
5858
header-tag="header"
5959
footer-tag="footer">
6060
<div slot="header">
61-
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>with <code>visibility</code></small>
61+
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>with <code>visibility</code></small>
6262
</div>
6363
<div>
6464
<b-btn v-b-toggle.collapse3 class="m-1">Toggle Collapse</b-btn>
@@ -75,7 +75,7 @@
7575
header-tag="header"
7676
footer-tag="footer">
7777
<div slot="header">
78-
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>with <code>v-model</code></small>
78+
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>with <code>v-model</code></small>
7979
</div>
8080
<div>
8181
<b-btn @click="showCollapse = !showCollapse"
@@ -99,7 +99,7 @@
9999
header-tag="header"
100100
footer-tag="footer">
101101
<div slot="header">
102-
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>multiple elements</small>
102+
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>multiple elements</small>
103103
</div>
104104
<div>
105105
<!-- Single button triggers two b-collapse components -->
@@ -124,7 +124,7 @@
124124
header-tag="header"
125125
footer-tag="footer">
126126
<div slot="header">
127-
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small><code>accordion</code> support</small>
127+
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small><code>accordion</code> support</small>
128128
</div>
129129
<div role="tablist">
130130
<b-card no-body class="mb-1">

src/views/base/Forms.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<b-col sm="6">
55
<b-card>
66
<div slot="header">
7-
<strong>Credit Card</strong> <small>Form</small>
7+
<strong>Credit Card </strong> <small>Form</small>
88
</div>
99
<b-row>
1010
<b-col sm="12">
@@ -53,7 +53,7 @@
5353
<b-col sm="6">
5454
<b-card>
5555
<div slot="header">
56-
<strong>Company</strong> <small>Form</small>
56+
<strong>Company </strong><small>Form</small>
5757
</div>
5858
<b-form-group>
5959
<label for="company">Company</label>

src/views/base/Jumbotrons.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
header-tag="header"
88
footer-tag="footer">
99
<div slot="header">
10-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Jumbotron</strong>
10+
<i class="fa fa-align-justify"></i> <strong> Bootstrap Jumbotron </strong>
1111
<div class="card-header-actions">
1212
<a href="https://bootstrap-vue.js.org/docs/components/jumbotron" class="card-header-action" rel="noreferrer noopener" target="_blank">
1313
<small class="text-muted">docs</small>
@@ -27,7 +27,7 @@
2727
header-tag="header"
2828
footer-tag="footer">
2929
<div slot="header">
30-
<i class="fa fa-align-justify"></i> <strong>Jumbotron</strong>
30+
<i class="fa fa-align-justify"></i> <strong> Jumbotron </strong>
3131
<small>with slots</small>
3232
</div>
3333
<div>
@@ -57,7 +57,7 @@
5757
header-tag="header"
5858
footer-tag="footer">
5959
<div slot="header">
60-
<i class="fa fa-align-justify"></i> <strong>Jumbotron</strong>
60+
<i class="fa fa-align-justify"></i> <strong> Jumbotron </strong>
6161
<small>variants</small>
6262
</div>
6363
<div>

src/views/base/ListGroups.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
header-tag="header"
88
footer-tag="footer">
99
<div slot="header">
10-
<i class="fa fa-align-justify"></i> <strong>Bootstrap list group</strong>
10+
<i class="fa fa-align-justify"></i><strong> Bootstrap list group </strong>
1111
<div class="card-header-actions">
1212
<a href="https://bootstrap-vue.js.org/docs/components/list-group" class="card-header-action" rel="noreferrer noopener" target="_blank">
1313
<small class="text-muted">docs</small>
@@ -28,7 +28,7 @@
2828
header-tag="header"
2929
footer-tag="footer">
3030
<div slot="header">
31-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>active items</small>
31+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>active items</small>
3232
</div>
3333
<b-list-group>
3434
<b-list-group-item>Cras justo odio</b-list-group-item>
@@ -46,7 +46,7 @@
4646
header-tag="header"
4747
footer-tag="footer">
4848
<div slot="header">
49-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>disabled items</small>
49+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>disabled items</small>
5050
</div>
5151
<b-list-group>
5252
<b-list-group-item disabled>Cras justo odio</b-list-group-item>
@@ -62,7 +62,7 @@
6262
header-tag="header"
6363
footer-tag="footer">
6464
<div slot="header">
65-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>actionable items</small>
65+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>actionable items</small>
6666
</div>
6767
<b-list-group>
6868
<b-list-group-item href="#some-link">Awesome link</b-list-group-item>
@@ -79,7 +79,7 @@
7979
header-tag="header"
8080
footer-tag="footer">
8181
<div slot="header">
82-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>buttons</small>
82+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>buttons</small>
8383
</div>
8484
<b-list-group>
8585
<b-list-group-item button>Button item</b-list-group-item>
@@ -94,7 +94,7 @@
9494
header-tag="header"
9595
footer-tag="footer">
9696
<div slot="header">
97-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>with badges</small>
97+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>with badges</small>
9898
</div>
9999
<b-list-group>
100100
<b-list-group-item class="d-flex justify-content-between align-items-center">
@@ -119,7 +119,7 @@
119119
header-tag="header"
120120
footer-tag="footer">
121121
<div slot="header">
122-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>variants</small>
122+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>variants</small>
123123
</div>
124124
<b-list-group>
125125
<b-list-group-item>This is a default list group item</b-list-group-item>
@@ -139,7 +139,7 @@
139139
header-tag="header"
140140
footer-tag="footer">
141141
<div slot="header">
142-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>variants active</small>
142+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>variants active</small>
143143
</div>
144144
<b-list-group>
145145
<b-list-group-item href="#">This is a default list group item</b-list-group-item>
@@ -161,7 +161,7 @@
161161
header-tag="header"
162162
footer-tag="footer">
163163
<div slot="header">
164-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>inside cards</small>
164+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>inside cards</small>
165165
</div>
166166
<b-card-group deck>
167167
<b-card header="<b>Card with list group</b>">
@@ -200,7 +200,7 @@
200200
header-tag="header"
201201
footer-tag="footer">
202202
<div slot="header">
203-
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>custom content</small>
203+
<i class="fa fa-align-justify"></i><strong> List group </strong><small>custom content</small>
204204
</div>
205205
<b-list-group>
206206
<b-list-group-item href="#" active class="flex-column align-items-start">

src/views/base/Navbars.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
header-tag="header"
66
footer-tag="footer">
77
<div slot="header">
8-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navbar</strong>
8+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navbar </strong>
99
<div class="card-header-actions">
1010
<a href="https://bootstrap-vue.js.org/docs/components/navbar" class="card-header-action" rel="noreferrer noopener" target="_blank">
1111
<small class="text-muted">docs</small>
@@ -57,7 +57,7 @@
5757
header-tag="header"
5858
footer-tag="footer">
5959
<div slot="header">
60-
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
60+
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
6161
<small>brand</small>
6262
</div>
6363
<div>
@@ -74,7 +74,7 @@
7474
header-tag="header"
7575
footer-tag="footer">
7676
<div slot="header">
77-
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
77+
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
7878
<small>text</small>
7979
</div>
8080
<div>
@@ -93,7 +93,7 @@
9393
header-tag="header"
9494
footer-tag="footer">
9595
<div slot="header">
96-
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
96+
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
9797
<small>dropdown</small>
9898
</div>
9999
<div>
@@ -123,7 +123,7 @@
123123
header-tag="header"
124124
footer-tag="footer">
125125
<div slot="header">
126-
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
126+
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
127127
<small>form</small>
128128
</div>
129129
<div>
@@ -139,7 +139,7 @@
139139
header-tag="header"
140140
footer-tag="footer">
141141
<div slot="header">
142-
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
142+
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
143143
<small>input group</small>
144144
</div>
145145
<div>

src/views/base/Navs.vue

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
header-tag="header"
66
footer-tag="footer">
77
<div slot="header">
8-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong>
8+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs</strong>
99
<div class="card-header-actions">
1010
<a href="https://bootstrap-vue.js.org/docs/components/nav" class="card-header-action" rel="noreferrer noopener" target="_blank">
1111
<small class="text-muted">docs</small>
@@ -25,7 +25,7 @@
2525
header-tag="header"
2626
footer-tag="footer">
2727
<div slot="header">
28-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>tab style</small>
28+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>tab style</small>
2929
</div>
3030
<div>
3131
<b-nav tabs>
@@ -40,7 +40,7 @@
4040
header-tag="header"
4141
footer-tag="footer">
4242
<div slot="header">
43-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>pill style</small>
43+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>pill style</small>
4444
</div>
4545
<div>
4646
<b-nav pills>
@@ -55,7 +55,7 @@
5555
header-tag="header"
5656
footer-tag="footer">
5757
<div slot="header">
58-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>fill tabs</small>
58+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>fill tabs</small>
5959
</div>
6060
<div>
6161
<b-nav fill tabs>
@@ -70,7 +70,7 @@
7070
header-tag="header"
7171
footer-tag="footer">
7272
<div slot="header">
73-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>justified tabs</small>
73+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>justified tabs</small>
7474
</div>
7575
<div>
7676
<b-nav justified tabs>
@@ -85,7 +85,7 @@
8585
header-tag="header"
8686
footer-tag="footer">
8787
<div slot="header">
88-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>dropdown support</small>
88+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>dropdown support</small>
8989
</div>
9090
<div>
9191
<b-nav pills>
@@ -104,7 +104,7 @@
104104
header-tag="header"
105105
footer-tag="footer">
106106
<div slot="header">
107-
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>vertical variation</small>
107+
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>vertical variation</small>
108108
</div>
109109
<div>
110110
<b-nav vertical class="w-25">

0 commit comments

Comments
 (0)