rsnext/test/lib/next-webdriver.d.ts
JJ Kasper 53e9983d83 Add hydration callback for testing (#10195)
* Add hydration callback for testing

* Update size-limit test
2020-01-21 15:33:58 -05:00

28 lines
613 B
TypeScript

interface Chain {
elementByCss: () => Chain
elementById: () => Chain
getValue: () => Chain
text: () => Chain
type: () => Chain
moveTo: () => Chain
getComputedCss: () => Chain
getAttribute: () => Chain
hasElementByCssSelector: () => Chain
click: () => Chain
elementsByCss: () => Chain
waitForElementByCss: () => Chain
eval: () => Chain
log: () => Chain
url: () => Chain
back: () => Chain
forward: () => Chain
refresh: () => Chain
close: () => Chain
quit: () => Chain
}
export default function(
appPort: number,
path: string,
waitHydration?: boolean
): Promise<Chain>