Skip to content

Commit

Permalink
skip auth test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bwieger-atlassian-com committed Dec 21, 2024
1 parent e5016c2 commit 3f19edf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
18 changes: 6 additions & 12 deletions e2e/tests/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}

Check failure on line 33 in e2e/tests/auth.test.ts

View workflow job for this annotation

GitHub Actions / build

Delete `⏎⏎········`

let atlasDrawer = sideBarView.findElement(By.id('workbench.view.extension.atlascode-drawer'));
expect(atlasDrawer).to.not.be.undefined;
Expand All @@ -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;
}
});

Check failure on line 44 in e2e/tests/auth.test.ts

View workflow job for this annotation

GitHub Actions / build

Insert `⏎`
8 changes: 8 additions & 0 deletions e2e/tests/no-auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 3f19edf

Please sign in to comment.