@@ -4,7 +4,7 @@ const path = require('path');
4
4
async function createNewtabularData ( page , title , description ) {
5
5
await page . waitForTimeout ( 500 )
6
6
//click on the tabular data tab
7
- await page . locator ( '.pr-1 > :nth-child(1 )' ) . click ( )
7
+ await page . locator ( '.pr-1 > :nth-child(2 )' ) . click ( )
8
8
// Select the New tabular data element header and verify its visibility
9
9
const headerElement = page . locator ( '.h2' ) ;
10
10
await expect ( headerElement ) . toBeVisible ( ) ;
@@ -46,7 +46,7 @@ async function markingVariableData(page){
46
46
await page . locator ( ':nth-child(2) > .w-8' ) . click ( )
47
47
await page . locator ( '#selectData' ) . click ( )
48
48
await page . waitForTimeout ( 500 )
49
- await page . locator ( ':nth-child(8) > .btn ' ) . click ( )
49
+ await page . locator ( ':nth-child(8) > .variant-filled-primary ' ) . click ( ) //save button
50
50
// await page.waitForTimeout(10000)
51
51
}
52
52
@@ -64,11 +64,11 @@ async function EnterTitleandDesc(page,title,desc){
64
64
async function AssignDataTypeDisplayPattern ( page , getindex , datatype , displaypattern ) {
65
65
await page . waitForTimeout ( 500 )
66
66
const index = getindex ; // Ensure this has a valid value
67
- const setDesc = await page . locator ( `:nth-child( ${ index } ) > #variable-0-container-info > .card > .py-2 > :nth-child(1) > .grow > [slot="property"] > #description-container > .label > #description ` ) ;
68
- const setDataType = await page . locator ( `:nth-child( ${ index } ) > #variable-0-container-info #dataType ` ) ;
69
- const setDisplayPattern = await page . locator ( `:nth-child( ${ index } ) > #variable-0-container-info > .card .svelte-select > .value-container > #displayPattern ` ) ;
67
+ const setDesc = await page . locator ( `#description- ${ index } ` ) ;
68
+ const setDataType = await page . locator ( `#dataType- ${ index } ` ) ;
69
+ const setDisplayPattern = await page . locator ( `#displayPattern- ${ index } ` ) ;
70
70
71
- await page . waitForSelector ( ':nth-child(1) > #variable-0-container-info #dataType ' ) ;
71
+ await page . waitForSelector ( '#dataType-0 ' ) ;
72
72
setDesc . fill ( 'this is test description' ) ;
73
73
await page . waitForTimeout ( 500 )
74
74
0 commit comments