Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet committed Oct 27, 2022
1 parent 1d590ac commit 84de681
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/playwright/src/tests/language.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ test.describe('OpenSumi Language', () => {
await editor.placeCursorInLineWithPosition(4, 20);
let cursorHandle = await editor.getCursorElement();

await cursorHandle?.click({ modifiers: [isMacintosh ? 'Meta' : 'Control'] });
await app.page.waitForTimeout(1000);

await app.page.keyboard.down(isMacintosh ? 'Meta' : 'Control');
await app.page.waitForTimeout(200);
await cursorHandle?.click();
await app.page.waitForTimeout(200);
await app.page.keyboard.up(isMacintosh ? 'Meta' : 'Control');
await app.page.waitForTimeout(200);

const definitionTree = await explorer.getFileStatTreeNodeByPath('language/definition.ts');
expect(await definitionTree?.isSelected()).toBeTruthy();
const currentTab = await editor.getCurrentTab();
expect(await currentTab?.textContent()).toStrictEqual(' definition.ts');

Expand Down

0 comments on commit 84de681

Please sign in to comment.