From c41b0302964f50f10d6853d0ed4fe16b6f3b3174 Mon Sep 17 00:00:00 2001 From: igorgiumellizup <73198010+igorgiumellizup@users.noreply.github.com> Date: Thu, 1 Jul 2021 10:12:42 -0300 Subject: [PATCH] chore: update tests (#1681) --- .../automatedtests/builders/ImageScreenBuilder.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/automated-tests/src/main/kotlin/br/com/zup/beagle/automatedtests/builders/ImageScreenBuilder.kt b/backend/automated-tests/src/main/kotlin/br/com/zup/beagle/automatedtests/builders/ImageScreenBuilder.kt index 66bc1141c2..2044c5d869 100644 --- a/backend/automated-tests/src/main/kotlin/br/com/zup/beagle/automatedtests/builders/ImageScreenBuilder.kt +++ b/backend/automated-tests/src/main/kotlin/br/com/zup/beagle/automatedtests/builders/ImageScreenBuilder.kt @@ -17,6 +17,7 @@ package br.com.zup.beagle.automatedtests.builders import br.com.zup.beagle.automatedtests.constants.LOGO_BEAGLE +import br.com.zup.beagle.automatedtests.constants.LOGO_BEAGLE_URL import br.com.zup.beagle.ext.setFlex import br.com.zup.beagle.ext.setStyle import br.com.zup.beagle.widget.core.FlexDirection @@ -45,13 +46,13 @@ object ImageScreenBuilder { createStruct( direction = flexDirection, text = "without size", - image = Image(Local.justMobile(LOGO_BEAGLE)) + image = Image(Local.both(LOGO_BEAGLE_URL, LOGO_BEAGLE)) ), createStruct( direction = flexDirection, text = "${ImageContentMode.FIT_XY} and height = 40", image = Image( - Local.justMobile(LOGO_BEAGLE), ImageContentMode.FIT_XY, + Local.both(LOGO_BEAGLE_URL, LOGO_BEAGLE), ImageContentMode.FIT_XY, ).setStyle { size = Size(height = UnitValue.real(40)) }, @@ -60,7 +61,7 @@ object ImageScreenBuilder { direction = flexDirection, text = "${ImageContentMode.FIT_CENTER} and width = 40", image = Image( - Local.justMobile(LOGO_BEAGLE), ImageContentMode.FIT_CENTER, + Local.both(LOGO_BEAGLE_URL, LOGO_BEAGLE), ImageContentMode.FIT_CENTER, ).setStyle { size = Size(width = UnitValue.real(40)) }, @@ -69,7 +70,7 @@ object ImageScreenBuilder { direction = flexDirection, text = "${ImageContentMode.CENTER_CROP} and width = 100 and height = 40", image = Image( - Local.justMobile(LOGO_BEAGLE), ImageContentMode.CENTER_CROP, + Local.both(LOGO_BEAGLE_URL, LOGO_BEAGLE), ImageContentMode.CENTER_CROP, ).setStyle { size = Size.box(100, 40) }, @@ -78,7 +79,7 @@ object ImageScreenBuilder { direction = flexDirection, text = "${ImageContentMode.CENTER} and width = 300 and height = 40", image = Image( - Local.justMobile(LOGO_BEAGLE), ImageContentMode.CENTER, + Local.both(LOGO_BEAGLE_URL, LOGO_BEAGLE), ImageContentMode.CENTER, ).setStyle { size = Size.box(300, 40) },