-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NT-2124: Shot 5.11.0 library integration (#1324)
- Loading branch information
Showing
22 changed files
with
65 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
...androidTest/java/com/kickstarter/screenshoot/testing/ui/components/CommentCardShotTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.kickstarter.screenshoot.testing.ui.components | ||
|
||
import android.view.LayoutInflater | ||
import androidx.constraintlayout.widget.ConstraintLayout | ||
import androidx.test.core.app.ApplicationProvider | ||
import com.karumi.shot.ScreenshotTest | ||
import com.kickstarter.KSApplication | ||
import com.kickstarter.R | ||
import com.kickstarter.mock.factories.UserFactory | ||
import com.kickstarter.ui.views.CommentCard | ||
import com.kickstarter.ui.views.CommentCardStatus | ||
import org.joda.time.DateTime | ||
import org.junit.Test | ||
|
||
class CommentCardShotTest : ScreenshotTest { | ||
private val context = ApplicationProvider.getApplicationContext<KSApplication>() | ||
|
||
@Test | ||
fun commentCardScreenshotTest_COMMENT_FOR_LOGIN_BACKED_USERS() { | ||
var commentCard: CommentCard = (LayoutInflater.from(context).inflate(R.layout.item_comment_card, null) as ConstraintLayout) | ||
.findViewById(R.id.comments_card_view) | ||
|
||
val user = UserFactory.user() | ||
commentCard.setAvatarUrl(null) // -> internal network call to picasso we need to extract that. | ||
commentCard.setReplyButtonVisibility(true) | ||
commentCard.setViewRepliesVisibility(true) | ||
commentCard.setCommentUserName(user.name()) | ||
commentCard.setCommentBody("Message here for the Screenshot test lets see how it behaves ....") | ||
commentCard.setCommentPostTime(DateTime.now().toString()) | ||
|
||
commentCard.setCommentCardStatus(CommentCardStatus.COMMENT_FOR_LOGIN_BACKED_USERS) | ||
compareScreenshot(commentCard) | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
...tRegressionDebug/java/com/kickstarter/testing/infrastructure/suite/InfrastructureSuite.kt
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
...estRegressionDebug/java/com/kickstarter/testing/infrastructure/suite/VisitorCookieTest.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
app/src/androidTestRegressionDebug/java/com/kickstarter/testing/login/suite/LoginSuite.kt
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...dTestRegressionDebug/java/com/kickstarter/testing/login/suite/ResetPasswordSuccessTest.kt
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
app/src/androidTestRegressionDebug/java/com/kickstarter/testing/utils/Events.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
app/src/androidTestRegressionDebug/java/com/kickstarter/testing/utils/Matchers.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.kickstarter" | ||
android:sharedUserId="com.kickstarter"> | ||
|
||
<!-- Strip away maxSdkVersion --> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" | ||
tools:remove="android:maxSdkVersion"/> | ||
|
||
<!-- Add the permission with no maxSdkVersion defined --> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.