anchor.diff:        });
       });
     });
  -  */
  +
     group('dialogs', () {
  -    test('ensure about dialog open', () {
  +    test('open and close the new-project dialog via x button', () {
         SparkUITester sparkTester = new SparkUITester();
  +      ModalUITester modalTester = new ModalUITester("newProjectDialog");
  +
  +      expect(modalTester.functionallyOpened, false);
  +      expect(modalTester.visuallyOpened, false);
  +
         sparkTester.selectMenu();
  -      return new Future.delayed(const Duration(milliseconds: 2000)).then((_){
  -        sparkTester.selectNewProject();
  +      sparkTester.selectNewProject();
  +
  +      return new Future.delayed(const Duration(milliseconds: 1000)).then((_){
  +        expect(modalTester.functionallyOpened, true);
  +        expect(modalTester.visuallyOpened, true);
  +        modalTester.clickClosingX();
  +      }).then((_) => new Future.delayed(const Duration(milliseconds: 1000))
  +      ).then((_) {
  +        expect(modalTester.functionallyOpened, false);
  +        expect(modalTester.visuallyOpened, false);
         });
       });
     });
  
positive.code:       expect(modalTester.visuallyOpened, true);
      });
  
      test('close dialog', () { // 10 26107
        ModalUITester modalTester = new ModalUITester("aboutDialog");
        modalTester.clickButton("done");
        expect(modalTester.functionallyOpened, false);
  
        return new Future.delayed(const Duration(milliseconds: 1000)).then((_){
  
negative.code: }
  
  defineTests() {
    group('first run', () {
      test('ensure about dialog open', () {
        ModalUITester modalTester = new ModalUITester("aboutDialog");
  