-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contain side-effects from tests in C/I (#99)
* Break out specs into seperate files * Enable retries for flakes * Imperative style seems more robust * Use polling strategy * Give Windows some extra time * Something odd about Windows makes this fail
- Loading branch information
1 parent
1b50504
commit fc9e263
Showing
18 changed files
with
736 additions
and
700 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
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-return */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
// eslint-disable-next-line @typescript-eslint/triple-slash-reference | ||
/// <reference path="../../dist/service.d.ts" /> | ||
|
||
import { browser, expect } from '@wdio/globals' | ||
|
||
describe('activity bar', () => { | ||
it('should show all activity bar items', async () => { | ||
const workbench = await browser.getWorkbench() | ||
const viewControls = await workbench.getActivityBar().getViewControls() | ||
expect(await Promise.all(viewControls.map((vc) => vc.getTitle()))).toEqual([ | ||
'Explorer', | ||
'Search', | ||
'Source Control', | ||
'Run and Debug', | ||
'Extensions' | ||
]) | ||
}) | ||
|
||
it('can open extension view and check that first installed extension is our guinea pig', async () => { | ||
const workbench = await browser.getWorkbench() | ||
const extensionView = await workbench.getActivityBar().getViewControl('Extensions') | ||
await extensionView?.openView() | ||
|
||
const selectedView = await workbench.getActivityBar().getSelectedViewAction() | ||
expect(await selectedView.getTitle()).toBe('Extensions') | ||
|
||
const sidebar = workbench.getSideBar() | ||
const sidebarView = sidebar.getContent() | ||
await sidebarView.getSection('INSTALLED') | ||
|
||
/** | ||
* for some reason the developed extension doesn't show up | ||
* in the installed extension section when running in a | ||
* pristine environment | ||
*/ | ||
// const installedExtensions = await extensionViewSection.getVisibleItems() | ||
// expect(await installedExtensions[0].getTitle()).toBe('Guinea Pig') | ||
}) | ||
|
||
it('should be able to get global options', async () => { | ||
const workbench = await browser.getWorkbench() | ||
const viewControls = await workbench.getActivityBar().getGlobalActions() | ||
expect(await Promise.all(viewControls.map((vc) => vc.getTitle()))).toEqual([ | ||
'Accounts', | ||
'Manage' | ||
]) | ||
}) | ||
}) |
Oops, something went wrong.