File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ export function requiresLicense() {
47
47
test . skip ( ! license ) ;
48
48
}
49
49
50
+ /**
51
+ * Marks tests that need to be fixed, because they fail for hard to fix/diagnose
52
+ * reasons when a license is added.
53
+ * @deprecated Do not add this to any additional tests.
54
+ */
55
+ export function failsWithLicense ( ) {
56
+ test . skip ( Boolean ( license ) ) ;
57
+ }
58
+
50
59
/**
51
60
* requireTerraformProvisioner by default is enabled.
52
61
*/
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { test } from "@playwright/test";
4
4
import {
5
5
createTemplate ,
6
6
createWorkspace ,
7
+ failsWithLicense ,
7
8
startAgent ,
8
9
stopAgent ,
9
10
stopWorkspace ,
@@ -13,6 +14,8 @@ import { beforeCoderTest } from "../hooks";
13
14
test . beforeEach ( ( { page } ) => beforeCoderTest ( page ) ) ;
14
15
15
16
test ( "app" , async ( { context, page } ) => {
17
+ failsWithLicense ( ) ;
18
+
16
19
const appContent = "Hello World" ;
17
20
const token = randomUUID ( ) ;
18
21
const srv = http
Original file line number Diff line number Diff line change 4
4
createTemplate ,
5
5
createWorkspace ,
6
6
downloadCoderVersion ,
7
+ failsWithLicense ,
7
8
sshIntoWorkspace ,
8
9
startAgentWithCommand ,
9
10
stopAgent ,
@@ -17,6 +18,8 @@ const agentVersion = "v2.12.1";
17
18
test . beforeEach ( ( { page } ) => beforeCoderTest ( page ) ) ;
18
19
19
20
test ( `ssh with agent ${ agentVersion } ` , async ( { page } ) => {
21
+ failsWithLicense ( ) ;
22
+
20
23
test . setTimeout ( 40_000 ) ; // This is a slow test, 20s may not be enough on Mac.
21
24
22
25
const token = randomUUID ( ) ;
You can’t perform that action at this time.
0 commit comments