From 870e6c15d249f9021498c2bc05611e64fe1a3f28 Mon Sep 17 00:00:00 2001 From: jonathan langlois Date: Mon, 29 Jan 2024 11:58:47 -0800 Subject: [PATCH] test: data type check data type in CI --- testing/cypress/support/commands.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/cypress/support/commands.ts b/testing/cypress/support/commands.ts index 6111829..b71dca5 100644 --- a/testing/cypress/support/commands.ts +++ b/testing/cypress/support/commands.ts @@ -73,6 +73,8 @@ Cypress.Commands.add('setid', (type?) => { } const data = Cypress.env('users'); + cy.log(typeof data); + let foundItem = data.find((item) => item.type === type); Cypress.env('username', foundItem.username); Cypress.env('password', foundItem.password);