Skip to content

Commit 3a0a907

Browse files
committed
console: Fix set tutorial true
1 parent 2352bf9 commit 3a0a907

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cypress/support/commands.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,11 @@ Cypress.Commands.add('createUser', user => {
147147
})
148148
})
149149

150+
console.log('User created:', user)
151+
150152
cy.task(
151153
'execSql',
152-
`UPDATE users SET console_preferences = '{"dashboard_layouts":{},"sort_by":{},"tutorials":{"seen":["TUTORIAL_LIVE_DATA_SPLIT_VIEW"]}}'::jsonb::text::bytea WHERE primary_email_address = '${user.ids.user_id}';`,
154+
`UPDATE users SET console_preferences = '{"dashboard_layouts":{},"sort_by":{},"tutorials":{"seen":["TUTORIAL_LIVE_DATA_SPLIT_VIEW"]}}'::jsonb::text::bytea WHERE primary_email_address = '${user.primary_email_address}';`,
153155
)
154156

155157
// Reset cookies and local storage to avoid csrf and session state inconsistencies within tests.

0 commit comments

Comments
 (0)