mirror of
https://github.com/Microsoft/vscode
synced 2024-10-01 08:50:48 +00:00
Fix sticky scroll smoketest on linux
This commit is contained in:
parent
64ac05a2e9
commit
26db70d00a
|
@ -25,13 +25,14 @@ export function setup() {
|
|||
await settingsEditor.clearUserSettings();
|
||||
});
|
||||
|
||||
it('should inherit cwd when split and update the tab description - alt click', async () => {
|
||||
it('should show sticky scroll when appropriate', async () => {
|
||||
// There should not be a visible sticky scroll element initially
|
||||
await terminal.createTerminal();
|
||||
await app.code.waitForElements('.terminal-sticky-scroll', false, elements => elements.length === 0);
|
||||
|
||||
// Running ls should show the sticky scroll element
|
||||
await terminal.runCommandInTerminal(`ls`);
|
||||
await terminal.runCommandInTerminal(`ls`); // Long in pwsh
|
||||
await terminal.runCommandInTerminal(`ls -la`); // Long in bash/zsh
|
||||
await app.code.waitForElements('.terminal-sticky-scroll', false, elements => elements.length === 1 && elements[0].textContent.indexOf('ls') >= 0);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue