From 61634d129198e22e5310456cc008d6dda26cbd9a Mon Sep 17 00:00:00 2001 From: bryanlewicki Date: Mon, 20 May 2024 13:42:28 +0200 Subject: [PATCH] test: testing the workflow in ci env --- cypress/e2e/uiTest.cy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/uiTest.cy.js b/cypress/e2e/uiTest.cy.js index 9326a63..dbbab5b 100644 --- a/cypress/e2e/uiTest.cy.js +++ b/cypress/e2e/uiTest.cy.js @@ -1,14 +1,14 @@ const { isConstructorDeclaration } = require("typescript"); function setupTest(){ - if(Cypress.env('TESTENV') === "CI"){ + if(Cypress.env('TESTENV') === "PROD"){ + cy.visit("https://openai.ki.fh-swf.de"); + } + else{ // if its not prod, then it selects PROD cy.intercept('GET', "https://www.gravatar.com/8e596ec8846c54f583994b3773e0c4afc16414733b9640b29b546a41b169dcd1"); cy.intercept('GET', "https://de.gravatar.com/8e596ec8846c54f583994b3773e0c4afc16414733b9640b29b546a41b169dcd1"); cy.visit("http://localhost:5173/"); } - else{ // if its not prod, then it selects PROD - cy.visit("https://openai.ki.fh-swf.de"); - } cy.get("button").contains("Cluster Login").click() cy.get('input#username').type(Cypress.env("CYPRESS_USER_NAME")); cy.get('input#password').type(Cypress.env("CYPRESS_USER_PASSWORD"));