void ImportPrimersDialogFiller::setImportTarget(HI::GUITestOpStatus &os, ImportSource importSource) { switch (importSource) { case LocalFiles: GTComboBox::setIndexWithText(os, GTWidget::findExactWidget<QComboBox *>(os, "cbSource", getDialog(os)), "Local file(s)"); break; case SharedDb: GTComboBox::setIndexWithText(os, GTWidget::findExactWidget<QComboBox *>(os, "cbSource", getDialog(os)), "Shared database"); break; default: os.setError("Unexpected import source"); } }
void GTUtilsAssemblyBrowser::callContextMenu(HI::GUITestOpStatus &os, GTUtilsAssemblyBrowser::Area area) { QString widgetName; switch (area) { case Consensus: widgetName = "Consensus area"; break; case Overview: widgetName = "Zoomable assembly overview"; break; case Reads: widgetName = "assembly_reads_area"; break; default: os.setError("Can't find the area"); FAIL(false, ); } GTWidget::click(os, GTWidget::findWidget(os, widgetName), Qt::RightButton); }
void GTUtilsAssemblyBrowser::callExportCoverageDialog(HI::GUITestOpStatus &os, Area area) { Q_UNUSED(os); switch (area) { case Consensus: GTUtilsDialog::waitForDialog(os, new PopupChooser(os, QStringList() << "Export coverage")); break; case Overview: GTUtilsDialog::waitForDialog(os, new PopupChooser(os, QStringList() << "Export coverage")); break; case Reads: GTUtilsDialog::waitForDialog(os, new PopupChooser(os, QStringList() << "Export" << "Export coverage")); break; default: os.setError("Can't call the dialog on this area"); FAIL(false, ); } callContextMenu(os, area); }