From 6d6793e4eda2a0e504389b317f5c4a2ac4b34830 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 6 Mar 2023 16:32:27 +0200 Subject: [PATCH] Fix bugReport UI test (#673) --- UITests/Sources/BugReportUITests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UITests/Sources/BugReportUITests.swift b/UITests/Sources/BugReportUITests.swift index f733d8fce..1d6e2405a 100644 --- a/UITests/Sources/BugReportUITests.swift +++ b/UITests/Sources/BugReportUITests.swift @@ -42,12 +42,12 @@ class BugReportUITests: XCTestCase { // Type 4 characters and the send button should be disabled. app.textViews[A11yIdentifiers.bugReportScreen.report].clearAndTypeText("Text") - XCTAssertFalse(app.buttons[A11yIdentifiers.bugReportScreen.send].isEnabled) + XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn) 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") - XCTAssert(app.buttons[A11yIdentifiers.bugReportScreen.send].isEnabled) + XCTAssert(app.switches[A11yIdentifiers.bugReportScreen.sendLogs].isOn) app.assertScreenshot(.bugReport, step: 3) }