Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite266ecf

Browse files
authored
test(site): fix flaky outdated agent test (#12927)
1 parentacaa254 commite266ecf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎site/e2e/helpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export const createWorkspace = async (
6060
awaitfillParameters(page,richParameters,buildParameters);
6161
awaitpage.getByTestId("form-submit").click();
6262

63-
awaitexpect(page).toHaveURL("/@admin/"+name);
63+
// Workaround: OutdatedAgent lands at "http://localhost:3111/@admin/8d6225b7?resources=echo_dev"
64+
// and this is also a correct location.
65+
awaitpage.waitForURL(newRegExp("/@admin/"+name));
6466

6567
awaitpage.waitForSelector("*[data-testid='build-status'] >> text=Running",{
6668
state:"visible",

‎site/e2e/tests/outdatedAgent.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const agentVersion = "v0.27.0";
1717
test.beforeEach(async({ page})=>awaitbeforeCoderTest(page));
1818

1919
test("ssh with agent "+agentVersion,async({ page})=>{
20+
test.setTimeout(40_000);// This is a slow test, 20s may not be enough on Mac.
21+
2022
consttoken=randomUUID();
2123
consttemplate=awaitcreateTemplate(page,{
2224
apply:[

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp