writer.writeScreenshot(errorNode, test);
assertThat(root.size()).isEqualTo(2);
assertThat(root.child(0)).isEqualTo(errorNode);
XmlNode secondChild = root.child(1);
assertThat(secondChild.name()).isEqualTo("screenshot");
assertThat(secondChild.text()).isEqualTo(encodeBase64(image));
}
}.run();
}
@Test