mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fixing Tests for Xcode 14.3 (#888)
* settting macOS to 13, and let's runa test of... the tests * I want the artifacts of the test, might give me some more insight in Xcode * archive artifact * trying a thing with the xcode version * push notifications alert makes this test fail * test improvement * let's try with a very long time * let's disable autocorrection * sleep * 1 seconds fixed 90% of the issue, 2 should fix 100% * waiting some more time in flaky tests and updated the content of a test that was failing * updated a screenshot test that had a notification * this integration test is a bit so flaky increased the timing * controlled delay waited a bit moe for the timeline to settle * try await * MainActor everywhere * milliseconds fix * trying with a bit more waiting time after the tap and a slow velocity for the swipe * let's try waiting more time
This commit is contained in:
@@ -24,7 +24,7 @@ class UserSessionScreenTests: XCTestCase {
|
||||
|
||||
let app = Application.launch(.userSessionScreen)
|
||||
|
||||
app.assertScreenshot(.userSessionScreen, step: 1)
|
||||
try await app.assertScreenshot(.userSessionScreen, step: 1)
|
||||
|
||||
app.buttons[A11yIdentifiers.homeScreen.roomName(roomName)].tap()
|
||||
|
||||
@@ -32,10 +32,10 @@ class UserSessionScreenTests: XCTestCase {
|
||||
|
||||
try await Task.sleep(for: .seconds(1))
|
||||
|
||||
app.assertScreenshot(.userSessionScreen, step: 2)
|
||||
try await app.assertScreenshot(.userSessionScreen, step: 2)
|
||||
|
||||
app.buttons[A11yIdentifiers.roomScreen.attachmentPicker].tap()
|
||||
|
||||
app.assertScreenshot(.userSessionScreen, step: 3)
|
||||
try await app.assertScreenshot(.userSessionScreen, step: 3)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user