Skip to content

Commit 8882791

Browse files
Fix existing integration test (#8854)
The `isVisible` function was not found; I expect maybe it was from a previous version of dependencies or something. I also specified ms between text input because it feels very slow. I don't see an option to just paste with the keyboard but maybe that exists elsewhere. --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d0f8ed8 commit 8882791

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • testSrc/integration/io/flutter/integrationTest/utils

testSrc/integration/io/flutter/integrationTest/utils/NewProject.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fun newProjectWelcomeScreen(run: BackgroundRun, testProjectName: String) {
6666
run.driver.withContext {
6767
// Assert that the welcome screen is visible before interacting with it.
6868
welcomeScreen {
69-
assert(isVisible())
69+
assert(present())
7070
println("Creating the new project from Welcome Screen")
7171
createNewProjectButton.click()
7272

@@ -94,7 +94,7 @@ fun newProjectWelcomeScreen(run: BackgroundRun, testProjectName: String) {
9494
wait(1.seconds)
9595

9696
keyboard {
97-
typeText(testProjectName)
97+
typeText(testProjectName, delayBetweenCharsInMs = 60)
9898
}
9999
createButton.click()
100100
}

0 commit comments

Comments
 (0)