Skip to content

Instantly share code, notes, and snippets.

Created February 3, 2022 01:34
What would you like to do?
@Routes(scanClassPackage = ModuleGrid.class)
class ModuleGridTest {
void ensureStoppingAModuleThroughTheStopButtonStopsTheModule(
@Select("vaadin-vertical-layout > aire-drawer")
Drawer drawer, @Context TestContext context, @Autowired Zephyr zephyr) {
val $ = context.downTo(drawer);
val button = $.selectFirst("vaadin-button:nth-of-type(2)", Button.class)
.get(); // throws exception if it's not there
.allMatch(plugin -> plugin.getLifecycle().getState() == State.Active));;
assertEquals(1, zephyr.getPlugins(State.Resolved).size());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment