Skip to content

Commit 54e531d

Browse files
committed
Upgrade code-server version for E2E tests
1 parent ff95caf commit 54e531d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

extensions/ql-vscode/test/e2e/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Setup
99
- install playwright if you haven't yet (`npx playwright install`)
1010
- go to the e2e test folder on your terminal
1111
- make sure docker is running
12-
- run `docker-compose build`
13-
- run `docker-compose up`
12+
- run `docker compose build`
13+
- run `docker compose up`
1414

1515
Run tests
1616

17-
- run `npx playwright test --ui` from the e2e test folder to follow the test while it's running. This UI has a 'locator' tool with which elements on the test screen can be found
17+
- run `npx playwright test --ui` from the e2e test folder to follow the test while it's running. This UI has a 'locator' tool with which elements on the test screen can be found
1818
- use `npx playwright test --debug` to follow the test in real time and interact with the interface, e.g. press enter or input into fields, stop and start
1919

2020
During the test elements are created in the docker volume, e.g. the downloaded database or query data. This might interfer with other tests or when running a test twice. If that happens restart your docker volume by using `docker-compose down -v` and `docker-compose up`. Sometimes already existing queries from former runs change the input the extension needs.

extensions/ql-vscode/test/e2e/docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
code-server:
53
build:
@@ -38,7 +36,7 @@ services:
3836
depends_on:
3937
- files-init
4038
files-init:
41-
image: alpine:3.19.1
39+
image: alpine:3.21.0
4240
restart: "no"
4341
# Since we're not running the code-server container using the same user as our host user,
4442
# we need to set the permissions on the mounted volumes to match the user inside the container.

extensions/ql-vscode/test/e2e/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM codercom/code-server:4.23.1
1+
FROM codercom/code-server:4.95.3
22

33
USER root
44

0 commit comments

Comments
 (0)