piumino
Version:
Piumino, meaning duvet in Italian, is like a duvet over the bed called Angular TestBed. It provides test helpers to test trivial things like inputs and outputs with a single line.
39 lines (38 loc) • 1.44 kB
TypeScript
import { MatcherChainFinisher, MatcherChainStarter } from "../types";
import { InputMatcher } from "./input.matcher";
import { Matcher } from "./matcher";
import { OutputMatcher } from "./output.matcher";
export declare class BaseMatcher extends Matcher {
/**
* Select an input of the selected element to expect something on.
*
* @param inputSelector - The selector to find the input.
*/
input(inputSelector: string): MatcherChainStarter<InputMatcher>;
/**
* Select an output of the selected element to expect something on.
*
* @param outputSelector - The selector to find the output.
*/
output(outputSelector: string): MatcherChainStarter<OutputMatcher>;
/**
* Expect the selected element to have the provided text.
*
* @param text - The text to compare with the text of the selected element.
*/
toHaveText(text: string): MatcherChainFinisher<this>;
/**
* Expect the selected element to have the provided text, ignoring case.
*
* @param text - The text to compare with the text of the selected element.
*/
toHaveTextCaseInsensitive(text: string): MatcherChainFinisher<this>;
/**
* Expect the selected element to be present in the DOM.
*/
toBePresent(): MatcherChainFinisher<this>;
/**
* Expect the selected element to be visible in the DOM.
*/
toBeVisible(): MatcherChainFinisher<this>;
}