JPopupMenuFixture popupMenuFixture = new JPopupMenuFixture(
dialogFixture.robot, (JPopupMenu) dialogFixture.robot.finder()
.findByName("PopupMenuProduction"));
popupMenuFixture.menuItem("MenuItemSetProcent").click();
DialogFixture procentdialog = WindowFinder.findDialog(
"EditProcentDoneView").using(dialogFixture.robot);
procentdialog.textBox("TextFieldProcent").enterText("30");
procentdialog.textBox("TextAreaProcentDoneComment").enterText(
"kommentar");
procentdialog.button("ButtonOk").click();
tableFixture.cell(row(row).column(2)).click();
tableFixture.cell(row(row).column(12)).rightClick();
popupMenuFixture = new JPopupMenuFixture(dialogFixture.robot,
(JPopupMenu) dialogFixture.robot.finder().findByName(
"PopupMenuProduction"));
popupMenuFixture.menuItem("MenuItemSetProcent").click();
procentdialog = WindowFinder.findDialog("EditProcentDoneView").using(
dialogFixture.robot);
procentdialog.comboBox("ComboBoxWeek").selectItem(
Util.getCurrentWeek() + 1);
procentdialog.textBox("TextFieldProcent").deleteText();
procentdialog.textBox("TextFieldProcent").enterText("20");
procentdialog.button("ButtonOk").click();
JOptionPaneFixture optionPane = JOptionPaneFinder.findOptionPane()
.using(dialogFixture.robot);
optionPane.buttonWithText("Ja").click();