Fix UI tests following Xcode 16.1 migration

This commit is contained in:
Stefan Ceriu
2024-11-13 15:22:54 +02:00
parent 7aaeb0053e
commit 699f633435
18 changed files with 37 additions and 37 deletions

View File

@@ -20,13 +20,13 @@ class BugReportUITests: XCTestCase {
let app = Application.launch(.bugReport)
// Type 4 characters and the send button should be disabled.
app.textViews[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Text", app: app)
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Text", app: app)
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
XCTAssert(!app.switches[A11yIdentifiers.bugReportScreen.canContact].isOn)
try await app.assertScreenshot(.bugReport, step: 2)
// Type more than 4 characters and send the button should become enabled.
app.textViews[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Longer text", app: app)
app.textFields[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Longer text", app: app)
XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn)
XCTAssert(!app.switches[A11yIdentifiers.bugReportScreen.canContact].isOn)
try await app.assertScreenshot(.bugReport, step: 3)

View File

@@ -16,15 +16,15 @@ class PollFormScreenUITests: XCTestCase {
func testFilledPoll() async throws {
let app = Application.launch(.createPoll)
let questionTextField = app.textViews[A11yIdentifiers.pollFormScreen.question]
let questionTextField = app.textFields[A11yIdentifiers.pollFormScreen.question]
questionTextField.tapCenter()
questionTextField.typeText("Do you like polls?")
let option1TextField = app.textViews[A11yIdentifiers.pollFormScreen.optionID(0)]
let option1TextField = app.textFields[A11yIdentifiers.pollFormScreen.optionID(0)]
option1TextField.tapCenter()
option1TextField.typeText("Yes")
let option2TextField = app.textViews[A11yIdentifiers.pollFormScreen.optionID(1)]
let option2TextField = app.textFields[A11yIdentifiers.pollFormScreen.optionID(1)]
option2TextField.tapCenter()
option2TextField.typeText("No")

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c548364f9ad63a7d7c1d53e53600572c3e1477b3fa1ea13d4b941a73cda76a8a
size 85908
oid sha256:e99fc8db5cc8c6b19986913f62b22479ce8279d5822c16d51eeb0de07d37fd6c
size 91224

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73dadf138c13037272559f46962e8cbacfc7bf4de07e589a92c6e3d5848a2c93
size 88038
oid sha256:2b1e81541dbc3fadce76438542cc6f49b8315b0c5e66e60d435ecdc0deccd24a
size 94106

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ccf7b17e2bad6bbce72d5b29e32a309865b2b2b9cb76a5af2447b675613b14c4
size 89009
oid sha256:c38f676abce80dd515607cc5f894c5d4848f35d6225a54235d733fdb2061251d
size 88120

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7970d3cce906d1e1947407d7a9de5e8994069bd2b191ef3dc7c0a6b6b889d3bf
size 93417
oid sha256:a411e0410bfaea1668c813590141b1ed710ce4ffc710df372f29029235dda33b
size 91531

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b375d9b216880cd6feea614a8ae9f722d1705e31e443d6c1620c20edb4a1a89
size 83942
oid sha256:8dcd756e7e80c4a8d49f542083b672a713068fdc12914d923fc10bb7d936aa4b
size 83046

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf16f963d57f00a55133201b3fadd5820dc22d9af158d0d2163b088b675fe918
size 84194
oid sha256:26f50b02c39447b506edcceaa7cfba115bc594a727e3d51e600859f6d6f6e248
size 82600

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd87a89399242622d8176b1f4eb43f72b1f51314b0b8a01f0b5ac060516e65b3
size 64449
oid sha256:56c987c9acf140105a08e34fcebdec9827befd8b2d13100115d7a532fb33a082
size 63514

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7f4dd44b1ca63ee19ab316d3dfa4da2fa3dc65bbc875a94659074b7d454d4bb
size 56996
oid sha256:6689e6832ccdc6e608d8c64aba0bb9f400afa8cde98b3bf2a127b51fc6701555
size 55165

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d6dbe259250888fe47d35e40c377a88032e4cde2d1fdc5cbe7395afdd304cbae
size 147532
oid sha256:f7377e97c8da85ed52887c06816fb0ae445a241c89bf857fe92b40546533f8bd
size 146619

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fe8a672f763bde80b901e4e8a0074658850942ed4f48e819b60bd67fef8bd025
size 200840
oid sha256:f3c5b416699192346ab3a9c1d03e44eeacd06f52d277e6a36730a5adba604559
size 199057

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:050893bf116964c98d46d78d850cbcbfd92d11d612e5018c291f23d0ab4fffdd
size 144601
oid sha256:4fd9a9b664c47e605793447d96bc0229a9db6c2edb8f104eac4453641a7329f8
size 145090

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9651e8d3e5ccc6f2a0ea0da2b4054f901ef28de0e2175ecb457d12ac318be64a
size 195662
oid sha256:fb0841f55e5958348cc279f0ae20dffc3a29526731a277e216764aef04451de5
size 196081

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35a2456bd43b0c5f15392cf37bad123ac10ca4362bde64e6a096f77be597d67e
size 84840
oid sha256:49d13da337dc0375468cf3f265dcb468d8605b1f5f06d2cc3ed092f0b32441a4
size 84097

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63d77933b2bc5d6dafde832081e02db26ce779b1c83d5b18bf664b059a297ad5
size 85933
oid sha256:b8aa9b54c86da44cb8b7e0b86f7cdca862b7bfadb1c05e10ae8c2385e20a46b6
size 84619

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d0d342544d63dd9df0dd3f94e2a40d3bca7d9b91227e8b8b4e883efef85f19a
size 86265
oid sha256:a4f60780487823206ce8749b6594e245d81d2996c609872c8b5829df6a364fc2
size 84901

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5c59e4b368e0bcb294803118a66eb88f6bdc51460067cbd2527ac0c878a094e5
size 87335
oid sha256:04d11a84c66697b8ce469ef1b8032e409015c844e1b5ed1e5e9ee5e457e0d1e3
size 85177