-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename and rework "Getting Started" walkthrough to "Create an Ansible…
… Environment" (#1556) * Create an Ansible environment walkthrough * Create an Ansible environment walkthrough --------- Co-authored-by: Ajinkya Udgirkar <ajinkyaudgirkar@gmail.com>
- Loading branch information
1 parent
883d49d
commit eb330e7
Showing
6 changed files
with
76 additions
and
63 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
<!-- markdownlint-disable MD033 MD041 MD013--> | ||
|
||
<figure align="center"> | ||
<img src="adt-components.png" alt="image missing" /> | ||
<figcaption>All the tools inside the Ansible environment package</figcaption> | ||
</figure> |
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,53 @@ | ||
import { config, expect } from "chai"; | ||
import { By, EditorView, Workbench } from "vscode-extension-tester"; | ||
import { sleep } from "./uiTestHelper"; | ||
|
||
config.truncateThreshold = 0; | ||
export function walkthroughUiTest(): void { | ||
describe("Check for the walkthrough - Create an Ansible environment", async () => { | ||
let workbench: Workbench; | ||
let editorView: EditorView; | ||
|
||
before(async () => { | ||
workbench = new Workbench(); | ||
editorView = new EditorView(); | ||
}); | ||
|
||
it("Open the walkthrough and check the elements", async function () { | ||
const commandInput = await workbench.openCommandPrompt(); | ||
await workbench.executeCommand("Welcome: Open Walkthrough"); | ||
await commandInput.setText("Create an Ansible environment"); | ||
await commandInput.confirm(); | ||
|
||
await sleep(1000); | ||
|
||
// Select the editor window | ||
const welcomeTab = await editorView.getTabByTitle("Welcome"); | ||
expect(welcomeTab).is.not.undefined; | ||
|
||
// Locate walkthrough title text | ||
const titleText = await welcomeTab | ||
.findElement( | ||
By.xpath("//div[contains(@class, 'getting-started-category') ]"), | ||
) | ||
.getText(); | ||
expect( | ||
titleText.includes("Create an Ansible environment"), | ||
"Create an Ansible environment title not found", | ||
).to.be.true; | ||
|
||
// Locate one of the steps | ||
const stepText = await welcomeTab | ||
.findElement( | ||
By.xpath("//div[contains(@class, 'step-list-container') ]"), | ||
) | ||
.getText(); | ||
|
||
expect(stepText).to.contain.oneOf([ | ||
"Create an Ansible playbook", | ||
"tag in the status bar", | ||
"Install the Ansible environment package", | ||
]); | ||
}); | ||
}); | ||
} |