Skip to content

Commit 7744d01

Browse files
Copilotszaimen
andcommitted
fix(e2e): fix setUserPreference to pass value as positional arg to occ user:setting
occ user:setting takes the value as a positional argument, not --value=VALUE. The --value flag was silently ignored, so setUserPreference never actually set the 'show' preference, causing the 'opens when a new major version was shipped' test to always fail with the wizard landing on page 0 instead of the whats-new page. Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com> Agent-Logs-Url: https://github.com/nextcloud/firstrunwizard/sessions/784a92c7-5c87-4afc-b355-9a4633cbe01d
1 parent 0b68fe4 commit 7744d01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2e/support/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function setUserPreference(
4242
key: string,
4343
value: string,
4444
): Promise<void> {
45-
await runOcc(['user:setting', userId, app, key, `--value=${value}`])
45+
await runOcc(['user:setting', userId, app, key, value])
4646
}
4747

4848
/**

0 commit comments

Comments
 (0)