Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create shared UIElement finders #37

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

corrado4eyes
Copy link
Collaborator

@corrado4eyes corrado4eyes changed the title Create shared button finder Create shared UIElement finders Sep 22, 2023
let scrollItem = app.staticTexts[scrollViewItemIndex]
XCTAssert(scrollItem.waitForExistence(timeout: 0.1))

// Cross-platform implementation

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not clear what it means. It is a swift file, how does it relate to cross-platform?

@@ -89,6 +90,7 @@
48B350D3EB640C8B7B253753 /* UninitializedObservable.generated.swift */ = {isa = PBXFileReference; explicitFileType = sourcecode.swift; path = UninitializedObservable.generated.swift; sourceTree = "<group>"; };
4DEA2654EFE69B013946D9B0 /* Pods-CucumberTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CucumberTests.release.xcconfig"; path = "Target Support Files/Pods-CucumberTests/Pods-CucumberTests.release.xcconfig"; sourceTree = "<group>"; };
5416DF2E8BB6BE190C0431AF /* NavigationBarColor.generated.swift */ = {isa = PBXFileReference; explicitFileType = sourcecode.swift; path = NavigationBarColor.generated.swift; sourceTree = "<group>"; };
640CC3C72AB49ECA003E3D8C /* Node+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Node+Extensions.swift"; sourceTree = "<group>"; };

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use xcodegen. changes in pbxproj is difficult to review

override fun swipeUntilKey(key: Any, velocity: Float?) {
try {
node.performScrollToKey(key)
} catch (e: IllegalArgumentException) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would println the error so it's obvious that an exception was thrown

@@ -15,11 +15,11 @@ import org.koin.dsl.module
class LoginViewModelTest : KoinUIThreadViewModelTest<LoginViewModelTest.KoinContext, LoginViewModel>() {
class KoinContext : KoinViewModelTestContext<LoginViewModel>(
module {
single<AuthService> { AuthServiceMock() }
single<AuthService> { AuthServiceMock(getOrNull()) }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a name for the parameter. If you have only get it's not clear what kind of argument you are passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants