Skip to content

Commit 084a72d

Browse files
Armaan Guptaci-build
authored andcommitted
modify the testcases
1 parent 82b3444 commit 084a72d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ui.tests/test-module/specs/checkboxgroup/checkboxgroupv2.runtime.cy.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,7 @@ describe("Form Runtime with CheckBoxGroup Input", () => {
206206
cy.get(`#${checkBox7}`).find(".cmp-adaptiveform-checkboxgroup-item").should('have.length', 2);
207207
cy.get(`#${checkBox7}`).find(".cmp-adaptiveform-checkboxgroup__label").contains('Select Animal').should('have.css', 'font-weight', '700');
208208
cy.get(`#${checkBox7}`).find(".cmp-adaptiveform-checkboxgroup__option-label span").contains('Dog').should('have.css', 'font-style', 'italic');
209-
cy.get(`#${checkBox7}`)
210-
.find(".cmp-adaptiveform-checkboxgroup__option-label span")
211-
.contains('Cat')
212-
.should(($el) => {
213-
const line = $el.css('text-decoration-line');
214-
const shorthand = $el.css('text-decoration');
215-
expect(line || shorthand).to.include('underline');
216-
});
209+
cy.get(`#${checkBox7}`).find(".cmp-adaptiveform-checkboxgroup__option-label span").contains('Cat').should('have.css', 'text-decoration', 'underline solid rgb(50, 50, 50)');
217210
});
218211

219212
it("decoration element should not have same class name", () => {

0 commit comments

Comments
 (0)