fix(build.sh): update image tag handling to prompt interactively if omitted

- Modified the build script to allow the image tag to be optional, prompting the user for input if not provided.
- Updated usage instructions to reflect the new behavior.
This commit is contained in:
AmirReza Jamali
2026-04-26 16:14:58 +03:30
parent 36cf088aa5
commit 1540679095
2 changed files with 20 additions and 6 deletions
+6 -2
View File
@@ -64,14 +64,18 @@ Cypress.Commands.add("setAuthCookies", (userOverrides = {}) => {
);
});
Cypress.Commands.add("mockAdminsList", (options = {}) => {
Cypress.Commands.add("mockAdminsList", (options: Cypress.AdminListMockOptions = {}) => {
const users = options.users ?? [createAdminUser()];
const offset = options.offset ?? 0;
const limit = options.limit ?? 10;
const total = options.total ?? users.length;
const statusCode = options.statusCode ?? 200;
const delay = options.delay ?? 0;
const query = options.query;
const query = options.query
? Object.fromEntries(
Object.entries(options.query).map(([key, value]) => [key, String(value)]),
)
: undefined;
cy.intercept(
{