I'm testing how many cells exists in collection view. I have following steps:
1. Load collection view with 4 items and show them in small cell with "smallCell" reuse identifier
2. Reload collection view with 2 items and show them in big cell with "bigCell" reuse identifier.
After that XCUIApplication().collectionViews.count returns 6 elements (4 small cells and 2 big cells). Is this expected behavior? I would also like to know what elements are returned when calling XCUIElementQuery. Visible cells in collection view? I'm using Xcode 7 beta 5.