summaryrefslogtreecommitdiff
path: root/spec/javascripts/notes/components/issue_comment_form_spec.js
blob: 389ccd6e886365eb2779a45d8298e57de03f2f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
describe('issue_comment_form component', () => {

  describe('user is logged in', () => {
    it('should render user avatar with link', () => {

    });

    describe('textarea', () => {
      it('should render textarea with placeholder', () => {

      });

      it('should support quick actions', () => {

      });

      it('should link to markdown docs', () => {

      });

      it('should link to quick actions docs', () => {

      });

      describe('edit mode', () => {
        it('should enter edit mode when arrow up is pressed', () => {

        });
      });

      describe('preview mode', () => {
        it('should be possible to preview the note', () => {

        });
      });

      describe('event enter', () => {
        it('should save note when cmd/ctrl+enter is pressed', () => {

        });
      });
    });

    describe('actions', () => {
      describe('with empty note', () => {
        it('should render dropdown as disabled', () => {

        });
      });

      describe('with note', () => {
        it('should render enabled dropdown with 2 actions', () => {

        });

        it('should render be possible to discard draft', () => {

        });
      });

      describe('with open issue', () => {
        it('should be possible to close the issue', () => {

        });
      });

      describe('with closed issue', () => {
        it('should be possible to reopen the issue', () => {

        });
      });
    });


  });

  describe('user is not logged in', () => {
    it('should render signed out widget', () => {

    });

    it('should not render submission form', () => {

    });
  });
});