Skip to content

Commit

Permalink
test: add docker sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan_Chen committed Apr 29, 2024
1 parent 0adff00 commit 666e0a6
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
19 changes: 18 additions & 1 deletion packages/tests/scripts/randomCases.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"node-18": []
},
"macos-latest": {
"node-16": []
"node-16": [],
"node-18": []
}
},
"cases": [
Expand Down Expand Up @@ -171,5 +172,21 @@
"sample-remotedebug-todo-list-sql",
"sample-remotedebug-large-scale-notification"
]
},
{
"os": {
"ubuntu-latest": {
"node-16": [],
"node-18": []
},
"macos-latest": {
"node-16": [],
"node-18": []
}
},
"cases": [
"sample-localdebug-bot-sso-docker",
"sample-remotedebug-bot-sso-docker"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
* @author Ivan Chen <[email protected]>
*/

import { Page } from "playwright";
import { TemplateProject, LocalDebugTaskLabel } from "../../utils/constants";
import { validateBot } from "../../utils/playwrightOperation";
import { CaseFactory } from "./sampleCaseFactory";
import { Env } from "../../utils/env";

class BotSSODockerTestCase extends CaseFactory {
override async onValidate(page: Page): Promise<void> {
return await validateBot(page, {
botCommand: "show",
expected: Env.displayName,
});
}
}

new BotSSODockerTestCase(
TemplateProject.BotSSODocker,
27852471,
"[email protected]",
"dev"
).test();

0 comments on commit 666e0a6

Please sign in to comment.