File indexing completed on 2025-01-05 04:59:48

0001 /*
0002  * SPDX-FileCopyrightText: 2019 Kevin Ottens <ervin@kde.org>
0003    SPDX-FileCopyrightText: 2019 David Faure <faure@kde.org>
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 
0008 #include <testlib/qtest_zanshin.h>
0009 #include <featurelib/zanshincontext.h>
0010 
0011 using namespace Testlib;
0012 
0013 // Feature: Adding a task from the workday view
0014 //   As someone adding tasks
0015 //   I can input a task for today in the quick entry
0016 //   In order to have a new task that starts today
0017 class WorkdayTaskAddFeature : public QObject
0018 {
0019     Q_OBJECT
0020 private slots:
0021     void Tasks_added_from_the_workday_view_start_today()
0022     {
0023         ZanshinContext c;
0024         Given(c.I_display_the_page("Workday"));
0025         When(c.I_look_at_the_central_list());
0026         And(c.I_add_a_task("Burn some confidential documents"));
0027         And(c.I_list_the_items());
0028         Then(c.the_list_contains("Burn some confidential documents"));
0029     }
0030 };
0031 
0032 ZANSHIN_TEST_MAIN(WorkdayTaskAddFeature)
0033 
0034 #include "workdaytaskaddfeature.moc"