-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBluetoothControl_Adapters_001.test.js
More file actions
41 lines (39 loc) · 1.04 KB
/
BluetoothControl_Adapters_001.test.js
File metadata and controls
41 lines (39 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import {
pluginDeactivate,
pluginActivate,
getBluetoothAdapters,
} from '../../commonMethods/commonFunctions'
import constants from '../../commonMethods/constants'
export default {
title: 'Bluetooth Control Adapters 001',
description: 'Check Bluetooth Control Adapter list',
steps: [
{
description: 'Check if Bluetooth Control Plugin is stopped correctly',
test: pluginDeactivate,
params: constants.bluetoothControlPlugin,
assert: 'deactivated',
},
{
description: 'Check if Bluetooth Control Plugin is started correctly',
test: pluginActivate,
params: constants.bluetoothControlPlugin,
assert: 'activated',
},
{
description: 'Get Bluetooth Adapter list',
sleep: 10,
test() {
return getBluetoothAdapters.call(this)
},
validate(result) {
if (result === undefined || result === null) {
this.$log('Result does not have adapter list')
return false
} else {
return true
}
},
},
],
}