🌱 UI Testing a SwiftUI application in Xcode

Source
// Naming Structure: test_UnitOfWork_StateUnderTest_ExpectedBehavior
// Naming Structure: test_[struct]_[ui component]_[expected result]
// Testing Structure: Given, When, Then

Example test name

test_UITestingBootcampView_signUpButton_shouldNotSignin

Use this instead of sleep(2), https://youtu.be/RoDUYFuNeJU?t=3166

element.waitForExistence(timeout: 2)
Made by Brandon . If you find this project useful you can donate.