[Tests] Play card interactions through a Cockatrice event player (#7697)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-11-04 06:23:45 +01:00 • committed by GitHub
parent 34201122ec
commit 3fa8d78786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1119 additions and 3 deletions

View file

@ -56,6 +56,7 @@
#include "widgets/settings_page/abstract_settings_page.h"
#include "widgets/tabs/api/commander_spellbook/handle_commander_brackets.h"
#ifdef WITH_GUI_TEST
#include "../game_graphics/pq_cockatrice_event_player.h"
#include "pqEventObserver.h"
#include "pqEventSource.h"
#include "pqEventTypes.h"
@ -689,6 +690,7 @@ MainWindow::MainWindow(QWidget *parent)
testUtility->setRecordWithDialog(true);
testUtility->addEventObserver("xml", new XMLEventObserver(this));
testUtility->addEventSource("xml", new XMLEventSource(this));
testUtility->eventPlayer()->addWidgetEventPlayer(new pqCockatriceEventPlayer(this));
#endif
}