Differential D362 Diff 1357 lib/app/base-chips/access-strategy-types/user-referenced-in-field.subtest.js
Changeset View
Changeset View
Standalone View
Standalone View
lib/app/base-chips/access-strategy-types/user-referenced-in-field.subtest.js
Show All 22 Lines | with_stopped_app(async ({ app, base_url, rest_api }) => { | ||||
await app.start(); | await app.start(); | ||||
for (let username of ["Alice", "Bob"]) { | for (let username of ["Alice", "Bob"]) { | ||||
const user = await app.run_action( | const user = await app.run_action( | ||||
new app.Sealious.SuperContext(), | new app.Sealious.SuperContext(), | ||||
["collections", "users"], | ["collections", "users"], | ||||
"create", | "create", | ||||
{ | { | ||||
username: username, | username, | ||||
password: "password", | password: "password", | ||||
email: `${username.toLowerCase()}@example.com`, | email: `${username.toLowerCase()}@example.com`, | ||||
} | } | ||||
); | ); | ||||
await app.run_action( | await app.run_action( | ||||
new app.Sealious.SuperContext(), | new app.Sealious.SuperContext(), | ||||
["collections", "pets"], | ["collections", "pets"], | ||||
"create", | "create", | ||||
Show All 17 Lines |