@@ -14,7 +14,7 @@ test('cypress', async () => {
14
14
} ,
15
15
{
16
16
message : 'Pick an E2E testing solution' ,
17
- choices : [ 'Cypress' , 'Nightwatch' ] ,
17
+ choices : [ 'Cypress' , 'Nightwatch' , 'WebdriverIO' ] ,
18
18
choose : 0
19
19
}
20
20
]
@@ -42,7 +42,7 @@ test('nightwatch', async () => {
42
42
} ,
43
43
{
44
44
message : 'Pick an E2E testing solution' ,
45
- choices : [ 'Cypress' , 'Nightwatch' ] ,
45
+ choices : [ 'Cypress' , 'Nightwatch' , 'WebdriverIO' ] ,
46
46
choose : 1
47
47
} ,
48
48
{
@@ -65,3 +65,31 @@ test('nightwatch', async () => {
65
65
{ pluginsOnly : true }
66
66
)
67
67
} )
68
+
69
+ test ( 'webdriverio' , async ( ) => {
70
+ const expectedPrompts = [
71
+ {
72
+ message : 'features' ,
73
+ choices : [ 'E2E Testing' ] ,
74
+ check : [ 0 ]
75
+ } ,
76
+ {
77
+ message : 'Pick an E2E testing solution' ,
78
+ choices : [ 'Cypress' , 'Nightwatch' , 'WebdriverIO' ] ,
79
+ choose : 2
80
+ }
81
+ ]
82
+
83
+ const expectedOptions = {
84
+ plugins : {
85
+ '@vue/cli-plugin-e2e-webdriverio' : { }
86
+ }
87
+ }
88
+
89
+ await assertPromptModule (
90
+ moduleToTest ,
91
+ expectedPrompts ,
92
+ expectedOptions ,
93
+ { pluginsOnly : true }
94
+ )
95
+ } )
0 commit comments