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

Use implicit action intent for action test #5832

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

seadowg
Copy link
Member

@seadowg seadowg commented Nov 10, 2023

The issue with AndroidX test appears to be fixed now!

@seadowg seadowg marked this pull request as ready for review November 10, 2023 09:27
@@ -762,7 +762,6 @@ class FormUriActivityTest {
assertStartSavedFormIntent(null, instance.dbId, true)
}

// TODO: Replace the explicit FormUriActivity intent with an implicit one Intent.ACTION_EDIT once it's possible https://github.com/android/android-test/issues/496
Copy link
Member

Choose a reason for hiding this comment

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

Why didn't you convert it to use an implicit intent too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah sorry I meant to leave a comment and totally forgot: implicit action Intents don't work in Robolectric, but that feels ok here as we're testing an Activity rather than an action. The instrumentation tests (like FormEditActionTest) check that the app responds to the action.

@grzesiek2010 grzesiek2010 merged commit 794bd57 into getodk:master Nov 10, 2023
6 checks passed
@seadowg seadowg deleted the action-intent branch November 13, 2023 09:28
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