File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,16 @@ describe('dropdown-form', () => {
10
10
expect ( form . is ( 'form' ) ) . toBe ( true )
11
11
} )
12
12
13
+ it ( 'has tabindex on form' , async ( ) => {
14
+ const wrapper = mount ( BDropdownForm )
15
+ expect ( wrapper . is ( 'li' ) ) . toBe ( true )
16
+
17
+ const form = wrapper . find ( 'form' )
18
+ expect ( form . is ( 'form' ) ) . toBe ( true )
19
+ expect ( form . attributes ( 'tabindex' ) ) . toBeDefined ( )
20
+ expect ( form . attributes ( 'tabindex' ) ) . toEqual ( '0' )
21
+ } )
22
+
13
23
it ( 'has custom class "b-dropdown-form"' , async ( ) => {
14
24
const wrapper = mount ( BDropdownForm )
15
25
expect ( wrapper . is ( 'li' ) ) . toBe ( true )
@@ -29,6 +39,7 @@ describe('dropdown-form', () => {
29
39
const form = wrapper . find ( 'form' )
30
40
expect ( form . classes ( ) ) . toContain ( 'was-validated' )
31
41
expect ( form . classes ( ) ) . toContain ( 'b-dropdown-form' )
42
+ expect ( form . classes ( ) ) . toContain ( 'dropdown-item' )
32
43
} )
33
44
34
45
it ( 'does not have attribute novalidate by default' , async ( ) => {
You can’t perform that action at this time.
0 commit comments