Skip to content

Commit

Permalink
Add Collapsible functions: shouldBeCollapsed, shouldBeExpanded (#61)
Browse files Browse the repository at this point in the history
* Add Collapsible functions: shouldBeCollapsed, shouldBeExpanded

* Add Collapsible functions: shouldBeCollapsed, shouldBeExpanded
  • Loading branch information
jkevan authored Dec 19, 2023
1 parent 88448fc commit fd3408b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jahia/cypress",
"version": "3.17.5",
"version": "3.17.6",
"scripts": {
"build": "tsc",
"lint": "eslint src -c .eslintrc.json --ext .ts"
Expand Down
8 changes: 8 additions & 0 deletions src/page-object/moonstone/collapsible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ export class Collapsible extends BaseComponent {
});
return this;
}

shouldBeCollapsed(): void {
this.get().find('.moonstone-collapsible_content_collapsed').should('exist');
}

shouldBeExpanded(): void {
this.get().find('.moonstone-collapsible_content_expanded').should('exist');
}
}

0 comments on commit fd3408b

Please sign in to comment.