File indexing completed on 2025-01-19 04:56:43
0001 /* 0002 * SPDX-FileCopyrightText: 2019 Kevin Ottens <ervin@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 */ 0005 0006 0007 #include <testlib/qtest_zanshin.h> 0008 #include <featurelib/zanshincontext.h> 0009 0010 using namespace Testlib; 0011 0012 // Feature: Inbox content 0013 // As someone collecting tasks 0014 // I can display the Inbox 0015 // In order to see the tasks which need to be organized (e.g. any task not associated to any project or context) 0016 class InboxDisplayFeature : public QObject 0017 { 0018 Q_OBJECT 0019 private slots: 0020 void Unorganized_tasks_appear_in_the_inbox() 0021 { 0022 ZanshinContext c; 0023 Given(c.I_display_the_page("Inbox")); 0024 And(c.I_look_at_the_central_list()); 0025 When(c.I_list_the_items()); 0026 Then(c.the_list_is({ 0027 { "display" }, 0028 { 0029 { "Errands" }, 0030 { "\"Capital in the Twenty-First Century\" by Thomas Piketty" }, 0031 { "\"The Pragmatic Programmer\" by Hunt and Thomas" }, 0032 { "Buy cheese" }, 0033 { "Buy kiwis" }, 0034 { "Buy apples" }, 0035 { "Buy pears" }, 0036 { "Buy rutabagas" } 0037 } 0038 })); 0039 } 0040 }; 0041 0042 ZANSHIN_TEST_MAIN(InboxDisplayFeature) 0043 0044 #include "inboxdisplayfeature.moc"