mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) buttons: one panel mode: copy, move
This commit is contained in:
parent
1283a0c5a9
commit
7c460fc13b
1 changed files with 30 additions and 0 deletions
|
|
@ -103,6 +103,36 @@ test('cloudcmd: route: buttons: no contact', (t) => {
|
|||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: buttons: one panel mode: move', (t) => {
|
||||
const config = {
|
||||
onePanelMode: true
|
||||
};
|
||||
|
||||
before({config}, (port, after) => {
|
||||
getStr(`http://localhost:${port}/`)
|
||||
.then((result) => {
|
||||
t.ok(/icon-move none/.test(result), 'should hide move button');
|
||||
t.end();
|
||||
after();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: buttons: one panel mode: move', (t) => {
|
||||
const config = {
|
||||
onePanelMode: true
|
||||
};
|
||||
|
||||
before({config}, (port, after) => {
|
||||
getStr(`http://localhost:${port}/`)
|
||||
.then((result) => {
|
||||
t.ok(/icon-copy none/.test(result), 'should hide copy button');
|
||||
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