Skip to content

Commit 8204b2c

Browse files
committed
fix ui test
1 parent 5558fe0 commit 8204b2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/tests/unit/views/AutogenView.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ describe('Views > AutogenView.vue', () => {
652652
testapinamecase1response: {
653653
count: 0,
654654
testapinamecase1: [{
655-
id: 'test-id-1',
655+
id: 'uuid1',
656656
name: 'test-name-1'
657657
}]
658658
}
@@ -668,7 +668,7 @@ describe('Views > AutogenView.vue', () => {
668668
command: 'testApiNameCase1',
669669
response: 'json',
670670
listall: true,
671-
id: 'test-id',
671+
id: 'uuid1',
672672
hostname: 'test-id',
673673
page: 1,
674674
pagesize: 20
@@ -786,13 +786,13 @@ describe('Views > AutogenView.vue', () => {
786786
await flushPromises()
787787

788788
expect(wrapper.vm.items).toEqual([{
789-
id: 'test-hostname-value',
789+
id: 'uuid1',
790790
name: 'test-name-value',
791791
hostname: 'test-hostname-value',
792792
key: 0
793793
}])
794794
expect(wrapper.vm.resource).toEqual({
795-
id: 'test-hostname-value',
795+
id: 'uuid1',
796796
name: 'test-name-value',
797797
hostname: 'test-hostname-value',
798798
key: 0

0 commit comments

Comments
 (0)