Skip to content

Commit

Permalink
AXON-137: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
cabella-dot committed Mar 4, 2025
1 parent 8b0b1e4 commit 24f4c60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
8 changes: 3 additions & 5 deletions e2e/tests/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ describe('Auth User', async () => {

after(async () => {});

it('in Custom JQL Filters SideBarView should see Configure JQL entries in settings to view Jira issues button', async () => {
it('in SideBarView should see Create issue... button', async () => {
const atlasDrawer = sideBarView.findElement(By.id('workbench.view.extension.atlascode-drawer'));
expect(atlasDrawer).to.not.be.undefined;

const createIssueButton = atlasDrawer.findElement(
By.css('[aria-label="Configure JQL entries in settings to view Jira issues"]'),
);
const createIssueButton = atlasDrawer.findElement(By.css('[aria-label="Create issue..."]'));
expect(createIssueButton).to.not.be.undefined;
expect(await createIssueButton.getText()).to.equal('Configure JQL entries in settings to view Jira issues');
expect(await createIssueButton.getText()).to.equal('Create issue...');
});

it('in SideBarView should see a assigned JIRA issues', async () => {});
Expand Down
24 changes: 11 additions & 13 deletions e2e/tests/no-auth.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-unused-expressions */
import { expect } from 'chai';
import { before, ActivityBar, after, SideBarView, EditorView, Workbench } from 'vscode-extension-tester';
import { before, ActivityBar, after, SideBarView, EditorView, Workbench, By } from 'vscode-extension-tester';

describe('Atlassian Extension Activity Bar', async () => {
let activityBar: ActivityBar;
Expand Down Expand Up @@ -39,18 +39,16 @@ describe('Atlassian Extension SideBar', async () => {
});

after(async () => {});
//
//Commenting this out to be later re-implemented with Assigned Issues section
//
// it('should have a login action suggestion', async () => {
// const atlasDrawer = sideBarView.findElement(By.id('workbench.view.extension.atlascode-drawer'));
// expect(atlasDrawer).to.not.be.undefined;

// // find element by aria-label: "Please login to Jira"
// const loginButton = atlasDrawer.findElement(By.css('[aria-label="Please login to Jira"]'));
// expect(loginButton).to.not.be.undefined;
// expect(await loginButton.getText()).to.equal('Please login to Jira');
// });

it('should have a login action suggestion', async () => {
const atlasDrawer = sideBarView.findElement(By.id('workbench.view.extension.atlascode-drawer'));
expect(atlasDrawer).to.not.be.undefined;

// find element by aria-label: "Please login to Jira"
const loginButton = atlasDrawer.findElement(By.css('[aria-label="Please login to Jira"]'));
expect(loginButton).to.not.be.undefined;
expect(await loginButton.getText()).to.equal('Please login to Jira');
});
});

describe('Atlassian Extension Settings Page', async () => {
Expand Down

0 comments on commit 24f4c60

Please sign in to comment.