AboutUsBot Invoked from Redlink
aboutusbot redlinks - when you click a redlink or search for a page that doesn't exist yet, should invoke the bot and spider that domain, may depend on ability to completely obliterate a page from our database
Contents
Task
test will type in the search box:
- domain that does exist in AboutUs - verify that page comes up (wonder if earlier test of cannonical names should've typed in search box as well as location bar?)
- domain that has been deleted but has an edit history available to admins - verify that the bot spiders the site again - teardown deletes the site again - should we have a test domain for this so we're dealing with a real (test) website but one we don't care about?
- domain that does not exist in the database at all (this will be tricky because when we do this, the page will be created - maybe we need a test domain for this one as well) - assert that bot goes and spider's site - teardown will then be a complete obliteration from the database - I don't know how to do this yet
- domain that doesn't exist at all - assert that bot attempts to do it's thing but comes back empty
- put in item not existing that's not formatted like a domain, like homeberlin, search page comes up
- put in item not existing that's not formatted like a domain, like home.berlin (this currently fails b/c bot doesn't know what's a TLD and what's not, after the dot
next actions
- When success, this test works, but when failing, it doesn't fail, it times out. Need to rethink exactly what I'm testing.
- Once I get this working with #2, need to rethink what I'm testing for all the other cases, even the ones listed as done below.
waiting for others
done
- #1
- #4
- #5
- #6 (this test works, but unfortunately, that means the test fails b/c the bot doesn't know what a TLD is)
- get a test domain for #2 and &3
- figure out regular expression to see if need to delete during setup