/*
  SPDX-FileCopyrightText: 2023-2026 Laurent Montel <montel@kde.org>

  SPDX-License-Identifier: GPL-2.0-or-later
*/

#include "bergamotenginewidgettest.h"
using namespace Qt::Literals::StringLiterals;

#include "bergamotenginewidget.h"
#include <QTabWidget>
#include <QTest>
#include <QVBoxLayout>
QTEST_MAIN(BergamotEngineWidgetTest)
BergamotEngineWidgetTest::BergamotEngineWidgetTest(QObject *parent)
    : QObject{parent}
{
}

void BergamotEngineWidgetTest::shouldHaveDefaultValues()
{
    BergamotEngineWidget w;
    auto mainLayout = w.findChild<QVBoxLayout *>(u"mainLayout"_s);
    QVERIFY(mainLayout);
    QCOMPARE(mainLayout->contentsMargins(), QMargins{});

    auto mTabWidget = w.findChild<QTabWidget *>(u"mTabWidget"_s);
    QVERIFY(mTabWidget);

    // TODO
}

#include "moc_bergamotenginewidgettest.cpp"
