added a shortcut to open the loging app
This commit is contained in:
1 parent
5614ad049d
commit
f57e23d76a
7 files changed
+31
-5
No files matched your search
@@ -51,6 +51,17 @@ test('selects individual logs and entire initialization groups',()=>{
|
||||
const input=d.getElementById('search'),paste=new dom.window.KeyboardEvent('keydown',{key:'v',ctrlKey:true,bubbles:true,cancelable:true});input.dispatchEvent(paste);assert.equal(paste.defaultPrevented,false);
|
||||
assert.deepEqual(errors,[]);dom.window.close();
|
||||
});
|
||||
|
||||
test('app link opens its YAML definition without expanding the log group',async()=>{
|
||||
const {dom,d,sent}=setup();
|
||||
const app=d.querySelector('[data-app="alpha"]'),link=app.querySelector('.app-link');
|
||||
assert.equal(link.getAttribute('aria-label'),'Open alpha definition');
|
||||
link.click();
|
||||
await new Promise(resolve=>setTimeout(resolve,0));
|
||||
assert.equal(sent.at(-1).type,'app');assert.equal(sent.at(-1).app,'alpha');
|
||||
assert.equal(app.open,false);
|
||||
dom.window.close();
|
||||
});
|
||||
test('retains selected text during live updates and leaves Ctrl+C to the browser',async()=>{
|
||||
const {dom,d,entries,errors,send}=setup();const alpha=d.querySelector('[data-app="alpha"]');alpha.open=true;alpha.dispatchEvent(new dom.window.Event('toggle'));
|
||||
const text=alpha.querySelector('.row-message'),range=d.createRange();range.selectNodeContents(text);dom.window.getSelection().addRange(range);
|
||||
|
||||
Reference in new issue
Block a user