From 1175c69dd779b9bb9a06403c7848dd10e63ef737 Mon Sep 17 00:00:00 2001 From: Ramiro Date: Mon, 25 Nov 2024 22:04:13 -0800 Subject: [PATCH] add test to check for env vars --- e2e/tests/main.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/e2e/tests/main.spec.js b/e2e/tests/main.spec.js index e00e96e..7c2b8f4 100644 --- a/e2e/tests/main.spec.js +++ b/e2e/tests/main.spec.js @@ -1,5 +1,13 @@ import { test, expect } from '@playwright/test'; +test('environment variables are set', async () => { + expect(process.env.OKTETO_NAMESPACE).toBeDefined(); + expect(process.env.OKTETO_DOMAIN).toBeDefined(); + expect(process.env.OKTETO_NAMESPACE).not.toBe(''); + expect(process.env.OKTETO_DOMAIN).not.toBe(''); +}); + + test('has title', async ({ page }) => { await page.goto('https://menu-oktaco-pr-20.demo.okteto.dev');