43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
package qualification;
|
|
|
|
import static qualification.WorkflowProbe.*;
|
|
|
|
import com.intellij.openapi.project.Project;
|
|
import java.nio.file.Files;
|
|
import javafx.embed.swing.SwingFXUtils;
|
|
import javax.imageio.ImageIO;
|
|
|
|
public final class ReaderStatesWorkflowProbe extends DeclarationWorkflowProbe {
|
|
@Override
|
|
void verify(Project project) throws Exception {
|
|
this.project = project;
|
|
open("DocumentTag");
|
|
controls(true);
|
|
choose("form-control", "TagChip #chip");
|
|
String style = "-fx-background-color: #f2d58a;";
|
|
set("style", style, style);
|
|
reopen("DocumentTag", style);
|
|
controls(true);
|
|
choose("form-control", "TagChip #chip");
|
|
choose("form-property", "style");
|
|
fx(
|
|
() -> {
|
|
ImageIO.write(
|
|
SwingFXUtils.fromFXImage(pane.snapshot(null, null), null),
|
|
"png",
|
|
output.resolve("intellij.png").toFile());
|
|
return null;
|
|
});
|
|
controls(false);
|
|
build("document-tag");
|
|
interactive("document-tag", "tag");
|
|
open("AttachmentToolbar");
|
|
build("reader-attachment");
|
|
interactive("reader-attachment", "attachment-save");
|
|
open("ArchiveWindow");
|
|
build("archive-window-html-error");
|
|
interactive("archive-window-html-error", "archive-error");
|
|
Files.writeString(output.resolve("SUCCESS.txt"), Files.readString(output.resolve("steps.txt")));
|
|
}
|
|
}
|