Skip to content

Commit 105203d

Browse files
committed
Fix websocket events to not have the same uuid
1 parent 89b06a9 commit 105203d

File tree

3 files changed

+39
-17
lines changed

3 files changed

+39
-17
lines changed

cypress/e2e/projects/detail/websocket.spec.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { v4 as uuidv4 } from 'uuid'
12
import * as project from '../../../support/project-helpers'
23

34
describe('Questionnaire WebSocket Tests', () => {
@@ -37,7 +38,7 @@ describe('Questionnaire WebSocket Tests', () => {
3738
type: 'SetContent_ClientQuestionnaireAction',
3839
data: {
3940
type: 'SetReplyEvent',
40-
uuid: '62e950ca-0cc5-4a78-9389-31f7494fc88c',
41+
uuid: uuidv4(),
4142
path: '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.57aeb801-e56e-4039-bf8c-82acae654e2b',
4243
value: {
4344
type: 'StringReply',
@@ -62,7 +63,7 @@ describe('Questionnaire WebSocket Tests', () => {
6263
type: 'SetContent_ClientQuestionnaireAction',
6364
data: {
6465
type: 'SetReplyEvent',
65-
uuid: '62e950ca-0cc5-4a78-9389-31f7494fc88c',
66+
uuid: uuidv4(),
6667
path: '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.4ae3425e-31a3-475d-a201-3f12f0b69574',
6768
value: {
6869
type: 'AnswerReply',
@@ -86,7 +87,7 @@ describe('Questionnaire WebSocket Tests', () => {
8687
type: 'SetContent_ClientQuestionnaireAction',
8788
data: {
8889
type: 'SetReplyEvent',
89-
uuid: '62e950ca-0cc5-4a78-9389-31f7494fc88c',
90+
uuid: uuidv4(),
9091
path: '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.5aea9458-6cfb-48db-8ed8-1d4d99b8076d',
9192
value: {
9293
type: 'ItemListReply',
@@ -112,7 +113,7 @@ describe('Questionnaire WebSocket Tests', () => {
112113
type: 'SetContent_ClientQuestionnaireAction',
113114
data: {
114115
type: 'ClearReplyEvent',
115-
uuid: '62e950ca-0cc5-4a78-9389-31f7494fc88c',
116+
uuid: uuidv4(),
116117
path: '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.4ae3425e-31a3-475d-a201-3f12f0b69574',
117118
phasesAnsweredIndication: {
118119
answeredQuestions: 0,
@@ -134,7 +135,7 @@ describe('Questionnaire WebSocket Tests', () => {
134135
type: 'SetContent_ClientQuestionnaireAction',
135136
data: {
136137
type: 'SetPhaseEvent',
137-
uuid: '62e950ca-0cc5-4a78-9389-31f7494fc88c',
138+
uuid: uuidv4(),
138139
phaseUuid,
139140
phasesAnsweredIndication: {
140141
answeredQuestions: 0,
@@ -154,7 +155,7 @@ describe('Questionnaire WebSocket Tests', () => {
154155
type: 'SetContent_ClientQuestionnaireAction',
155156
data: {
156157
type: 'SetLabelsEvent',
157-
uuid: '62e950ca-0cc5-4a78-9389-31f7494fc88c',
158+
uuid: uuidv4(),
158159
path: '16f2c2ec-7b12-4d5e-9477-4453e4cd9689.4ae3425e-31a3-475d-a201-3f12f0b69574',
159160
value
160161
}

package-lock.json

+30-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"repository": "https://github.com/ds-wizard/dsw-e2e-tests",
66
"license": "Apache-2.0",
77
"dependencies": {
8-
"pg": "^8.13.1"
8+
"pg": "^8.13.1",
9+
"uuid": "^11.0.5"
910
},
1011
"devDependencies": {
1112
"cypress": "^14.0.1",

0 commit comments

Comments
 (0)