Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Narendra Kumar Manoharan narenkmanoharan

🏠
Working from home
View GitHub Profile
@narenkmanoharan
narenkmanoharan / visual_regression.txt
Created Apr 29, 2020
Text report of visual regressions
View visual_regression.txt
-----------------------------------------------------------------------------------------------------
| createfutureexpense_unknown_gce_x86_phone_28.png | MATCH |
| dashboard_accounts_tabs_unknown_gce_x86_phone_28.png | MATCH |
| dashboard_goals_tabs_unknown_gce_x86_phone_28.png | MATCH |
| newpersonaltaxableaccount_success_unknown_gce_x86_phone_28.png | MATCH |
-----------------------------------------------------------------------------------------------------
@narenkmanoharan
narenkmanoharan / flank.yml
Created Apr 29, 2020
Flank configuration for pulling and downloading files from Firebase
View flank.yml
directories-to-pull:
- /sdcard/screenshots/
files-to-download:
- .*\.png$
@narenkmanoharan
narenkmanoharan / screenshot.kt
Last active Apr 29, 2020
Capturing a screenshot of the rootView
View screenshot.kt
// Simple screenshot
ScreenCaptor.takeScreenshot(
view = rootView,
screenshotFilename = "my_favorite_screenshot"
)
// Screenshot with all the configurations
ScreenCaptor.takeScreenshot(
view = rootView,
screenshotFilename = "my_favorite_screenshot",
@narenkmanoharan
narenkmanoharan / FutureExpenseTest.kt
Created Apr 29, 2020
Sample integration test with action and assertions.
View FutureExpenseTest.kt
@Test
fun createFutureExpense() {
goToLoginScreen()
.login(user.email, user.password)
.check(thatOnDashboardScreen())
.captureScreenshot(rootView, "dashboard_accounts_tabs")
.clickGoalsToggle()
.captureScreenshot(rootView, "dashboard_goals_tabs")
.createEvent()
.check(thatOnCreatePathEventScreen())
@narenkmanoharan
narenkmanoharan / flank_setup.gradle
Created Apr 29, 2020
Custom gradle extension to setup flank
View flank_setup.gradle
stagingServerTest {
devices = [new Device("Pixel2", 28)]
testTargets = "package com.wealthfront.test.stagingserver"
variantName = "StagingServerTestRelease"
flakyTestAttempts = 1
testShards = 4
smartFlankGcsPath = "gs://android_flank/staging_server_test.xml"
}
View filemover.sh
➜ wf-android git:(master) ./filemover.sh
Loading filemover...
File mover for wf-android
Please enter the module to move files to (e.g. :features:auth): :features:login
Please enter the module to move files from (e.g. :features:legacy): :features:legacy
Please enter the package(s) you wish to move, separated by commas: login
View codegen.sh
➜ wf-android git:(master) ./codegen.sh
Loading codegen...
Code generator for wf-android
Do you want to generate a screen or module?
1. Screen (S)
2. Module (M)
View codegen.sh
➜ wf-android git:(master) ./codegen.sh
Loading codegen...
Code generator for wf-android
Do you want to generate a screen or module?
1. Screen (S)
2. Module (M)
View MetricsModule.kt
@Module
object MetricsModule {
@Provides
@Singleton
@JvmStatic
fun provideMetricsPublisher(
@SingleThreaded api: DefaultApi,
objectMapper: ObjectMapper,
clock: Clock,
View MetricsModule.kt
@Module
object MetricsModule {
@Provides
@Singleton
@JvmStatic
fun provideMetricsPublisher(
@SingleThreaded api: DefaultApi,
objectMapper: ObjectMapper,
clock: Clock,
You can’t perform that action at this time.