Skip to content

Commit 77fee3e

Browse files
authored
docs: Update driver version mismatch error message
1 parent 4ffc3d2 commit 77fee3e

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

.github/workflows/cron.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
4242
- name: Install Playwright dependencies
4343
run: |
44+
box cbplaywright driver install 1.25.0 --force
4445
box playwright-cli install-deps
4546
box playwright-cli install chromium
4647

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
4949
- name: Install Playwright dependencies
5050
run: |
51+
box cbplaywright driver install 1.25.0 --force
5152
box playwright-cli install-deps
5253
box playwright-cli install chromium
5354

.github/workflows/prerelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
4343
- name: Install Playwright dependencies
4444
run: |
45+
box cbplaywright driver install 1.25.0 --force
4546
box playwright-cli install-deps
4647
box playwright-cli install chromium
4748

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
4444
- name: Install Playwright dependencies
4545
run: |
46+
box cbplaywright driver install 1.25.0 --force
4647
box playwright-cli install-deps
4748
box playwright-cli install chromium
4849

models/PlaywrightMixins.cfm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
var driverVersion = deserializeJSON( fileRead( driverDir & "package/package.json" ) ).version;
3737
if ( variables.playwrightVersion != driverVersion ) {
38-
throw( message = "Incompatible driver version. cbPlaywright is using [#variables.playwrightVersion#] while the driver is using [#driverVersion#]. Please update one or the other." );
38+
throw( message = "Incompatible driver version. cbPlaywright is using [#variables.playwrightVersion#] while the driver is using [#driverVersion#]. Please update one or the other. Hint: CommandBox users can run `cbplaywright driver install #variables.playwrightVersion# --force`" );
3939
}
4040
variables.javaSystem.setProperty( "playwright.cli.dir", driverDir );
4141
@@ -308,4 +308,4 @@
308308
throw( "Unexpected os.name value: " & name );
309309
}
310310
311-
</cfscript>
311+
</cfscript>

0 commit comments

Comments
 (0)