mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) keys panel
This commit is contained in:
parent
7c460fc13b
commit
29ac0677af
1 changed files with 15 additions and 0 deletions
|
|
@ -133,6 +133,21 @@ test('cloudcmd: route: buttons: one panel mode: move', (t) => {
|
|||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: keys panel', (t) => {
|
||||
const config = {
|
||||
showKeysPanel: false
|
||||
};
|
||||
|
||||
before({config}, (port, after) => {
|
||||
getStr(`http://localhost:${port}/`)
|
||||
.then((result) => {
|
||||
t.ok(/keyspanel hidden/.test(result), 'should hide keyspanel');
|
||||
t.end();
|
||||
after();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: no index', (t) => {
|
||||
const name = path.join(__dirname, '../../dist-dev/index.html');
|
||||
const nameAfter = path.join(__dirname, '../../dist-dev/index1.html');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue