test(route) keys panel: show

This commit is contained in:
coderaiser 2017-12-06 15:04:32 +02:00
parent af70eb5ee6
commit 81f4a207a7
2 changed files with 35 additions and 18 deletions

View file

@ -148,7 +148,7 @@ test('cloudcmd: route: buttons: one panel mode: move', (t) => {
});
});
test('cloudcmd: route: keys panel', (t) => {
test('cloudcmd: route: keys panel: hide', (t) => {
const config = {
showKeysPanel: false
};
@ -163,6 +163,21 @@ test('cloudcmd: route: keys panel', (t) => {
});
});
test('cloudcmd: route: keys panel', (t) => {
const config = {
showKeysPanel: true
};
before({config}, (port, after) => {
getStr(`http://localhost:${port}/`)
.then((result) => {
t.notOk(/keyspanel hidden/.test(result), 'should show keyspanel');
t.end();
after();
});
});
});
test('cloudcmd: route: no index', (t) => {
const name = path.join(__dirname, '../../dist/index.html');
const nameAfter = path.join(__dirname, '../../dist/index1.html');