Limiting the screen width
Last updated
Last updated
Some tests have a different appearance on small and large screens. The width of the screen can therefore be constrained using a 'template' keyword and selecting one of the defined widths.
template fixedscreenL
limits the width to 1024px, this best corresponds to tablet or small screen.
template fixedscreenM
limits the width to 768px, this corresponds to a tablet
template fixedscreenS
limits the width to 375px, this corresponds to a mobile phone.
template
has to be used prior to defining the first screen or else it will not be accounted for and the test size will correspond to the actual sceen size.