Skip to content

Commit 2183037

Browse files
committed
test: update snapshots
1 parent 3de7099 commit 2183037

File tree

9 files changed

+144
-102
lines changed

9 files changed

+144
-102
lines changed

tests/unit/views/base/Tables.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Vue from 'vue'
2-
import { mount, shallowMount } from '@vue/test-utils';
2+
// import { mount, shallowMount } from '@vue/test-utils';
3+
import { mount } from '@vue/test-utils';
34
import BootstrapVue from 'bootstrap-vue'
45
import Tables from '@/views/base/Tables'
56

tests/unit/views/base/__snapshots__/Cards.spec.js.snap

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ exports[`Cards.vue renders correctly 1`] = `
7575
class="card-header"
7676
>
7777
<div>
78-
&lt;i class='fa fa-check'&gt;&lt;/i&gt; Card with icon
78+
<i
79+
class="fa fa-check"
80+
/>
81+
Card with icon
7982
</div>
8083
</div>
8184
<div
@@ -106,24 +109,29 @@ exports[`Cards.vue renders correctly 1`] = `
106109
107110
Card with switch
108111
109-
<label
110-
class="switch switch-sm switch-text switch-info float-right mb-0"
112+
<div
113+
class="card-header-actions"
114+
style="height: 21px;"
111115
>
112-
<input
113-
class="switch-input"
114-
type="checkbox"
115-
/>
116-
117-
<span
118-
class="switch-label"
119-
data-off="Off"
120-
data-on="On"
121-
/>
122-
123-
<span
124-
class="switch-handle"
125-
/>
126-
</label>
116+
<label
117+
class="switch switch-label switch-sm switch-info form-check-label"
118+
>
119+
<input
120+
class="switch-input form-check-input"
121+
false-value="uncheckedValue"
122+
id="switch-id-20"
123+
true-value="value"
124+
type="checkbox"
125+
value="true"
126+
/>
127+
128+
<span
129+
class="switch-slider"
130+
data-checked="On"
131+
data-unchecked="Off"
132+
/>
133+
</label>
134+
</div>
127135
</div>
128136
</div>
129137
<div
@@ -154,11 +162,15 @@ exports[`Cards.vue renders correctly 1`] = `
154162
155163
Card with label
156164
157-
<span
158-
class="badge float-right badge-success"
165+
<div
166+
class="card-header-actions"
159167
>
160-
Success
161-
</span>
168+
<span
169+
class="badge badge-success"
170+
>
171+
Success
172+
</span>
173+
</div>
162174
</div>
163175
</div>
164176
<div
@@ -189,11 +201,15 @@ exports[`Cards.vue renders correctly 1`] = `
189201
190202
Card with label
191203
192-
<span
193-
class="badge float-right badge-danger badge-pill"
204+
<div
205+
class="card-header-actions"
194206
>
195-
42
196-
</span>
207+
<span
208+
class="badge badge-danger badge-pill"
209+
>
210+
42
211+
</span>
212+
</div>
197213
</div>
198214
</div>
199215
<div

