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
f123f64d
Unverified
Commit
f123f64d
authored
Dec 11, 2020
by
Jenn Magder
Committed by
GitHub
Dec 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reenable module_test_ios UI tests (#72145)
parent
a48a57d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
FlutterUITests.m
...ration_tests/ios_host_app/FlutterUITests/FlutterUITests.m
+11
-12
Host.xcscheme
...t_app/Host.xcodeproj/xcshareddata/xcschemes/Host.xcscheme
+0
-5
No files found.
dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m
View file @
f123f64d
...
...
@@ -7,7 +7,6 @@
@interface
FlutterUITests
:
XCTestCase
@end
// TODO(jmagman): These tests has become flaky and are disabled in the test scheme. Fix https://github.com/flutter/flutter/issues/70630 and re-enable.
@implementation
FlutterUITests
-
(
void
)
setUp
{
...
...
@@ -20,9 +19,9 @@
[
app
.
buttons
[
@"Full Screen (Cold)"
]
tap
];
XCTAssertTrue
([
app
.
otherElemen
ts
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
([
app
.
staticTex
ts
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
otherElemen
ts
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
([
app
.
staticTex
ts
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
// Back navigation.
[
app
.
buttons
[
@"POP"
]
tap
];
...
...
@@ -35,9 +34,9 @@
[
app
.
buttons
[
@"Full Screen (Warm)"
]
tap
];
XCTAssertTrue
([
app
.
otherElemen
ts
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
([
app
.
staticTex
ts
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
otherElemen
ts
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
([
app
.
staticTex
ts
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
// Back navigation.
[
app
.
buttons
[
@"POP"
]
tap
];
...
...
@@ -50,9 +49,9 @@
[
app
.
buttons
[
@"Flutter View (Warm)"
]
tap
];
XCTAssertTrue
([
app
.
otherElemen
ts
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
([
app
.
staticTex
ts
[
@"Button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
otherElemen
ts
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
([
app
.
staticTex
ts
[
@"Button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
// Back navigation.
[
app
.
buttons
[
@"POP"
]
tap
];
...
...
@@ -66,15 +65,15 @@
[
app
.
buttons
[
@"Hybrid View (Warm)"
]
tap
];
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 0 times."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
(
app
.
otherElemen
ts
[
@"Platform button tapped 0 times."
].
exists
);
XCTAssertTrue
(
app
.
staticTex
ts
[
@"Platform button tapped 0 times."
].
exists
);
[
app
.
otherElements
[
@"Increment via Flutter"
]
tap
];
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
(
app
.
otherElemen
ts
[
@"Platform button tapped 0 times."
].
exists
);
XCTAssertTrue
(
app
.
staticTex
ts
[
@"Platform button tapped 0 times."
].
exists
);
[
app
.
buttons
[
@"Increment via iOS"
]
tap
];
XCTAssertTrue
([
app
.
staticTexts
[
@"Flutter button tapped 1 time."
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertTrue
(
app
.
otherElemen
ts
[
@"Platform button tapped 1 time."
].
exists
);
XCTAssertTrue
(
app
.
staticTex
ts
[
@"Platform button tapped 1 time."
].
exists
);
// Back navigation.
[
app
.
navigationBars
[
@"Hybrid Flutter/Native"
].
buttons
[
@"Flutter iOS Demos Home"
]
tap
];
...
...
@@ -88,8 +87,8 @@
[
app
.
buttons
[
@"Dual Flutter View (Cold)"
]
tap
];
// There are two marquees.
XCTAssertTrue
([
app
.
otherElemen
ts
[
@"This is Marquee"
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertEqual
([
app
.
otherElements
matchingType
:
XCUIElementTypeOther
identifier
:
@"This is Marquee"
].
count
,
2
);
XCTAssertTrue
([
app
.
staticTex
ts
[
@"This is Marquee"
]
waitForExistenceWithTimeout
:
60
.
0
]);
XCTAssertEqual
([
app
.
staticTexts
matchingType
:
XCUIElementTypeStaticText
identifier
:
@"This is Marquee"
].
count
,
2
);
// Back navigation.
[
app
.
navigationBars
[
@"Dual Flutter Views"
].
buttons
[
@"Flutter iOS Demos Home"
]
tap
];
...
...
dev/integration_tests/ios_host_app/Host.xcodeproj/xcshareddata/xcschemes/Host.xcscheme
View file @
f123f64d
...
...
@@ -37,11 +37,6 @@
BlueprintName =
"FlutterUITests"
ReferencedContainer =
"container:Host.xcodeproj"
>
</BuildableReference>
<SkippedTests>
<Test
Identifier =
"FlutterUITests"
>
</Test>
</SkippedTests>
</TestableReference>
</Testables>
</TestAction>
...
...
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