Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: Android E2E (Maestro)
runs-on: ubuntu-latest
timeout-minutes: 20
needs: test
steps:
- name: Free disk space
uses: jlumbroso/free-disk-space@v1.3.1
Expand Down Expand Up @@ -76,7 +77,6 @@ jobs:
test:
name: Run tests
runs-on: ubuntu-latest
needs: test-android-e2e
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -103,6 +103,7 @@ jobs:
name: Desktop smoke
runs-on: ubuntu-latest
# Own runner so HOME/config/temp are not shared with jvmTest or Maestro.
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -139,7 +140,7 @@ jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
needs: test
needs: test-android-e2e
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -175,7 +176,7 @@ jobs:
build-desktop-macos:
name: Build Desktop macOS
runs-on: macos-latest
needs: [test, test-desktop-smoke]
needs: test-desktop-smoke
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -196,7 +197,7 @@ jobs:
build-desktop-windows:
name: Build Desktop Windows
runs-on: windows-latest
needs: [test, test-desktop-smoke]
needs: test-desktop-smoke
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -217,7 +218,7 @@ jobs:
build-desktop-linux:
name: Build Desktop Linux
runs-on: ubuntu-latest
needs: [test, test-desktop-smoke]
needs: test-desktop-smoke
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fun ComposeUiTest.completeSmokeSettings() {

onNodeWithText("General").assertIsDisplayed()
onNodeWithContentDescription("back").performClick()
waitUntilVisible("Your Translation Projects", timeoutMillis = 5_000)
waitUntilVisible("Your Translation Projects", timeoutMillis = 15_000)
}

@OptIn(ExperimentalTestApi::class)
Expand Down Expand Up @@ -152,7 +152,7 @@ private fun ComposeUiTest.scrollUntilVisible(text: String, timeoutMillis: Long =
// Review/lists may not expose scroll semantics yet; keep polling.
}
waitForIdle()
mainClock.advanceTimeByFrame()
mainClock.advanceTimeBy(100)
}
throw AssertionError("Timed out after ${timeoutMillis}ms waiting for \"$text\" while scrolling")
}
Expand All @@ -163,7 +163,7 @@ private fun ComposeUiTest.waitUntilVisible(text: String, timeoutMillis: Long) {
while (System.nanoTime() < deadline) {
if (isTextVisible(text)) return
waitForIdle()
mainClock.advanceTimeByFrame()
mainClock.advanceTimeBy(100)
}
throw AssertionError("Timed out after ${timeoutMillis}ms waiting for \"$text\"")
}
Expand All @@ -181,7 +181,7 @@ private fun ComposeUiTest.waitUntilSetTextAction(timeoutMillis: Long) {
return
}
waitForIdle()
mainClock.advanceTimeByFrame()
mainClock.advanceTimeBy(100)
}
throw AssertionError("Timed out after ${timeoutMillis}ms waiting for editable text field")
}
Expand All @@ -192,7 +192,7 @@ private fun ComposeUiTest.waitUntilContentDescription(description: String, timeo
while (System.nanoTime() < deadline) {
if (isContentDescriptionVisible(description)) return
waitForIdle()
mainClock.advanceTimeByFrame()
mainClock.advanceTimeBy(100)
}
throw AssertionError("Timed out after ${timeoutMillis}ms waiting for content description \"$description\"")
}
Expand Down
Loading