NTP-57861 || Fixed instrumentation tests for amc & Navi-widgets (#15871)

Co-authored-by: Sayed Owais Ali <sayed.owais@navi.com>
Co-authored-by: Raaj Gopal <raaj.gopal@navi.com>
This commit is contained in:
A Shrihari Raju
2025-04-25 00:01:17 +05:30
committed by GitHub
parent 4ae1dbf909
commit dba9b37529
6 changed files with 28 additions and 7 deletions

View File

@@ -7,13 +7,15 @@
~
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="false"
tools:replace="android:allowBackup"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:supportsRtl="true">

View File

@@ -22,6 +22,7 @@
android:layout_height="@dimen/_22dp"/>
<LinearLayout
android:id="@+id/title_layout"
app:layout_constraintStart_toEndOf="@id/image"
android:layout_marginStart="@dimen/_4dp"
app:layout_constraintTop_toTopOf="parent"
@@ -35,7 +36,7 @@
android:layout_height="wrap_content"
android:lineSpacingExtra="@dimen/_3dp"
android:maxLines="@integer/integer_1"
app:layout_constraintEnd_toStartOf="@id/title2"
app:layout_constraintEnd_toStartOf="@id/projection_title"
tools:text="About SIPS" />
<com.navi.design.textview.NaviTextView
@@ -61,8 +62,8 @@
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/title"
app:layout_constraintTop_toBottomOf="@id/title"
app:layout_constraintStart_toStartOf="@id/title_layout"
app:layout_constraintTop_toBottomOf="@id/title_layout"
tools:text="SIP allows you to invest a fixed amount of money at pre-defined intervals." />
<androidx.appcompat.widget.AppCompatImageView
@@ -73,7 +74,7 @@
android:layout_marginTop="@dimen/dp_16"
android:src="@drawable/small_cross"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/title"
app:layout_constraintBottom_toBottomOf="@id/title_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,6 +1,6 @@
/*
*
* * Copyright © 2021-2022 by Navi Technologies Limited
* * Copyright © 2021-2025 by Navi Technologies Limited
* * All rights reserved. Strictly confidential
*
*/
@@ -24,6 +24,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.navi.naviwidgets", appContext.packageName)
assertEquals("com.navi.naviwidgets.test", appContext.packageName)
}
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<size
android:width="@dimen/dp_0"
android:height="@dimen/dp_32" />
</shape>

View File

@@ -2,4 +2,14 @@
<resources>
<dimen name="layout_sp_14">14sp</dimen>
<dimen name="layout_sp_16">16sp</dimen>
<dimen name="layout_dp_0">0dp</dimen>
<dimen name="layout_dp_2">2dp</dimen>
<dimen name="layout_dp_4">4dp</dimen>
<dimen name="layout_dp_8">8dp</dimen>
<dimen name="layout_dp_10">10dp</dimen>
<dimen name="layout_dp_12">12dp</dimen>
<dimen name="layout_dp_16">16dp</dimen>
<dimen name="layout_dp_24">24dp</dimen>
<dimen name="layout_dp_62">62dp</dimen>
<dimen name="layout_dp_200">200dp</dimen>
</resources>

View File

@@ -15,4 +15,5 @@
<integer name="integer_2">2</integer>
<integer name="integer_3">3</integer>
<integer name="integer_4">4</integer>
<integer name="anim_dur_large">500</integer>
</resources>