-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AXON-32 - Auth Test framework - Auth we go! (works only on local, no …
…CI) (#54) * auth-test stable and working with test user api token AXON-32 * docker envs * docker envs testing * vars -> secrets * . * . * sidebar wait 10000 * skip auth test in CI * skip auth test in CI * skip auth test in CI * skip auth test in CI
- Loading branch information
1 parent
33de8b0
commit 51b1530
Showing
17 changed files
with
133 additions
and
13 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,42 @@ | ||
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; | ||
|
||
before(async () => { | ||
await new EditorView().closeAllEditors(); | ||
await new Workbench().executeCommand('Atlassian: Test Login'); | ||
await new Promise((res) => { | ||
setTimeout(res, 2000); | ||
}); | ||
|
||
activityBar = new ActivityBar(); | ||
(await activityBar.getViewControl('Atlassian'))?.openView(); | ||
sideBarView = new SideBarView(); | ||
sideBarView.wait(10000); | ||
|
||
// wait for X seconds so the sidebar can load | ||
await new Promise((res) => { | ||
setTimeout(res, 6000); | ||
}); | ||
}); | ||
|
||
after(async () => {}); | ||
|
||
it('in SideBarView should see Create issue... button', async () => { | ||
let atlasDrawer = sideBarView.findElement(By.id('workbench.view.extension.atlascode-drawer')); | ||
expect(atlasDrawer).to.not.be.undefined; | ||
|
||
const createIssueButton = atlasDrawer.findElement(By.css('[aria-label="Create issue..."]')); | ||
expect(createIssueButton).to.not.be.undefined; | ||
expect(await createIssueButton.getText()).to.equal('Create issue...'); | ||
}); | ||
|
||
it('in SideBarView should see a assigned JIRA issues', async () => {}); | ||
}); |
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
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
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