Tets :: Posts - crip-home/competitions GitHub Wiki

POST FORM

  • title (3:255);
  • image (link);
  • body;
  • status (draft, pendig, private, published, trash);
  • publish_at (date-2017-01-24);
  • language (LV; EN);

Manager post creat form

Overall create posts & view all posts.

  1. Log in as user: '[email protected]';
  2. Go to list of all posts;
  3. Push create new post link;
  4. Fill create form:
    • Enter title field: 'Aa';
    • Enter in to image field: 'image';
    • Enter body field: '';
    • Enter publish at: '';
    • Enter languages: 'EN';
  5. Save information.
  6. Error in 3 point, enter not correct data.
    • Enter in to image field: '../post/images.jpg';
    • Enter title field: 'PostName';
    • Enter publish at: '2017-02-10';
    • Enter body field: 'This post include interestigs facts about sports';
    • Enter status: 'Published';
    • Enter languages: 'EN';
  7. Save again information;
  8. View post to list of all posts;

Post creater

Overall creator posts & view only personal posts

  1. Log in as [email protected];
  2. Go to list of posts. List should be empty.
  3. Push create new post link;
  4. Fill create form:
    • Enter title field: 'ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg';
    • Enter in to image field: 'picture';
    • Enter body field: '';
    • Enter publish at: '';
    • Enter languages: 'LV';
  5. Save information.
  6. Error in 3 point, enter not correct data.
    • Enter in to image field: '../post/images.jpg';
    • Enter title field: 'FirstPostTitle';
    • Enter publish at: '2017-01-29';
    • Enter body field: 'This is my first post.';
    • Enter status: 'Published';
    • Enter languages: 'LV';
  7. Save again information;
  8. List should contain only one post.