diff --git a/e2e/tests/auth.test.ts b/e2e/tests/auth.test.ts index 311eea40..ab6001f0 100644 --- a/e2e/tests/auth.test.ts +++ b/e2e/tests/auth.test.ts @@ -2,6 +2,10 @@ import { expect } from 'chai'; import { before, after, EditorView, Workbench, By, ActivityBar, SideBarView } from 'vscode-extension-tester'; describe('Auth User', async () => { + if (process.env.CI) { + console.log('Test skipped in CI environment'); + return; + } let activityBar: ActivityBar; let sideBarView: SideBarView; @@ -26,10 +30,7 @@ describe('Auth User', async () => { after(async () => {}); it('in SideBarView should see Create issue... button', async () => { - if (isCI()) { - console.log('Test skipped in non-CI environment'); - return; - } + let atlasDrawer = sideBarView.findElement(By.id('workbench.view.extension.atlascode-drawer')); expect(atlasDrawer).to.not.be.undefined; @@ -40,11 +41,4 @@ describe('Auth User', async () => { }); it('in SideBarView should see a assigned JIRA issues', async () => {}); -}); - -function isCI() { - if (process.env.CI) { - return true; - } - return false; -} +}); \ No newline at end of file diff --git a/e2e/tests/no-auth.test.ts b/e2e/tests/no-auth.test.ts index 9d01ed62..eed346a0 100644 --- a/e2e/tests/no-auth.test.ts +++ b/e2e/tests/no-auth.test.ts @@ -20,6 +20,10 @@ describe('Atlassian Extension Activity Bar', async () => { }); describe('Atlassian Extension SideBar', async () => { + if (process.env.CI) { + console.log('Test skipped in CI environment'); + return; + } let activityBar: ActivityBar; let sideBarView: SideBarView; @@ -51,6 +55,10 @@ describe('Atlassian Extension SideBar', async () => { }); describe('Atlassian Extension Settings Page', async () => { + if (process.env.CI) { + console.log('Test skipped in CI environment'); + return; + } // let view: WebView; before(async () => {