Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update contents of get started page #12978

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions packages/tests/src/ui-test/treeview/treeview-quickstart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ describe("Openning Quick Start Tests", function () {
async function () {
const driver = VSBrowser.instance.driver;
await driver.sleep(Timeout.reloadWindow);
await new EditorView().closeAllEditors();

// get started page for "Build a Notification Bot"
await RetryHandler.retry(async () => {
await execCommandIfExist("View: Toggle Full Screen");
});

await new EditorView().closeAllEditors();
console.log("Closed all opened editor view.");

await execCommandIfExist(
CommandPaletteCommands.QuickStartCommand,
Timeout.webView
Expand All @@ -78,21 +81,21 @@ describe("Openning Quick Start Tests", function () {
By.css(".button-container .monaco-button")
);
const type1Item1ButtonValue = await type1Item1Button.getText();
expect(type1Item1ButtonValue).has.string("Run Prerequisite Checker");
console.log('Found the button "Run Prerequisite Checker"');
expect(type1Item1ButtonValue).has.string("Check Prerequisites");
console.log('Found the button "Check Prerequisites"');

// Check item "Create a notification bot"
const type1Item2 = await getExpandedButton(
webView,
false,
"Create a notification bot"
"Build a notification bot"
);
const type1Item2Button = await type1Item2?.findElement(
By.css(".button-container .monaco-button")
);
const type1Item2ButtonValue = await type1Item2Button.getText();
expect(type1Item2ButtonValue).has.string("Build a notification bot");
console.log('Found the button "Build a notification bot"');
expect(type1Item2ButtonValue).has.string("Build Notification Bot");
console.log('Found the button "Build Notification Bot"');

// get started page for "Build a Declarative Agent"
await execCommandIfExist(
Expand Down Expand Up @@ -135,8 +138,8 @@ describe("Openning Quick Start Tests", function () {
By.css(".button-container .monaco-button")
);
const type2Item2ButtonValue = await type2Item2Button.getText();
expect(type2Item2ButtonValue).has.string("Build a declarative agent");
console.log('Found the button "Build a declarative agent"');
expect(type2Item2ButtonValue).has.string("Build Declarative Agent");
console.log('Found the button "Build Declarative Agent"');
}
);
});
Expand Down
9 changes: 8 additions & 1 deletion packages/tests/src/ui-test/treeview/treeview-samples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,16 @@ describe("Create sample project and open sample view to download sample Tests",
try {
//open sample view from command palette
const driver = VSBrowser.instance.driver;
await driver.sleep(Timeout.reloadWindow);

await RetryHandler.retry(async () => {
await execCommandIfExist("View: Toggle Full Screen");
});

{
console.log("close editor tab");
await new EditorView().closeAllEditors();
console.log("Closed all opened editor view.");

console.log("open new sample tab from tree view");
await RetryHandler.retry(async () => {
await execCommandIfExist(
Expand Down
Loading