Skip to content

Commit 7eebc40

Browse files
committed
Fixing theme selection test for 650
1 parent c0f9bd9 commit 7eebc40

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ui.tests/test-module/specs/datepicker/datepicker.runtime.localisation.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ describe("Form Runtime with Date Picker", () => {
2020

2121
let formContainer = null
2222
const fmPropertiesUI = "/libs/fd/fm/gui/content/forms/formmetadataeditor.html/content/dam/formsanddocuments/core-components-it/samples/datepicker/basic"
23-
const themeRef = 'input[name="./jcr:content/metadata/themeRef"]'
23+
const themeRef = 'input[name="./jcr:content/metadata/themeClientLibRef"]'
2424
const propertiesSaveBtn = '#shell-propertiespage-doneactivator'
2525
// enabling theme for this test case as without theme there is a bug in custom widget css
2626
before(() => {
2727
cy.openPage(fmPropertiesUI).then(() => {
28-
cy.get(themeRef).should('be.visible').clear().type('/libs/fd/af/themes/canvas').then(() => {
28+
cy.get(themeRef).should('be.visible').clear().type('adaptiveform.theme.canvas3').then(() => {
2929
cy.get(propertiesSaveBtn).click();
3030
})
3131
})

ui.tests/test-module/specs/datepicker/datepicker.runtime.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ describe("Form Runtime with Date Picker", () => {
2121

2222
let formContainer = null
2323
const fmPropertiesUI = "/libs/fd/fm/gui/content/forms/formmetadataeditor.html/content/dam/formsanddocuments/core-components-it/samples/datepicker/basic"
24-
const themeRef = 'input[name="./jcr:content/metadata/themeRef"]'
24+
const themeRef = 'input[name="./jcr:content/metadata/themeClientLibRef"]'
2525
const propertiesSaveBtn = '#shell-propertiespage-doneactivator'
2626
// enabling theme for this test case as without theme there is a bug in custom widget css
2727
before(() => {
2828
cy.openPage(fmPropertiesUI).then(() => {
29-
cy.get(themeRef).should('be.visible').clear().type('/libs/fd/af/themes/canvas').then(() => {
29+
cy.get(themeRef).should('be.visible').clear().type('adaptiveform.theme.canvas3').then(() => {
3030
cy.get(propertiesSaveBtn).click();
3131
})
3232
})

ui.tests/test-module/specs/datepicker/datepicker.runtime.thai.locale.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ describe("Form Runtime with Date Picker", () => {
2020

2121
let formContainer = null
2222
const fmPropertiesUI = "/libs/fd/fm/gui/content/forms/formmetadataeditor.html/content/dam/formsanddocuments/core-components-it/samples/datepicker/basic"
23-
const themeRef = 'input[name="./jcr:content/metadata/themeRef"]'
23+
const themeRef = 'input[name="./jcr:content/metadata/themeClientLibRef"]'
2424
const propertiesSaveBtn = '#shell-propertiespage-doneactivator'
2525
// enabling theme for this test case as without theme there is a bug in custom widget css
2626
before(() => {
2727
cy.openPage(fmPropertiesUI).then(() => {
28-
cy.get(themeRef).should('be.visible').clear().type('/libs/fd/af/themes/canvas').then(() => {
28+
cy.get(themeRef).should('be.visible').clear().type('adaptiveform.theme.canvas3').then(() => {
2929
cy.get(propertiesSaveBtn).click();
3030
})
3131
})

0 commit comments

Comments
 (0)