* Gets a `HarnessPredicate` that can be used to search for a grid with specific attributes. * @param options Options for filtering which grid instances are considered a match. * @return a `HarnessPredicate` configured with the given options.
(options: GridHarnessFilters = {})
| 128 | * @return a `HarnessPredicate` configured with the given options. |
| 129 | */ |
| 130 | static with(options: GridHarnessFilters = {}): HarnessPredicate<GridHarness> { |
| 131 | return new HarnessPredicate(GridHarness, options).addOption( |
| 132 | 'disabled', |
| 133 | options.disabled, |
| 134 | async (harness, disabled) => (await harness.isDisabled()) === disabled, |
| 135 | ); |
| 136 | } |
| 137 | |
| 138 | /** Whether the grid is disabled. */ |
| 139 | async isDisabled(): Promise<boolean> { |
no test coverage detected