mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) no one file panel
This commit is contained in:
parent
de42d38b31
commit
507054c9ff
1 changed files with 14 additions and 0 deletions
|
|
@ -101,6 +101,20 @@ test('cloudcmd: route: buttons: one file panel: move', async (t) => {
|
|||
await done();
|
||||
});
|
||||
|
||||
test('cloudcmd: route: buttons: no one file panel: move', async (t) => {
|
||||
const config = {
|
||||
oneFilePanel: false
|
||||
};
|
||||
|
||||
const {port, done} = await connect({config});
|
||||
const result = await getStr(`http://localhost:${port}`);
|
||||
|
||||
t.notOk(/icon-move none/.test(result), 'should not hide move button');
|
||||
t.end();
|
||||
|
||||
await done();
|
||||
});
|
||||
|
||||
test('cloudcmd: route: buttons: one file panel: move', async (t) => {
|
||||
const config = {
|
||||
oneFilePanel: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue