Mob.ScreenCase.View (mob v0.7.7)

Copy Markdown View Source

A screen under test. Two backends, same query/assertion surface:

  • source: :beammodule + socket, driven in-process (the default, built by mount_screen/3).
  • source: :device — a node running the app, read over Mob.Test's Erlang-distribution RPC (built by device_view/1, gated behind @tag :on_device).

tree/1, assigns/1, find/3, text/1, assert_renderable/2 and navigated_to/1 work against either, so an assertion reads the same whether it ran here in milliseconds or against real hardware.