File indexing completed on 2025-01-19 04:56:43
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: Project content 0014 // As someone collecting tasks 0015 // I can display a project 0016 // In order to see the artifacts associated to it 0017 class ProjectDisplayFeature : public QObject 0018 { 0019 Q_OBJECT 0020 private slots: 0021 void Project_tasks_appear_in_the_corresponding_page() 0022 { 0023 ZanshinContext c; 0024 Given(c.I_display_the_page("Projects / TestData ยป Calendar1 / Read List")); 0025 And(c.I_look_at_the_central_list()); 0026 When(c.I_list_the_items()); 0027 Then(c.the_list_is({ 0028 { "display" }, 0029 { 0030 { "\"Clean Code\" by Robert C Martin" }, 0031 { "\"Domain Driven Design\" by Eric Evans" }, 0032 } 0033 })); 0034 } 0035 }; 0036 0037 ZANSHIN_TEST_MAIN(ProjectDisplayFeature) 0038 0039 #include "projectdisplayfeature.moc"