Skip to content

Commit 565a126

Browse files
authored
Merge pull request meshery#13815 from ianrwhitney/indexui-env-deps
feat: removed env deps in indexui spec
2 parents 3d15d89 + e00c2dd commit 565a126

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ui/playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = defineConfig({
3737
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3838
use: {
3939
/* Base URL to use in actions like `await page.goto('/')`. */
40-
// baseURL: 'http://127.0.0.1:3000',
40+
baseURL: process.env.MESHERY_SERVER_URL || 'http://localhost:9081',
4141
video: {
4242
mode: 'retain-on-failure',
4343
},

ui/tests/e2e/indexui.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { expect, test } from '@playwright/test';
2-
import { ENV } from './env';
32

43
test.describe('Index Page UI Tests', () => {
54
test.beforeEach(async ({ page }) => {
65
// Visit Index Page (Dasboard)
7-
await page.goto(ENV.MESHERY_SERVER_URL);
6+
await page.goto('/');
87
});
98

109
test('Test if Left Navigation Panel is displayed', async ({ page }) => {

0 commit comments

Comments
 (0)