From c8ce6f447bb2decc041399a42fe543aabc31e252 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 8 Oct 2009 11:16:43 -0400 Subject: [PATCH] selenium tests --- test/selenium/TestCreatePost.html | 42 ++++++++++++ test/selenium/TestDeletePost.html | 37 +++++++++++ .../TestMetaboxApprovedTranscriptEditing.html | 66 +++++++------------ test/selenium/TestShortCodeButtons.html | 17 +++++ test/selenium/TestSuiteWhatDidTheySay.html | 2 + 5 files changed, 121 insertions(+), 43 deletions(-) create mode 100644 test/selenium/TestCreatePost.html create mode 100644 test/selenium/TestDeletePost.html create mode 100644 test/selenium/TestShortCodeButtons.html diff --git a/test/selenium/TestCreatePost.html b/test/selenium/TestCreatePost.html new file mode 100644 index 0000000..253ae15 --- /dev/null +++ b/test/selenium/TestCreatePost.html @@ -0,0 +1,42 @@ + + + + + + +TestCreatePost + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestCreatePost
clickAndWaitlink=Add New
typetitleWDTS Test Post
clickAndWaitpublish
assertTextPresentPost published.
storeValuepost_IDpost_id
+ + diff --git a/test/selenium/TestDeletePost.html b/test/selenium/TestDeletePost.html new file mode 100644 index 0000000..0f898db --- /dev/null +++ b/test/selenium/TestDeletePost.html @@ -0,0 +1,37 @@ + + + + + + +TestDeletePost + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TestDeletePost
open/wp-admin/post.php?action=edit&post=${post_id}
clicklink=Delete
assertConfirmationYou are about to delete this post 'WDTS Test Post'
  'Cancel' to stop, 'OK' to delete.
waitForPageToLoad30000
+ + diff --git a/test/selenium/TestMetaboxApprovedTranscriptEditing.html b/test/selenium/TestMetaboxApprovedTranscriptEditing.html index e862dd7..6a12ded 100644 --- a/test/selenium/TestMetaboxApprovedTranscriptEditing.html +++ b/test/selenium/TestMetaboxApprovedTranscriptEditing.html @@ -12,48 +12,43 @@ TestMetaboxApprovedTranscriptEditing - clickAndWait - link=Add New + open + /wp-admin/post.php?action=edit&post=${post_id} - - type - title - WDTS Test Post - - - clickAndWait - publish - - - - assertTextPresent - Post published. - - - - storeValue - post_ID - post_id - assertSelectedLabel - wdts-language + //select[@name="wdts[language]"] English + + assertVisible + //textarea[@name="wdts[transcripts][en]"] + + type - wdts-transcripts-en + //textarea[@name="wdts[transcripts][en]"] This is a test transcript. select - wdts-language + //select[@name="wdts[language]"] label=German + + assertVisible + //textarea[@name="wdts[transcripts][de]"] + + + + assertNotVisible + //textarea[@name="wdts[transcripts][en]"] + + type - wdts-transcripts-de + //textarea[@name="wdts[transcripts][de]"] Dies ist ein Test transcript. @@ -68,29 +63,14 @@ assertValue - wdts-transcripts-en + //textarea[@name="wdts[transcripts][en]"] This is a test transcript. assertValue - wdts-transcripts-de + //textarea[@name="wdts[transcripts][de]"] Dies ist ein Test transcript. - - click - link=Delete - - - - assertConfirmation - You are about to delete this post 'WDTS Test Post'
  'Cancel' to stop, 'OK' to delete. - - - - waitForPageToLoad - 30000 - - diff --git a/test/selenium/TestShortCodeButtons.html b/test/selenium/TestShortCodeButtons.html new file mode 100644 index 0000000..1ad7e0e --- /dev/null +++ b/test/selenium/TestShortCodeButtons.html @@ -0,0 +1,17 @@ + + + + + + +TestShortCodeButtons + + + + + + + +
TestShortCodeButtons
+ + diff --git a/test/selenium/TestSuiteWhatDidTheySay.html b/test/selenium/TestSuiteWhatDidTheySay.html index 30264dc..d157931 100644 --- a/test/selenium/TestSuiteWhatDidTheySay.html +++ b/test/selenium/TestSuiteWhatDidTheySay.html @@ -20,7 +20,9 @@ TestResetOptions TestRenameLanguage TestResetOptions +TestCreatePost TestMetaboxApprovedTranscriptEditing +TestDeletePost TestDeactivate