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 #include <testlib/qtest_zanshin.h> 0008 #include <featurelib/zanshincontext.h> 0009 0010 using namespace Testlib; 0011 0012 // Feature: Available pages content 0013 // As someone collecting tasks 0014 // I can see all the pages available to me 0015 // In order to display them and add tasks to them 0016 class PagesDisplayFeature : public QObject 0017 { 0018 Q_OBJECT 0019 private slots: 0020 void Inbox_projects_and_contexts_appear_in_the_list() 0021 { 0022 ZanshinContext c; 0023 Given(c.I_display_the_available_pages()); 0024 When(c.I_list_the_items()); 0025 Then(c.the_list_is({ 0026 { "display", "icon" }, 0027 { 0028 { "Inbox", "mail-folder-inbox" }, 0029 { "Workday", "go-jump-today" }, 0030 { "Projects", "folder" }, 0031 { "Projects / TestData » Calendar1", "folder" }, 0032 { "Projects / TestData » Calendar1 / Prepare talk about TDD", "view-pim-tasks" }, 0033 { "Projects / TestData » Calendar1 / Read List", "view-pim-tasks" }, 0034 { "Projects / TestData » Calendar1 » Calendar2", "folder" }, 0035 { "Projects / TestData » Calendar1 » Calendar2 / Backlog", "view-pim-tasks" }, 0036 { "Contexts", "folder" }, 0037 { "Contexts / Errands", "view-pim-notes" }, 0038 { "Contexts / Online", "view-pim-notes" }, 0039 { "All Tasks", "view-pim-tasks" }, 0040 } 0041 })); 0042 } 0043 }; 0044 0045 ZANSHIN_TEST_MAIN(PagesDisplayFeature) 0046 0047 #include "pagesdisplayfeature.moc"