Skip to content

Commit

Permalink
add test to check for env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
rberrelleza committed Nov 26, 2024
1 parent 05a9b96 commit 1175c69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/tests/main.spec.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down

0 comments on commit 1175c69

Please sign in to comment.