Skip to content

Commit

Permalink
Merge pull request #12963 from woocommerce/fix/ignored-ordersuitest
Browse files Browse the repository at this point in the history
Fix ignored OrdersUITest
  • Loading branch information
AnirudhBhat authored Nov 25, 2024
2 parents d3bda7b + e3a3235 commit e5d79d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.hasDescendant
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withParentIndex
import androidx.test.espresso.matcher.ViewMatchers.withText
import com.woocommerce.android.R
import com.woocommerce.android.e2e.helpers.util.NestedScrollViewExtension
Expand Down Expand Up @@ -43,7 +44,7 @@ class SingleOrderScreen : Screen(R.id.orderStatus_subtitle) {
}

fun assertOrderId(orderId: Int): SingleOrderScreen {
Espresso.onView(withId(R.id.toolbar))
Espresso.onView(Matchers.allOf(withId(R.id.toolbar), withParentIndex(0)))
.check(ViewAssertions.matches(hasDescendant(withText("Order #$orderId"))))
.check(ViewAssertions.matches(isDisplayed()))
return this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testing.HiltAndroidTest
import org.json.JSONObject
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test

Expand Down Expand Up @@ -55,7 +54,6 @@ class OrdersUITest : TestBase() {

@Retry(numberOfTimes = 1)
@Test
@Ignore
fun e2eCreateOrderTest() {
val note = "Just a placeholder text"
val ordersJSONArray = MocksReader().readOrderToArray()
Expand Down

0 comments on commit e5d79d7

Please sign in to comment.