File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
tools/public_api_guard/cdk Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Gets text of element excluding certain selectors within the element.
3
+ * @param element Element to get text from,
4
+ * @param excludeSelector Selector identifying which elements to exclude,
5
+ */
1
6
export function getTextWithExcludedElements ( element : Element , excludeSelector : string ) {
2
7
const clone = element . cloneNode ( true ) as Element ;
3
8
const exclusions = clone . querySelectorAll ( excludeSelector ) ;
Original file line number Diff line number Diff line change @@ -131,9 +131,7 @@ export interface TestElement {
131
131
sendKeys ( ...keys : ( string | TestKey ) [ ] ) : Promise < void > ;
132
132
sendKeys ( modifiers : ModifierKeys , ...keys : ( string | TestKey ) [ ] ) : Promise < void > ;
133
133
setInputValue ?( value : string ) : Promise < void > ;
134
- text ( options ?: {
135
- exclude ?: string ;
136
- } ) : Promise < string > ;
134
+ text ( options ?: TextOptions ) : Promise < string > ;
137
135
}
138
136
139
137
export declare enum TestKey {
You can’t perform that action at this time.
0 commit comments