rsnext/test/lib/next-webdriver.d.ts
Steven afa04d22db
Add layout prop to Image component (#18491)
This PR introduces a new `layout` property.

This allows 3 possible values (`fixed`, `intrinsic`, or `responsive`) which solve many use cases we have seen since 10.0.0 and will hopefully avoid usage of `unsized`.

Fixes #18351 

Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-10-30 10:33:34 -04:00

30 lines
731 B
TypeScript

interface Chain {
elementByCss: (selector: string) => 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
setDimensions: (opts: { height: number; width: number }) => Chain
close: () => Chain
quit: () => Chain
}
export default function (
appPort: number,
path: string,
waitHydration?: boolean,
allowHydrationRetry?: boolean
): Promise<Chain>