Skip to content

Commit ef1477c

Browse files
Add files via upload
1 parent ffa2fbb commit ef1477c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/RPM/utils/tabularDataFunctions.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44
async function createNewtabularData(page, title,description) {
55
await page.waitForTimeout(500)
66
//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()
88
// Select the New tabular data element header and verify its visibility
99
const headerElement = page.locator('.h2');
1010
await expect(headerElement).toBeVisible();
@@ -46,7 +46,7 @@ async function markingVariableData(page){
4646
await page.locator(':nth-child(2) > .w-8').click()
4747
await page.locator('#selectData').click()
4848
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
5050
// await page.waitForTimeout(10000)
5151
}
5252

@@ -64,11 +64,11 @@ async function EnterTitleandDesc(page,title,desc){
6464
async function AssignDataTypeDisplayPattern(page,getindex,datatype,displaypattern){
6565
await page.waitForTimeout(500)
6666
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}`);
7070

71-
await page.waitForSelector(':nth-child(1) > #variable-0-container-info #dataType');
71+
await page.waitForSelector('#dataType-0');
7272
setDesc.fill('this is test description');
7373
await page.waitForTimeout(500)
7474

0 commit comments

Comments
 (0)