Код: Выделить всё
assertAll(
() -> assertDoesNotThrow(() -> $(".modal-title").shouldBe(visible)),
() -> assertEquals("Adding notes", $(".modal").getText()),
() -> Stream.of(Notes.values()) .map(field -> $textField(field.get()).shouldBe(empty, visible)));
Код: Выделить всё
Stream assertStream = Stream.of(Notes.values())
.map(field -> () -> $textField(field.get()).shouldBe(empty, visible));
assertAll(
() -> assertDoesNotThrow(() -> $(".modal-title").shouldBe(visible)),
() -> assertEquals("Adding notes", $(".modal").getText()),
() -> assertAll(assertStream));
Подробнее здесь: https://stackoverflow.com/questions/785 ... t-using-it
Мобильная версия