Repository navigation
Conversation
dc8cbe3 to
cdaa045
Compare
fe432ae to
7d2cf59
Compare
|
@goneng It doesn't switch to "Tree view" any ideas ? |
|
@hannesa2 Found it, and the xib change is not the problem.
I compiled your version of Three things follow from that:
One correction to the comment in the diff: Two ways to fix itSimplest - use the menu. - (void)selectTreeView {
NSLog(@"[GitXScreenshotTests] Switching to the tree view with Command-Option-2");
[self.app typeKey:@"2" modifierFlags:XCUIKeyModifierCommand | XCUIKeyModifierOption];
[NSThread sleepForTimeInterval:0.5];
}Or keep clicking the real control, so the screenshot also proves the switcher works. Keep the xib identifier and change the queries: XCUIElement *viewSwitcher = self.app.radioGroups[@"DetailTreeViewSwitcher"];
...
XCUIElement *treeViewSegment = [viewSwitcher.radioButtons elementBoundByIndex:1];
[treeViewSegment click];
...
if (![treeViewSegment.value isEqual:@1]) { /* the click did not take */ }Two things that will bite right afterwards
|
f62f204 to
e01727e
Compare
a2ebb5d to
245abf8
Compare
- Drop the PBGitWindowWiringTests -view workaround: #702 already turns off PBShowStageView in -setUp, so -selectCurrentBranch runs synchronously and commitController is wired before -setUp returns. - Assert navigation to Tree View and the file-view scope bar buttons actually succeed, so the four Tree View screenshot tests fail fast instead of silently passing without a screenshot when a step can not be found. - Drop leftover debug NSLog/screenshot scaffolding from testTreeViewSourceTabScreenshot.



No description provided.