Update DeleteApp function & Enable Cypress video flag
Commands.js - DeleteApp does not need specific functionality for test env cypress.json - Enabling video flag for Cypress
This commit is contained in:
parent
9312839099
commit
2e53a80219
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"baseUrl": "http://localhost:4100",
|
"baseUrl": "http://localhost:4100",
|
||||||
"video": false,
|
"video": true,
|
||||||
"projectId": "bmbemn",
|
"projectId": "bmbemn",
|
||||||
"env": {
|
"env": {
|
||||||
"PORT": "4100",
|
"PORT": "4100",
|
||||||
|
|
|
@ -75,9 +75,6 @@ Cypress.Commands.add("deleteApp", name => {
|
||||||
const findAppName = val.some(val => val.name == name)
|
const findAppName = val.some(val => val.name == name)
|
||||||
if (findAppName) {
|
if (findAppName) {
|
||||||
if (val.length > 0) {
|
if (val.length > 0) {
|
||||||
if (Cypress.env("TEST_ENV")) {
|
|
||||||
cy.searchForApplication(name)
|
|
||||||
}
|
|
||||||
const appId = val.reduce((acc, app) => {
|
const appId = val.reduce((acc, app) => {
|
||||||
if (name === app.name) {
|
if (name === app.name) {
|
||||||
acc = app.appId
|
acc = app.appId
|
||||||
|
|
Loading…
Reference in New Issue