KDnuggets Home » News » 2015 » Aug » News, Features » test permalink errors Aug 19 ( 14:n32 )

test permalink errors Aug 19


test case 1



immediately publish

***notes by shashank***

case 1 - direct publish - publish button does not work - test pass

case 2 - save draft & publish - save draft saves the post, but displays **invalid** message in WP Header, publish button does not work. - test pass

case 3 - format check - correct format works. - test pass

1. aug-17-test.html     // no leading YYYY/MM

{ save draft saves post & shows error; publish does not proceed & shows error}

2. 2015/test-aug-17.html              //no MM

{ save draft saves post & shows error; publish does not proceed & shows error}

3. 2015/07/test-aug-17.html        //wrong MM

{ save draft saves post & shows error; publish does not proceed & shows error}

4. 2016/07/test-aug-17.html        //wrong YY

{ save draft saves post & shows error; publish does not proceed & shows error}

5. 2015/08/test-aug-17.htm         // no .html

{ save draft saves post & shows error; publish does not proceed & shows error}

6. 2015/08/test-aug-17.                // no .html

{ save draft saves post & shows error; publish does not proceed & shows error}

7. ??2015/08/test-aug-17.html    // bad characters ??

{ save draft saves post & shows error; publish does not proceed & shows error}

8. 2015/08/test_aug_17.html        // bad characters _

{ save draft saves post & shows error; publish does not proceed & shows error}

9. 2015/08/TEST-aug-17.html     // upper-case characters

{ save draft saves post & shows error; publish does not proceed & shows error}

10. /2015/08/test-aug-17.html     // extra leading "/"

{ save draft saves post & shows error; publish does not proceed & shows error}

Also test a leading and trailing space

11. 2015/08/test-aug-17.html    / leading space

{Wordpress seems to remove leading spaces. Post saves, and gets published. However, permalink does not have any leading spaces. Preview shows no spaces in permalink.}

12. 2015/08/test-aug-17.html    /trailing space

{Wordpress seems to remove trailing spaces. Post saves, and gets published. However, permalink does not have any trailing spaces. Preview shows no spaces in permalink.}