Skip to content

Commit 3154f39

Browse files
committed
fix: test case for dashboard available url
1 parent 759442f commit 3154f39

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/lib/tests/e2e/dashboard.e2e.test.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const path = require('path');
1313
const spawn = require('child_process').spawn;
1414
const ParseDashboard = require('../../../../Parse-Dashboard/app');
1515
const puppeteer = require('puppeteer');
16+
const pc = require('picocolors');
1617

1718
const dashboardSettings = {
1819
apps: [
@@ -51,10 +52,14 @@ describe('dashboard e2e', () => {
5152
}, 20_000);
5253
});
5354

54-
describe('Config options', () => {
55-
it('should start with port option', async () => {
55+
describe.only('Config options', () => {
56+
it.only('should start with port option', async () => {
5657
const result = await startParseDashboardAndGetOutput(['--port', '4041']);
57-
expect(result).toContain('The dashboard is now available at http://0.0.0.0:4041/');
58+
expect(result).toContain(
59+
`${pc.yellow('The dashboard')} ${pc.green('is now available at')} ${pc.cyan(
60+
'http://0.0.0.0:4041/'
61+
)}`
62+
);
5863
});
5964

6065
it('should reject to start if config and other options are combined', async () => {

0 commit comments

Comments
 (0)