mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00

* add invite users in room flow * add selectable user cell * add screenshoots * add unit test * add button style * add scroll to bottom when added user * rebase screenshot from develop * add changelog * rename invite users files * fix static viewModel * fix buttonStyle, fix unit test * UI test for selected user * remove fixed height size * fix saled width for horizontal cell * add usersSection, screenshots * use publishers pattern * add selectable form button style * add comment * improve readability * some rename on InviteUsers * fix compile issues * add search content
32 lines
1009 B
Swift
32 lines
1009 B
Swift
//
|
|
// Copyright 2022 New Vector Ltd
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
import ElementX
|
|
import XCTest
|
|
|
|
class InviteUsersScreenUITests: XCTestCase {
|
|
func testLanding() {
|
|
let app = Application.launch(.inviteUsers)
|
|
app.assertScreenshot(.inviteUsers)
|
|
}
|
|
|
|
func testSelectedUsers() {
|
|
let app = Application.launch(.inviteUsers)
|
|
app.collectionViews.firstMatch.cells.element(boundBy: 1).tap()
|
|
app.assertScreenshot(.inviteUsers, step: 1)
|
|
}
|
|
}
|