Skip to content

Commit 2d861c9

Browse files
committed
fix(test): Fix the frontend sample test (kubeflow#11968)
Signed-off-by: mprahl <[email protected]> (cherry picked from commit 5447563)
1 parent 499964c commit 2d861c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/frontend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- '.github/workflows/frontend.yml'
1919
- '!**/*.md'
2020
- '!**/OWNERS'
21+
- 'backend/src/apiserver/config/sample_config.json'
2122

2223
jobs:
2324
frontend-tests:

frontend/src/pages/GettingStarted.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ describe(`${PATH_FRONTEND_CONFIG}`, () => {
2828
it(`should be in sync with ${PATH_BACKEND_CONFIG}, if not please run "npm run sync-backend-sample-config" to update.`, () => {
2929
const configBackend = require(PATH_BACKEND_CONFIG);
3030
const configFrontend = require(PATH_FRONTEND_CONFIG);
31-
expect(configFrontend).toEqual(configBackend.pipelines.map((sample: any) => sample.name));
31+
expect(configFrontend).toEqual(
32+
configBackend.pipelines.map((sample: any) => sample.displayName),
33+
);
3234
});
3335
});
3436

0 commit comments

Comments
 (0)