-
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-2125: CommentCard Screen shot test. (#1331)
- Loading branch information
Showing
22 changed files
with
131 additions
and
33 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
Binary file added
BIN
+38.9 KB
...ommentCardShotTest_commentCardScreenshotTest_COMMENT_FOR_LOGIN_BACKED_USERS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.5 KB
...mponents.CommentCardShotTest_commentCardScreenshotTest_COMMENT_WITH_REPLIES.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35 KB
...ui.components.CommentCardShotTest_commentCardScreenshotTest_DELETED_COMMENT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.1 KB
...onents.CommentCardShotTest_commentCardScreenshotTest_FAILED_TO_SEND_COMMENT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.8 KB
....components.CommentCardShotTest_commentCardScreenshotTest_RE_TRYING_TO_POST.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.9 KB
...ommentCardShotTest_commentCardScreenshotTest_COMMENT_FOR_LOGIN_BACKED_USERS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.5 KB
...mponents.CommentCardShotTest_commentCardScreenshotTest_COMMENT_WITH_REPLIES.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+35 KB
...ui.components.CommentCardShotTest_commentCardScreenshotTest_DELETED_COMMENT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.1 KB
...onents.CommentCardShotTest_commentCardScreenshotTest_FAILED_TO_SEND_COMMENT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.8 KB
....components.CommentCardShotTest_commentCardScreenshotTest_RE_TRYING_TO_POST.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
app/src/androidTest/java/com/kickstarter/screenshoot/testing/InstrumentedApp.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,23 @@ | ||
package com.kickstarter.screenshoot.testing | ||
|
||
import com.kickstarter.ApplicationComponent | ||
import com.kickstarter.DaggerApplicationComponent | ||
import com.kickstarter.KSApplication | ||
import com.kickstarter.screenshoot.testing.di.AndroidTestApplicationModule | ||
|
||
class InstrumentedApp : KSApplication() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
} | ||
|
||
override fun getComponent(): ApplicationComponent { | ||
return DaggerApplicationComponent.builder() | ||
.applicationModule(AndroidTestApplicationModule(this)) | ||
.build() | ||
} | ||
|
||
override fun isInUnitTests(): Boolean { | ||
return true | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
app/src/androidTest/java/com/kickstarter/screenshoot/testing/KSScreenShotTestRunner.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,15 @@ | ||
package com.kickstarter.screenshoot.testing | ||
|
||
import android.app.Application | ||
import android.content.Context | ||
import com.karumi.shot.ShotTestRunner | ||
|
||
class KSScreenShotTestRunner : ShotTestRunner() { | ||
override fun newApplication( | ||
cl: ClassLoader?, | ||
className: String?, | ||
context: Context? | ||
): Application { | ||
return super.newApplication(cl, InstrumentedApp::class.java.name, context) | ||
} | ||
} |
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
3 changes: 2 additions & 1 deletion
3
app/src/androidTest/java/com/kickstarter/screenshoot/testing/di/ApplicationComponent.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
3 changes: 2 additions & 1 deletion
3
app/src/androidTest/java/com/kickstarter/screenshoot/testing/di/NoopBuildCheck.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.kickstarter" | ||
android:sharedUserId="com.kickstarter"> | ||
package="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> |
5 changes: 5 additions & 0 deletions
5
app/src/main/java/com/kickstarter/IKSApplicationComponent.java
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,5 @@ | ||
package com.kickstarter; | ||
|
||
public interface IKSApplicationComponent { | ||
ApplicationGraph getComponent(); | ||
} |
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