-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add opened editor e2e test (#1863)
* test: add opened editor e2e test * chore: update split editor timeout * chore: trigger editor title menu by id * feat: 优化部分启动逻辑 (#1772) * feat: optimize initialize performance * chore: deps * refactor: (wip) add lifecycle service * refactor: (wip) * refactor: 重构 vscode contributes 运行机制 * fix: test case * chore: unused code * refactor: register language logic * chore: test case * chore: test case * chore: revert config * fix: theme contribution * chore: update comments * chore: fix build error Co-authored-by: Dan <[email protected]> * chore: update labeler.yml * fix: some event should not be dispose while switch session (#1866) * refactor: parallel open resource (#1873) * chore: improve append view performance (#1871) * chore: improve append view performance * chore: improve append view performance * fix: submenus error (#1867) * chore: update view quick open prefix (#1869) * test: implement run debug e2e test case (#1787) * test: implement debug breakpoint editor glyph margin test case * test: code * test: implement run debug test case * fix: ci * fix: ci * fix: ci * chore: fix ci * test: implement debug breakpoint editor glyph margin test case * fix: improve debug code Co-authored-by: kuiwu <[email protected]> * chore: change filetree context menu order (#1868) * chore: fix new file test Co-authored-by: 大表哥 <[email protected]> Co-authored-by: John <[email protected]>
- Loading branch information
1 parent
462e08f
commit b72ff66
Showing
6 changed files
with
183 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
export * from './app'; | ||
export * from './component-editor'; | ||
export * from './context-menu'; | ||
export * from './editor'; | ||
export * from './explorer-view'; | ||
export * from './filetree-view'; | ||
export * from './menu-item'; | ||
export * from './menu'; | ||
export * from './menubar'; | ||
export * from './opened-editor-view'; | ||
export * from './panel'; | ||
export * from './quick-command-palette'; | ||
export * from './search-view'; | ||
export * from './terminal'; | ||
export * from './text-editor'; | ||
export * from './tree-node'; | ||
export * from './view-base'; | ||
export * from './view'; | ||
export * from './workspace'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { OpenSumiApp } from './app'; | ||
import { OpenSumiView } from './view'; | ||
|
||
export class OpenSumiOpenedEditorView extends OpenSumiView { | ||
constructor(app: OpenSumiApp, workspaceName: string) { | ||
super(app, { | ||
viewSelector: '#file-opened-editor', | ||
tabSelector: '#file-opened-editor [tabindex="0"]', | ||
name: workspaceName, | ||
}); | ||
} | ||
|
||
async getTitleActionByName(name: string) { | ||
const header = await this.getTabElement(); | ||
if (!header) { | ||
return; | ||
} | ||
await header.hover(); | ||
const titleAction = await header.waitForSelector('[class*="titleActions___"]'); | ||
const actions = await titleAction.$$('[class*="iconAction__"]'); | ||
for (const action of actions) { | ||
const title = await action.getAttribute('title'); | ||
if (name === title) { | ||
return action; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters