Skip to content

Commit

Permalink
test: use cli to start remote debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ayachensiyuan committed Apr 8, 2024
1 parent ecd4014 commit 31bda77
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { it } from "../../../utils/it";
import { Env } from "../../../utils/env";
import {
validateProactiveMessaging,
validateBot,
initPage,
} from "../../../utils/playwrightOperation";
import { CliHelper } from "../../cliHelper";
Expand Down Expand Up @@ -112,7 +112,10 @@ describe("Migration Tests", function () {
Env.username,
Env.password
);
await validateProactiveMessaging(page);
await validateBot(page, {
botCommand: "helloWorld",
expected: "Your Hello World Bot is Running",
});
}
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { it } from "../../../utils/it";
import { Env } from "../../../utils/env";
import {
validateProactiveMessaging,
validateBot,
initPage,
} from "../../../utils/playwrightOperation";
import { CliHelper } from "../../cliHelper";
Expand Down Expand Up @@ -100,7 +100,10 @@ describe("Migration Tests", function () {
Env.username,
Env.password
);
await validateProactiveMessaging(page);
await validateBot(page, {
botCommand: "helloWorld",
expected: "Your Hello World Bot is Running",
});
}
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { it } from "../../../utils/it";
import { Env } from "../../../utils/env";
import {
validateProactiveMessaging,
validateBot,
initPage,
} from "../../../utils/playwrightOperation";
import { CliHelper } from "../../cliHelper";
Expand Down Expand Up @@ -109,7 +109,10 @@ describe("Migration Tests", function () {
Env.username,
Env.password
);
await validateProactiveMessaging(page);
await validateBot(page, {
botCommand: "helloWorld",
expected: "Your Hello World Bot is Running",
});
}
);
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { it } from "../../../utils/it";
import { Env } from "../../../utils/env";
import {
validateProactiveMessaging,
validateBot,
initPage,
} from "../../../utils/playwrightOperation";
import { CliHelper } from "../../cliHelper";
Expand Down Expand Up @@ -98,7 +98,10 @@ describe("Migration Tests", function () {
Env.username,
Env.password
);
await validateProactiveMessaging(page);
await validateBot(page, {
botCommand: "helloWorld",
expected: "Your Hello World Bot is Running",
});
}
);
});

0 comments on commit 31bda77

Please sign in to comment.