IOS-1495 DefaultFilterIsUnreadtest fixed IOS-1495
authorXavier Algarra <xavier@pep-project.org>
Tue, 07 May 2019 15:51:16 +0200
branchIOS-1495
changeset 851176dfbc5a3313
parent 8502 ed1d581f863e
child 8516 6d4a506443f2
child 8696 c6bbb8f4d4fa
IOS-1495 DefaultFilterIsUnreadtest fixed
pEpForiOSTests/Models/EmailListViewModelTest.swift
     1.1 --- a/pEpForiOSTests/Models/EmailListViewModelTest.swift	Tue May 07 08:53:47 2019 +0200
     1.2 +++ b/pEpForiOSTests/Models/EmailListViewModelTest.swift	Tue May 07 15:51:16 2019 +0200
     1.3 @@ -88,28 +88,18 @@
     1.4          XCTAssertFalse(showToolbarButtons)
     1.5      }
     1.6  
     1.7 -    /*func testUnreadFilterActive() {
     1.8 +    func testDefaultFilterActiveIsUnread() {
     1.9          setupViewModel()
    1.10  
    1.11          var unreadActive = emailListVM.unreadFilterEnabled()
    1.12 -
    1.13          XCTAssertFalse(unreadActive)
    1.14  
    1.15 -        setupViewModel()
    1.16 -        emailListVM.startMonitoring()
    1.17 -
    1.18 -        let filter = CompositeFilter<FilterBase>()
    1.19 -        filter.add(filter: UnreadFilter())
    1.20 -        emailListVM.filterChanged(newFilter: filter)
    1.21 -        setUpViewModelExpectations(expectedUpdateView: true)
    1.22          emailListVM.isFilterEnabled = true
    1.23  
    1.24 -        waitForExpectations(timeout: TestUtil.waitTime)
    1.25          unreadActive = emailListVM.unreadFilterEnabled()
    1.26 -
    1.27          XCTAssertTrue(unreadActive)
    1.28  
    1.29 -    }*/
    1.30 +    }
    1.31  
    1.32      func testGetFlagAndMoreAction() {
    1.33          let messages = TestUtil.createMessages(number: 1, engineProccesed: true, inFolder: folder)