@@ -37,10 +37,10 @@ async function checkVariables(page, variableName, hasDescription, hasUnit, hasDa
37
37
}
38
38
if ( hasMissingValueName ) {
39
39
await page . waitForTimeout ( 250 ) ;
40
- await page . locator ( 'input[id=missing-value-name]' ) . fill ( 'Test Missing Value' ) ;
40
+ await page . locator ( 'input[id=missing-value-name-0 ]' ) . fill ( 'Test Missing Value' ) ;
41
41
}
42
42
if ( hasMissingValueDes ) {
43
- await page . locator ( 'input[id=missing-value-description]' ) . fill ( 'Test Missing value Des.' ) ;
43
+ await page . locator ( 'input[id=missing-value-description-0 ]' ) . fill ( 'Test Missing value Des.' ) ;
44
44
}
45
45
if ( hasMeanings ) {
46
46
// Select Meanings
@@ -173,11 +173,11 @@ async function createVariable(page, variableName) {
173
173
await page . locator ( '#create' ) . click ( ) ;
174
174
await page . waitForTimeout ( 350 ) ;
175
175
176
- // Adding name
176
+ // Adding name
177
177
await page . waitForTimeout ( 250 ) ;
178
178
await page . locator ( 'input[id=name]' ) . fill ( variableName ) ;
179
179
180
- // Adding description
180
+ // Adding description
181
181
await page . waitForTimeout ( 250 ) ;
182
182
await page . locator ( 'textarea[id=description]' ) . fill ( 'Test Variable' ) ;
183
183
@@ -258,7 +258,7 @@ async function findVariable(page, variable) {
258
258
async function editVariable ( page ) {
259
259
260
260
await page . locator ( '[id^=edit-]' ) . click ( ) ; // Click on the edit button
261
- // Edit description
261
+ // Edit description
262
262
await page . waitForTimeout ( 1000 ) ;
263
263
await page . locator ( 'textarea[id=description]' ) . fill ( 'Test Edit Variable' ) ;
264
264
@@ -335,7 +335,7 @@ async function checkConstraint(page) {
335
335
await page . waitForTimeout ( 4250 ) ;
336
336
await page . locator ( '#create' ) . click ( ) ;
337
337
await page . waitForTimeout ( 300 ) ;
338
-
338
+
339
339
try {
340
340
// Click on the dropdown
341
341
await page . locator ( '#constraints' ) . click ( ) ;
@@ -345,10 +345,10 @@ async function checkConstraint(page) {
345
345
try {
346
346
// Check if the "TestConstraint" exists
347
347
await page . waitForSelector ( '.list-item .item:text("Test Constraint")' , { visible : true , timeout : 500 } ) ;
348
-
348
+
349
349
350
350
} catch ( error ) {
351
-
351
+
352
352
// Perform actions if the element is not found
353
353
// Click on the SVG element
354
354
await page . waitForSelector ( 'div.hidden:nth-child(4)' , { visible : true } ) ;
@@ -406,4 +406,3 @@ module.exports = {
406
406
checkConstraint
407
407
408
408
} ;
409
-
0 commit comments