Skip to content

Commit

Permalink
chore: added Portals Debug App to test apps and refined tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpoole committed Jul 22, 2024
1 parent 00d91a4 commit 091c77c
Show file tree
Hide file tree
Showing 45 changed files with 748 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import androidx.test.espresso.web.model.Atoms.castOrDie
import androidx.test.espresso.web.model.Atoms.script
import androidx.test.espresso.web.sugar.Web.onWebView
import androidx.test.espresso.web.webdriver.DriverAtoms
import androidx.test.espresso.web.webdriver.DriverAtoms.findElement
import androidx.test.espresso.web.webdriver.DriverAtoms.getText
import androidx.test.espresso.web.webdriver.Locator
import androidx.test.ext.junit.runners.AndroidJUnit4
import io.ionic.portals.PortalManager
Expand All @@ -33,8 +35,8 @@ class InitialContextTests {
@Test
fun verify_web_content_is_displayed__when_portal_loads() {
onWebView()
.withElement(DriverAtoms.findElement(Locator.CLASS_NAME, "container"))
.check(webMatches(DriverAtoms.getText(), containsString("The web page loaded successfully.")))
.withElement(findElement(Locator.XPATH, "/html/body/div/ion-app/div/ion-tabs/div/ion-router-outlet/div/ion-header/ion-toolbar/ion-title"))
.check(webMatches(getText(), containsString("Initial Context")))
}

@Test
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

148 changes: 148 additions & 0 deletions TestApp/src/main/assets/testportal/assets/index-acdcbd5b.js

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions TestApp/src/main/assets/testportal/assets/index-legacy-ce2b42d5.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions TestApp/src/main/assets/testportal/assets/index9-7281efea.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 091c77c

Please sign in to comment.