Wait for split to init before changing icon

Fixes #151710
This commit is contained in:
Daniel Imms 2022-06-10 07:17:24 -07:00
parent bf61f19e3f
commit d3ff1569e7
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -55,6 +55,7 @@ export function setup() {
it('should update icon of the tab in the tabs list', async () => {
await terminal.createTerminal();
await terminal.runCommand(TerminalCommandId.Split);
await terminal.waitForTerminalText(lines => lines.some(line => line.length > 0), undefined, 1);
const icon = 'symbol-method';
await terminal.runCommandWithValue(TerminalCommandIdWithValue.ChangeIcon, icon);
await terminal.assertTerminalGroups([[{}, { icon }]]);