Skip to content

Commit 76d291b

Browse files
authored
Update smoke test suit test names (#1475)
Signed-off-by: Denis Golovin <dgolovin@redhat.com>
1 parent 9dbe9f7 commit 76d291b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

test/ui/activity.test.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,33 @@ describe('OpenShift Connector Smoke Test', () => {
2323
let browser: VSBrowser;
2424

2525
// initialize the browser and webdriver
26-
before(() => {
26+
before(async () => {
2727
browser = VSBrowser.instance;
28+
await browser.waitForWorkbench();
2829
});
2930

3031
// test whatever we want using webdriver, here we are just checking the page title
31-
it('OpenShift Connector installed and activated', async () => {
32-
await browser.waitForWorkbench();
32+
it('OpenShift Connector installed and activated', ()=> {
3333
const control = new ActivityBar().getViewControl('OpenShift');
3434
// eslint-disable-next-line no-console
3535
expect(control.getTitle()).equals('OpenShift');
36+
});
37+
38+
it('odo command is downloaded and functional', async () => {
3639
const wb = new Workbench();
3740
const terminalView: TerminalView = await new BottomBarPanel().openTerminalView();
38-
wb.openCommandPrompt();
3941
wb.executeCommand('OpenShift: About');
4042
browser.driver.sleep(20000);
4143
const odoVersion = await terminalView.getText();
4244
expect(odoVersion).contains('odo v1.1.1');
45+
})
46+
47+
it('oc command is downloaded and functional', async () => {
48+
const wb = new Workbench();
49+
const terminalView: TerminalView = await new BottomBarPanel().openTerminalView();
4350
wb.executeCommand('OpenShift: Print OKD Client Tool Version');
4451
browser.driver.sleep(20000);
4552
const ocVersion = await terminalView.getText();
4653
expect(ocVersion).contains('Client Version: 4.3.3');
47-
});
54+
})
4855
});

0 commit comments

Comments
 (0)