Skip to content

Commit

Permalink
Merge pull request #118 from coreui/dev-jest-testing
Browse files Browse the repository at this point in the history
tests: add missing unit and e2e testing
  • Loading branch information
xidedix authored Aug 21, 2018
2 parents 87e783e + 2a6565c commit 2a0c286
Show file tree
Hide file tree
Showing 63 changed files with 1,243 additions and 110 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
## [vue](./README.md) version `changelog`

##### `v2.0.0-rc.0`
- test(unit): add some views testing
- test(e2e): add testing for mobile `sidebar-show`
- refactor: card headers margins
- chore: update `vue` to `2.5.17`
- chore: update `vue-template-compiler` to `2.5.17`
- chore: update `@vue/cli-plugin-babel` to `3.0.1`
- chore: update `@vue/cli-plugin-e2e-nightwatch` to `3.0.1`
- chore: update `@vue/cli-plugin-eslint` to `3.0.1`
- chore: update `@vue/cli-plugin-unit-jest` to `3.0.1`
- chore: update `@vue/cli-service` to `3.0.1`
- chore: update `@vue/test-utils` to `1.0.0-beta.24`
- chore: update `babel-jest` to `23.4.2`
- chore: update `node-sass` to `4.9.3`
- chore: update `sass-loader` to `7.1.0`
- chore: update `vue-chartjs` to `3.4.0`

