Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
90ae0933
Unverified
Commit
90ae0933
authored
Nov 16, 2020
by
Dan Field
Committed by
GitHub
Nov 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase timeouts on XCUITests (#70631)
parent
adc8a42b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
FlutterUITests.m
...ration_tests/ios_host_app/FlutterUITests/FlutterUITests.m
+15
-15
No files found.
dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m
View file @
90ae0933
...
...
@@ -19,13 +19,13 @@
[
app
.
buttons
[
@"Full Screen (Cold)"
]
tap
];
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
// Back navigation.
[
app
.
buttons
[
@"POP"
]
tap
];
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
60
.
0
]);
}
-
(
void
)
testFullScreenWarm
{
...
...
@@ -34,13 +34,13 @@
[
app
.
buttons
[
@"Full Screen (Warm)"
]
tap
];
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
// Back navigation.
[
app
.
buttons
[
@"POP"
]
tap
];
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
60
.
0
]);
}
-
(
void
)
testFlutterViewWarm
{
...
...
@@ -49,13 +49,13 @@
[
app
.
buttons
[
@"Flutter View (Warm)"
]
tap
];
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
otherElements
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
// Back navigation.
[
app
.
buttons
[
@"POP"
]
tap
];
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
60
.
0
]);
}
-
(
void
)
testHybridViewWarm
{
...
...
@@ -64,20 +64,20 @@
[
app
.
buttons
[
@"Hybrid View (Warm)"
]
tap
];
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 0 times."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
(
app
.
otherElements
[
@"Platform button tapped 0 times."
].
exists
);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 1 time."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
(
app
.
otherElements
[
@"Platform button tapped 0 times."
].
exists
);
[
app
.
buttons
[
@"Increment via iOS"
]
tap
];
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 1 time."
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
(
app
.
otherElements
[
@"Platform button tapped 1 time."
].
exists
);
// Back navigation.
[
app
.
navigationBars
[
@"Hybrid Flutter/Native"
].
buttons
[
@"Flutter iOS Demos Home"
]
tap
];
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
60
.
0
]);
}
-
(
void
)
testDualCold
{
...
...
@@ -87,12 +87,12 @@
[
app
.
buttons
[
@"Dual Flutter View (Cold)"
]
tap
];
// There are two marquees.
XCTAssertTrue
([
app
.
otherElements
[
@"This is Marquee"
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
otherElements
[
@"This is Marquee"
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertEqual
([
app
.
otherElements
matchingType
:
XCUIElementTypeOther
identifier
:
@"This is Marquee"
].
count
,
2
);
// Back navigation.
[
app
.
navigationBars
[
@"Dual Flutter Views"
].
buttons
[
@"Flutter iOS Demos Home"
]
tap
];
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
1
.
0
]);
XCTAssertTrue
([
app
.
navigationBars
[
@"Flutter iOS Demos Home"
]
waitForExistenceWithTimeout
:
60
.
0
]);
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment