Skip to content

Commit

Permalink
install deps and driver change again
Browse files Browse the repository at this point in the history
  • Loading branch information
testlabauto committed Jan 8, 2025
1 parent 0d719db commit 539e25a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 25 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/test-e2e-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,6 @@ jobs:
libgtk-3-0 libgbm1 libnss3 libnspr4 libasound2 libkrb5-dev libcairo-dev \
libsdl-pango-dev libjpeg-dev libgif-dev pandoc
- name: Install missing system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwoff1 \
libvpx7 \
libevent-2.1-7 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-tools \
gstreamer1.0-gl \
gstreamer1.0-alsa \
gstreamer1.0-pulseaudio \
libflite1 \
libgles2-mesa \
libavif13 \
libhyphen0 \
ffmpeg \
libx264-dev \
libmanette-0.2-0
- name: Compile tests
run: |
rm package.json
Expand All @@ -80,6 +56,7 @@ jobs:
# Install required dependencies
npm install @playwright/test@^1.49.0
npx playwright install
npx playwright install-deps
npm install @currents/playwright@^1.8.0
npm install @midleman/github-actions-reporter@^1.9.5
npm install @vscode/v8-heap-parser@^0.1.0
Expand Down
4 changes: 3 additions & 1 deletion test/e2e/infra/playwrightDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export class PlaywrightDriver {
}

private async evaluateWithDriver<T>(pageFunction: PageFunction<IWindowDriver[], T>) {
return this.page.evaluate(pageFunction, [await this.getDriverHandle()]);
const driverHandle = await this.getDriverHandle();
const driver = await driverHandle.jsonValue(); // Extract the actual `IWindowDriver` object
return this.page.evaluate(pageFunction, [driver]);
}

wait(ms: number): Promise<void> {
Expand Down

0 comments on commit 539e25a

Please sign in to comment.