Skip to content

Commit 3dbcbfd

Browse files
committed
fix macOS tests
1 parent 0dad216 commit 3dbcbfd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

example/macos/AsyncStorageExample-macOSUITests/AsyncStorageExample_macOSUITests.m

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ - (void)setUp
3636
_restartButton = _window.otherElements[@"restart_button"].staticTexts.firstMatch;
3737
[self waitForExpectation:exists evaluatedWithObject:_restartButton timeout:5];
3838

39-
_getSetClearButton = _window.buttons[@"testType_getSetClear"].staticTexts.firstMatch;
39+
_getSetClearButton = _window.buttons[@"get-set-clear"].staticTexts.firstMatch;
4040
[self waitForExpectation:exists evaluatedWithObject:_getSetClearButton timeout:5];
4141

42-
_mergeItemButton = _window.buttons[@"testType_mergeItem"].staticTexts.firstMatch;
42+
_mergeItemButton = _window.buttons[@"merge-item"].staticTexts.firstMatch;
4343
[self waitForExpectation:exists evaluatedWithObject:_mergeItemButton timeout:5];
4444

4545
[self setDelegate];
@@ -123,9 +123,7 @@ - (void)testMergeItemDelegate
123123
XCUIElement *mergeItemButton = _window.buttons[@"mergeItem_button"].staticTexts.firstMatch;
124124
XCUIElement *storyText = _window.staticTexts[@"storyTextView"];
125125

126-
NSString *story =
127-
[self performInputWithFormat:
128-
@"%@ from delegate is %@ from delegate, has %@ eyes and shoe size of %@."];
126+
NSString *story = [self performInputWithFormat:@"%@ is %@, has %@ eyes and shoe size of %@."];
129127
[mergeItemButton click];
130128
[_restartButton click];
131129
[restoreItemButton click];

0 commit comments

Comments
 (0)