tests/unit/views/base/__snapshots__/Forms.spec.js.snap

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ exports[`Forms.vue renders correctly 1`] = `
343343
<b-form-group-stub
344344
description="Let us know your full name."
345345
feedbackarialive="assertive"
346-
horizontal="true"
347346
label="Enter your name"
348347
labelcols="3"
349348
labelfor="basicName"
@@ -358,7 +357,6 @@ exports[`Forms.vue renders correctly 1`] = `
358357
359358
<b-form-group-stub
360359
feedbackarialive="assertive"
361-
horizontal="true"
362360
label="Static"
363361
labelcols="3"
364362
labelfor="basicStatic"
@@ -374,7 +372,6 @@ exports[`Forms.vue renders correctly 1`] = `
374372
<b-form-group-stub
375373
description="This is a help text"
376374
feedbackarialive="assertive"
377-
horizontal="true"
378375
label="Text Input"
379376
labelcols="3"
380377
labelfor="basicText"
@@ -389,7 +386,6 @@ exports[`Forms.vue renders correctly 1`] = `
389386
390387
<b-form-group-stub
391388
feedbackarialive="assertive"
392-
horizontal="true"
393389
label="Date"
394390
labelcols="3"
395391
labelfor="date"
@@ -404,7 +400,6 @@ exports[`Forms.vue renders correctly 1`] = `
404400
<b-form-group-stub
405401
description="Please enter your email"
406402
feedbackarialive="assertive"
407-
horizontal="true"
408403
label="Email Input"
409404
labelcols="3"
410405
labelfor="basicEmail"
@@ -421,7 +416,6 @@ exports[`Forms.vue renders correctly 1`] = `
421416
<b-form-group-stub
422417
description="Please enter a complex password"
423418
feedbackarialive="assertive"
424-
horizontal="true"
425419
label="Password Input"
426420
labelcols="3"
427421
labelfor="basicPassword"
@@ -437,7 +431,6 @@ exports[`Forms.vue renders correctly 1`] = `
437431
438432
<b-form-group-stub
439433
feedbackarialive="assertive"
440-
horizontal="true"
441434
label="Disabled Input"
442435
labelcols="3"
443436
labelfor="basicInputDisabled"
@@ -453,7 +446,6 @@ exports[`Forms.vue renders correctly 1`] = `
453446
454447
<b-form-group-stub
455448
feedbackarialive="assertive"
456-
horizontal="true"
457449
label="Textarea"
458450
labelcols="3"
459451
labelfor="basicTextarea"
@@ -470,7 +462,6 @@ exports[`Forms.vue renders correctly 1`] = `
470462
471463
<b-form-group-stub
472464
feedbackarialive="assertive"
473-
horizontal="true"
474465
label="Select"
475466
labelcols="3"
476467
labelfor="basicSelect"
@@ -490,7 +481,6 @@ exports[`Forms.vue renders correctly 1`] = `
490481
491482
<b-form-group-stub
492483
feedbackarialive="assertive"
493-
horizontal="true"
494484
label="Select large"
495485
labelcols="3"
496486
labelfor="basicSelectLg"
@@ -511,7 +501,6 @@ exports[`Forms.vue renders correctly 1`] = `
511501
512502
<b-form-group-stub
513503
feedbackarialive="assertive"
514-
horizontal="true"
515504
label="Select small"
516505
labelcols="3"
517506
labelfor="basicSelectSm"
@@ -532,7 +521,6 @@ exports[`Forms.vue renders correctly 1`] = `
532521
533522
<b-form-group-stub
534523
feedbackarialive="assertive"
535-
horizontal="true"
536524
label="Disabled select"
537525
labelcols="3"
538526
labelfor="basicSelectDisabled"
@@ -553,7 +541,6 @@ exports[`Forms.vue renders correctly 1`] = `
553541
554542
<b-form-group-stub
555543
feedbackarialive="assertive"
556-
horizontal="true"
557544
label="Select"
558545
labelcols="3"
559546
labelfor="basicMultiSelect"
@@ -574,7 +561,6 @@ exports[`Forms.vue renders correctly 1`] = `
574561
575562
<b-form-group-stub
576563
feedbackarialive="assertive"
577-
horizontal="true"
578564
label="Radios"
579565
labelcols="3"
580566
labelfor="basicRadios"
@@ -595,7 +581,6 @@ exports[`Forms.vue renders correctly 1`] = `
595581
596582
<b-form-group-stub
597583
feedbackarialive="assertive"
598-
horizontal="true"
599584
label="Inline radios"
600585
labelcols="3"
601586
labelfor="basicInlineRadios"
@@ -615,7 +600,6 @@ exports[`Forms.vue renders correctly 1`] = `
615600
616601
<b-form-group-stub
617602
feedbackarialive="assertive"
618-
horizontal="true"
619603
label="Checkboxes"
620604
labelcols="3"
621605
labelfor="basicCheckboxes"
@@ -655,7 +639,6 @@ exports[`Forms.vue renders correctly 1`] = `
655639
656640
<b-form-group-stub
657641
feedbackarialive="assertive"
658-
horizontal="true"
659642
label="Inline checkboxes"
660643
labelcols="3"
661644
labelfor="basicInlineCheckboxes"
@@ -697,7 +680,6 @@ exports[`Forms.vue renders correctly 1`] = `
697680
698681
<b-form-group-stub
699682
feedbackarialive="assertive"
700-
horizontal="true"
701683
label="Radios - custom"
702684
labelcols="3"
703685
labelfor="basicRadiosCustom"
@@ -775,7 +757,6 @@ exports[`Forms.vue renders correctly 1`] = `
775757
776758
<b-form-group-stub
777759
feedbackarialive="assertive"
778-
horizontal="true"
779760
label="Inline radios - custom"
780761
labelcols="3"
781762
labelfor="basicCustomRadios1"
@@ -852,7 +833,6 @@ exports[`Forms.vue renders correctly 1`] = `
852833
853834
<b-form-group-stub
854835
feedbackarialive="assertive"
855-
horizontal="true"
856836
label="Checkboxes - custom"
857837
labelcols="3"
858838
labelfor="basicCustomCheckboxes"
@@ -926,7 +906,6 @@ exports[`Forms.vue renders correctly 1`] = `
926906
927907
<b-form-group-stub
928908
feedbackarialive="assertive"
929-
horizontal="true"
930909
label="Inline checkboxes - custom"
931910
labelcols="3"
932911
labelfor="basicInlineCustomCheckboxes"
@@ -999,7 +978,6 @@ exports[`Forms.vue renders correctly 1`] = `
999978
1000979
<b-form-group-stub
1001980
feedbackarialive="assertive"
1002-
horizontal="true"
1003981
label="File input"
1004982
labelcols="3"
1005983
labelfor="fileInput"
@@ -1016,7 +994,6 @@ exports[`Forms.vue renders correctly 1`] = `
1016994
1017995
<b-form-group-stub
1018996
feedbackarialive="assertive"
1019-
horizontal="true"
1020997
label="Multiple file input"
1021998
labelcols="3"
1022999
labelfor="fileInputMulti"
@@ -1187,7 +1164,6 @@ exports[`Forms.vue renders correctly 1`] = `
11871164
<b-form-group-stub
11881165
description="Please enter your email."
11891166
feedbackarialive="assertive"
1190-
horizontal="true"
11911167
label="Email"
11921168
labelcols="3"
11931169
labelfor="horizEmail"
@@ -1204,7 +1180,6 @@ exports[`Forms.vue renders correctly 1`] = `
12041180
<b-form-group-stub
12051181
description="Please enter your password."
12061182
feedbackarialive="assertive"
1207-
horizontal="true"
12081183
label="Password"
12091184
labelcols="3"
12101185
labelfor="horizPass"
@@ -1596,7 +1571,6 @@ exports[`Forms.vue renders correctly 1`] = `
15961571
15971572
<b-form-group-stub
15981573
feedbackarialive="assertive"
1599-
horizontal="true"
16001574
label="Small input"
16011575
labelcols="5"
16021576
labelfor="smInput"
@@ -1613,7 +1587,6 @@ exports[`Forms.vue renders correctly 1`] = `
16131587
16141588
<b-form-group-stub
16151589
feedbackarialive="assertive"
1616-
horizontal="true"
16171590
label="Default input"
16181591
labelcols="5"
16191592
labelfor="defaultInput"
@@ -1628,7 +1601,6 @@ exports[`Forms.vue renders correctly 1`] = `
16281601
16291602
<b-form-group-stub
16301603
feedbackarialive="assertive"
1631-
horizontal="true"
16321604
label="Large input"
16331605
labelcols="5"
16341606
labelfor="lgInput"
@@ -1875,7 +1847,7 @@ exports[`Forms.vue renders correctly 1`] = `
18751847
tag="div"
18761848
>
18771849
<b-col-stub
1878-
sm="4"
1850+
md="4"
18791851
tag="div"
18801852
>
18811853
<b-card-stub
@@ -2025,7 +1997,7 @@ exports[`Forms.vue renders correctly 1`] = `
20251997
</b-col-stub>
20261998
20271999
<b-col-stub
2028-
sm="4"
2000+
md="4"
20292001
tag="div"
20302002
>
20312003
<b-card-stub
@@ -2198,7 +2170,7 @@ exports[`Forms.vue renders correctly 1`] = `
21982170
</b-col-stub>
21992171
22002172
<b-col-stub
2201-
sm="4"
2173+
md="4"
22022174
tag="div"
22032175
>
22042176
<b-card-stub
@@ -2967,7 +2939,7 @@ exports[`Forms.vue renders correctly 1`] = `
29672939
tag="div"
29682940
>
29692941
<b-col-stub
2970-
sm="4"
2942+
md="4"
29712943
tag="div"
29722944
>
29732945
<b-card-stub
@@ -3117,7 +3089,7 @@ exports[`Forms.vue renders correctly 1`] = `
31173089
</b-col-stub>
31183090
31193091
<b-col-stub
3120-
sm="4"
3092+
md="4"
31213093
tag="div"
31223094
>
31233095
<b-card-stub
@@ -3240,7 +3212,7 @@ exports[`Forms.vue renders correctly 1`] = `
32403212
</b-col-stub>
32413213
32423214
<b-col-stub
3243-
sm="4"
3215+
md="4"
32443216
tag="div"
32453217
>
32463218
<b-card-stub

0 commit comments

Comments
 (0)