Skip to content

Commit a524549

Browse files
committed
chore: add test util comments
1 parent 1a25f82 commit a524549

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test-utils/dom/dropdown/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,26 @@ export default class DropdownWrapper extends ComponentWrapper {
4747
: new DropdownContentWrapper(this.getElement());
4848
}
4949

50+
/**
51+
* @param options
52+
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
53+
*/
5054
findContent(options = { expandToViewport: false }): ElementWrapper | null {
5155
return this.findDropdown(options).findContent();
5256
}
5357

58+
/**
59+
* @param options
60+
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
61+
*/
5462
findHeader(options = { expandToViewport: false }): ElementWrapper | null {
5563
return this.findDropdown(options).findHeader();
5664
}
5765

66+
/**
67+
* @param options
68+
* * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag.
69+
*/
5870
findFooter(options = { expandToViewport: false }): ElementWrapper | null {
5971
return this.findDropdown(options).findFooter();
6072
}

0 commit comments

Comments
 (0)