Beam/UITests/Sources/InviteUsersScreenUITests.swift
Flescio 2b6392e635
Select members before creating a room (UI for selection) (#766)
* 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
2023-04-17 08:29:30 +00:00

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)
}
}