Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about xctestcase

Read more about xctestcase

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - xctestcase

UITest keeps failing to tap alert view when running on simulator

I have created a series of UI Tests that run fine on a device but when using a Simulator, I cannot tap alert view buttons. let alert = app.alerts["Continue"] alert.buttons["Yes"]...
test-img

SirJoeyMichaels

ios

xcode

ios-simulator

xcuitest

xctestcase

Votes: 0

Answers: 1

Latest Answer

Turns out this is only an issue when running on an iOS 12 simulator. It is ok when running on an iOS 15.4 simulator.
test-img

SirJoeyMichaels

XCTAssertEqual gives me error - UIViewController.Type cannot conform to 'Equatable'

I have an enum like following- enum Vehicle: String, CaseIterable { case car = "/car/" case boat = "/plane" case bicycle = "/bicycle/" cas...
test-img

Natasha

ios

unit-testing

xctestcase

equatable

Votes: 0

Answers: 1

Latest Answer

As the error says, Type can't conform to Equatable. But you can still test for equality using ==: func testTrainTargetViewControllerType() { XCTAssertTrue(Vehicle.train.targetControllerType == Mul...
test-img

Jon Reid

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved