Skip to content

Commit

Permalink
Start to fix TypeScript problems
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpoulter committed Apr 18, 2024
1 parent a2dd964 commit 3b5e092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/specs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface TestPageObject extends IPageDecorator<typeof locators.marquee>
export class TestPageObject extends BasePage<typeof locators.marquee, typeof locators> {
public locatorKey = 'marquee' as const

itemCnt () {
itemCnt (): Promise<number> {
return this.menuitems$$.length
}
}
3 changes: 2 additions & 1 deletion test/specs/workbench.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ describe('workbench', () => {
it('can access the VSCode API after a new folder is opened @skipWeb', async () => {
const workspaceRoot = await browser.executeWorkbench<string | undefined>((vscode) => vscode.workspace.rootPath)
expect(workspaceRoot).not.toBe(undefined)
const newWorkspaceRoot = path.join(workspaceRoot!, 'test')

const newWorkspaceRoot = path.join(workspaceRoot, 'test')
await browser.executeWorkbench((vscode, newRoot) => {
const uri = vscode.Uri.file(newRoot)
vscode.commands.executeCommand('vscode.openFolder', uri)
Expand Down

0 comments on commit 3b5e092

Please sign in to comment.