From e3e1bad9ad636b99c98eea592ce268bd827ad4bc Mon Sep 17 00:00:00 2001 From: wainstead Date: Thu, 20 Sep 2001 20:55:20 +0000 Subject: [PATCH] Three simple tests. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@574 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- tests/AAA_GetHomePage.inputs | 13 +++++++++++++ tests/AAB_EditSandBox.inputs | 27 +++++++++++++++++++++++++++ tests/AAC_MakeAutoTestPage.inputs | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 tests/AAA_GetHomePage.inputs create mode 100644 tests/AAB_EditSandBox.inputs create mode 100644 tests/AAC_MakeAutoTestPage.inputs diff --git a/tests/AAA_GetHomePage.inputs b/tests/AAA_GetHomePage.inputs new file mode 100644 index 000000000..0365b8000 --- /dev/null +++ b/tests/AAA_GetHomePage.inputs @@ -0,0 +1,13 @@ +# Ensure the home page comes up. +# $Id: AAA_GetHomePage.inputs,v 1.1 2001-09-20 20:55:20 wainstead Exp $ + +type: starting_page +start_url: http://127.0.0.1:8080/~swain/phpwiki/index.php +go + +# follow the edit text link +type: follow_link +follow_link: "Edit" +assert_url: HomePage +go + diff --git a/tests/AAB_EditSandBox.inputs b/tests/AAB_EditSandBox.inputs new file mode 100644 index 000000000..baed21d0b --- /dev/null +++ b/tests/AAB_EditSandBox.inputs @@ -0,0 +1,27 @@ +# This test is to follow an existing deal from the active_deals +# page, and verify form fields. +# $Id: AAB_EditSandBox.inputs,v 1.1 2001-09-20 20:55:20 wainstead Exp $ + +type: starting_page +start_url: http://127.0.0.1:8080/~swain/phpwiki/index.php +go + +# follow the SandBox link +type: follow_link +follow_link: "SandBox" +assert_title: Sand Box +go + +# get the edit page for SandBox +type: follow_link +follow_link: "Edit" +assert_url: SandBox +go + +# insert some text, yay +type: fill_and_submit_form +form_num: 0 +submitbutton_num: 1 +setparam: "content", "who are you? NewPageName!" +#assert_url: action +go diff --git a/tests/AAC_MakeAutoTestPage.inputs b/tests/AAC_MakeAutoTestPage.inputs new file mode 100644 index 000000000..4210c0671 --- /dev/null +++ b/tests/AAC_MakeAutoTestPage.inputs @@ -0,0 +1,20 @@ +# Go to a nonexistent page, create it. +# $Id: AAC_MakeAutoTestPage.inputs,v 1.1 2001-09-20 20:55:20 wainstead Exp $ + +type: starting_page +start_url: http://127.0.0.1:8080/~swain/phpwiki/index.php?AutoTest +go + +# follow the SandBox link +type: follow_link +follow_link: "Edit" +assert_title: Auto Test +go + +# insert some text, yay +type: fill_and_submit_form +form_num: 0 +submitbutton_num: 1 +setparam: "content", "this is the AutoTest page." +#assert_url: action +go -- 2.45.0