##### `v2.0.0-beta.13`
- fix(jest.config.js): solves - _SecurityError: localStorage is not available for opaque origins_
- chore: update `bootstrap` to `4.1.3`
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coreui/coreui-free-vue-admin-template",
"version": "2.0.0-beta.13",
"version": "2.0.0-rc.0",
"description": "Open Source Bootstrap Admin Template",
"author": "Łukasz Holeczek",
"homepage": "http://coreui.io",
Expand All @@ -22,28 +22,28 @@
"bootstrap-vue": "^2.0.0-rc.11",
"chart.js": "^2.7.2",
"core-js": "^2.5.7",
"css-vars-ponyfill": "^1.8.0",
"css-vars-ponyfill": "^1.9.0",
"flag-icon-css": "^3.0.0",
"font-awesome": "^4.7.0",
"perfect-scrollbar": "^1.4.0",
"simple-line-icons": "^2.4.1",
"vue": "^2.5.16",
"vue-chartjs": "^3.3.2",
"vue": "^2.5.17",
"vue-chartjs": "^3.4.0",
"vue-perfect-scrollbar": "^0.1.0",
"vue-router": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0-rc.7",
"@vue/cli-plugin-e2e-nightwatch": "^3.0.0-rc.7",
"@vue/cli-plugin-eslint": "^3.0.0-rc.7",
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.7",
"@vue/cli-service": "^3.0.0-rc.7",
"@vue/test-utils": "^1.0.0-beta.21",
"@vue/cli-plugin-babel": "^3.0.1",
"@vue/cli-plugin-e2e-nightwatch": "^3.0.1",
"@vue/cli-plugin-eslint": "^3.0.1",
"@vue/cli-plugin-unit-jest": "^3.0.1",
"@vue/cli-service": "^3.0.1",
"@vue/test-utils": "^1.0.0-beta.24",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.4.0",
"node-sass": "^4.9.2",
"sass-loader": "^7.0.3",
"vue-template-compiler": "^2.5.16"
"babel-jest": "^23.4.2",
"node-sass": "^4.9.3",
"sass-loader": "^7.1.0",
"vue-template-compiler": "^2.5.17"
},
"browserslist": [
"> 1%",
Expand Down
2 changes: 1 addition & 1 deletion src/views/base/Breadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Breadcrumb</strong>
<i class="fa fa-align-justify"></i><strong> Bootstrap Breadcrumb</strong>
<div class="card-header-actions">
<a href="https://bootstrap-vue.js.org/docs/components/breadcrumb" class="card-header-action" rel="noreferrer noopener" target="_blank">
<small class="text-muted">docs</small>
Expand Down
2 changes: 1 addition & 1 deletion src/views/base/Carousels.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Carousel</strong>
<i class="fa fa-align-justify"></i><strong> Bootstrap Carousel</strong>
<div class="card-header-actions">
<a href="https://bootstrap-vue.js.org/docs/components/carousel" class="card-header-action" rel="noreferrer noopener" target="_blank">
<small class="text-muted">docs</small>
Expand Down
12 changes: 6 additions & 6 deletions src/views/base/Collapses.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Collapse</strong>
<i class="fa fa-align-justify"></i><strong> Bootstrap Collapse </strong>
<div class="card-header-actions">
<a href="https://bootstrap-vue.js.org/docs/components/collapse" class="card-header-action" rel="noreferrer noopener" target="_blank">
<small class="text-muted">docs</small>
Expand All @@ -33,7 +33,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>with <code>v-b-toggle</code> directive</small>
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>with <code>v-b-toggle</code> directive</small>
</div>
<div>
<!-- Using modifiers -->
Expand All @@ -58,7 +58,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>with <code>visibility</code></small>
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>with <code>visibility</code></small>
</div>
<div>
<b-btn v-b-toggle.collapse3 class="m-1">Toggle Collapse</b-btn>
Expand All @@ -75,7 +75,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>with <code>v-model</code></small>
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>with <code>v-model</code></small>
</div>
<div>
<b-btn @click="showCollapse = !showCollapse"
Expand All @@ -99,7 +99,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small>multiple elements</small>
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small>multiple elements</small>
</div>
<div>
<!-- Single button triggers two b-collapse components -->
Expand All @@ -124,7 +124,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Collapse</strong> <small><code>accordion</code> support</small>
<i class="fa fa-align-justify"></i><strong> Collapse </strong> <small><code>accordion</code> support</small>
</div>
<div role="tablist">
<b-card no-body class="mb-1">
Expand Down
4 changes: 2 additions & 2 deletions src/views/base/Forms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<b-col sm="6">
<b-card>
<div slot="header">
<strong>Credit Card</strong> <small>Form</small>
<strong>Credit Card </strong> <small>Form</small>
</div>
<b-row>
<b-col sm="12">
Expand Down Expand Up @@ -53,7 +53,7 @@
<b-col sm="6">
<b-card>
<div slot="header">
<strong>Company</strong> <small>Form</small>
<strong>Company </strong><small>Form</small>
</div>
<b-form-group>
<label for="company">Company</label>
Expand Down
6 changes: 3 additions & 3 deletions src/views/base/Jumbotrons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Jumbotron</strong>
<i class="fa fa-align-justify"></i> <strong> Bootstrap Jumbotron </strong>
<div class="card-header-actions">
<a href="https://bootstrap-vue.js.org/docs/components/jumbotron" class="card-header-action" rel="noreferrer noopener" target="_blank">
<small class="text-muted">docs</small>
Expand All @@ -27,7 +27,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Jumbotron</strong>
<i class="fa fa-align-justify"></i> <strong> Jumbotron </strong>
<small>with slots</small>
</div>
<div>
Expand Down Expand Up @@ -57,7 +57,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Jumbotron</strong>
<i class="fa fa-align-justify"></i> <strong> Jumbotron </strong>
<small>variants</small>
</div>
<div>
Expand Down
20 changes: 10 additions & 10 deletions src/views/base/ListGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap list group</strong>
<i class="fa fa-align-justify"></i><strong> Bootstrap list group </strong>
<div class="card-header-actions">
<a href="https://bootstrap-vue.js.org/docs/components/list-group" class="card-header-action" rel="noreferrer noopener" target="_blank">
<small class="text-muted">docs</small>
Expand All @@ -28,7 +28,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>active items</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>active items</small>
</div>
<b-list-group>
<b-list-group-item>Cras justo odio</b-list-group-item>
Expand All @@ -46,7 +46,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>disabled items</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>disabled items</small>
</div>
<b-list-group>
<b-list-group-item disabled>Cras justo odio</b-list-group-item>
Expand All @@ -62,7 +62,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>actionable items</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>actionable items</small>
</div>
<b-list-group>
<b-list-group-item href="#some-link">Awesome link</b-list-group-item>
Expand All @@ -79,7 +79,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>buttons</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>buttons</small>
</div>
<b-list-group>
<b-list-group-item button>Button item</b-list-group-item>
Expand All @@ -94,7 +94,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>with badges</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>with badges</small>
</div>
<b-list-group>
<b-list-group-item class="d-flex justify-content-between align-items-center">
Expand All @@ -119,7 +119,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>variants</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>variants</small>
</div>
<b-list-group>
<b-list-group-item>This is a default list group item</b-list-group-item>
Expand All @@ -139,7 +139,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>variants active</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>variants active</small>
</div>
<b-list-group>
<b-list-group-item href="#">This is a default list group item</b-list-group-item>
Expand All @@ -161,7 +161,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>inside cards</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>inside cards</small>
</div>
<b-card-group deck>
<b-card header="<b>Card with list group</b>">
Expand Down Expand Up @@ -200,7 +200,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>List group</strong> <small>custom content</small>
<i class="fa fa-align-justify"></i><strong> List group </strong><small>custom content</small>
</div>
<b-list-group>
<b-list-group-item href="#" active class="flex-column align-items-start">
Expand Down
12 changes: 6 additions & 6 deletions src/views/base/Navbars.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navbar</strong>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navbar </strong>
<div class="card-header-actions">
<a href="https://bootstrap-vue.js.org/docs/components/navbar" class="card-header-action" rel="noreferrer noopener" target="_blank">
<small class="text-muted">docs</small>
Expand Down Expand Up @@ -57,7 +57,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
<small>brand</small>
</div>
<div>
Expand All @@ -74,7 +74,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
<small>text</small>
</div>
<div>
Expand All @@ -93,7 +93,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
<small>dropdown</small>
</div>
<div>
Expand Down Expand Up @@ -123,7 +123,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
<small>form</small>
</div>
<div>
Expand All @@ -139,7 +139,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Navbar</strong>
<i class="fa fa-align-justify"></i> <strong> Navbar </strong>
<small>input group</small>
</div>
<div>
Expand Down
14 changes: 7 additions & 7 deletions src/views/base/Navs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs</strong>
<div class="card-header-actions">
<a href="https://bootstrap-vue.js.org/docs/components/nav" class="card-header-action" rel="noreferrer noopener" target="_blank">
<small class="text-muted">docs</small>
Expand All @@ -25,7 +25,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>tab style</small>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>tab style</small>
</div>
<div>
<b-nav tabs>
Expand All @@ -40,7 +40,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>pill style</small>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>pill style</small>
</div>
<div>
<b-nav pills>
Expand All @@ -55,7 +55,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>fill tabs</small>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>fill tabs</small>
</div>
<div>
<b-nav fill tabs>
Expand All @@ -70,7 +70,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>justified tabs</small>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>justified tabs</small>
</div>
<div>
<b-nav justified tabs>
Expand All @@ -85,7 +85,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>dropdown support</small>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>dropdown support</small>
</div>
<div>
<b-nav pills>
Expand All @@ -104,7 +104,7 @@
header-tag="header"
footer-tag="footer">
<div slot="header">
<i class="fa fa-align-justify"></i> <strong>Bootstrap Navs</strong> <small>vertical variation</small>
<i class="fa fa-align-justify"></i><strong> Bootstrap Navs </strong><small>vertical variation</small>
</div>
<div>
<b-nav vertical class="w-25">
Expand Down
Loading

0 comments on commit 2a0c286

Please sign in to comment.