mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
* adding columnify and ember-cli-cjs-transform * add yargs-parser * remove vendored yargs-parser tokenizer and use cjs transform to import it from actual yargs-parser * add clear command that clears the log, but maintains history * make codemirror have no gutter and be auto-height when rendered in the console output log * add fullscreen command and hook up fullscreen toggle button * hook up copy button
19 lines
863 B
JavaScript
19 lines
863 B
JavaScript
import { text, triggerable, fillable, value, isPresent } from 'ember-cli-page-object';
|
|
import keys from 'vault/lib/keycodes';
|
|
|
|
export default {
|
|
consoleInput: fillable('[data-test-component="console/command-input"] input'),
|
|
consoleInputValue: value('[data-test-component="console/command-input"] input'),
|
|
logOutput: text('[data-test-component="console/output-log"]'),
|
|
up: triggerable('keyup', '[data-test-component="console/command-input"] input', {
|
|
eventProperties: { keyCode: keys.UP },
|
|
}),
|
|
down: triggerable('keyup', '[data-test-component="console/command-input"] input', {
|
|
eventProperties: { keyCode: keys.DOWN },
|
|
}),
|
|
enter: triggerable('keyup', '[data-test-component="console/command-input"] input', {
|
|
eventProperties: { keyCode: keys.ENTER },
|
|
}),
|
|
hasInput: isPresent('[data-test-component="console/command-input"] input'),
|
|
};
|