Closed Bug 505609 Opened 15 years ago Closed 15 years ago

[mozmill] Test for checking the Unknown Issuer error page appears

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: u279076)

Details

Attachments

(1 file, 1 obsolete file)

This is a placeholder bug for creating a test script for https://litmus.mozilla.org/show_test.cgi?id=6871 - Confirm Explanatory Text for Secure Connection Failed (Unknown Issuer)
Attached patch Initial patch (obsolete) — Splinter Review
Attachment #389833 - Flags: review?(hskupin)
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Comment on attachment 389833 [details] [diff] [review]
Initial patch

>+ * for the specific language governing rights and limitations under the
>+ * License.
>+ *
>+ * The Initial Developer of the Original Code is Mozilla Corporation.
>+ * Portions created by the Initial Developer are Copyright (C) 2009
>+ * the Initial Developer. All Rights Reserved.

As in the other test the license text misses the Mozmill Code part.

>+var teardownModule = function(module) {
>+  UtilsAPI.closeAllTabs(controller);
>+}

This function is not needed.

>+  // Verify the link in Technical Details is correct
>+  var link = new elementslib.ID(controller.tabs.activeTab, "cert_domain_link");
>+  controller.waitForElement(link);
>+  controller.assertNode(link);

When you are using waitForElement we don't need an assertNode afterwards. waitForElement will already assert if the element is not present in the given time range.

>+  if (link.getNode().textContent != "secure.mur.at") {  
>+    throw "Site link is invalid!";
>+  }

Can you please use assertProperty?

>+  // Verify the error code is correct
>+  var text = new elementslib.ID(controller.tabs.activeTab, "technicalContentText");
>+  controller.waitForElement(text);
>+  controller.assertNode(text);

assertNode can also be removed here.


We could also check for "mur.at uses an invalid security certificate." We can use the available properties to build the string:

http://mxr.mozilla.org/mozilla-central/source/security/manager/locales/en-US/chrome/pipnss/pipnss.properties#343
Attachment #389833 - Flags: review?(hskupin) → review-
Attached patch Rev1Splinter Review
Attachment #389833 - Attachment is obsolete: true
Attachment #391385 - Flags: review?
Attachment #391385 - Flags: review? → review?(hskupin)
I made all revisions except for the following:

> We could also check for "mur.at uses an invalid security certificate." We can
> use the available properties to build the string:
>
> http://mxr.mozilla.org/mozilla-central/source/security/manager/locales/en-US
> /chrome/pipnss/pipnss.properties#343

I didn't implement this as the error code is contained in the same element "technicalContentText".  I think checking for the error code, get me out of here button, add exception button, and reported domain suffices.
Comment on attachment 391385 [details] [diff] [review]
Rev1

I only changed two small things. The UtilsAPI is not necessary and the waitForPageLoad should have a timeout of 2000ms.
Attachment #391385 - Flags: review?(hskupin) → review+
Checked in as http://hg.mozilla.org/qa/mozmill-tests/rev/ade35576ee0b
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Mass move of Mozmill Test related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Component: Security → Mozmill Tests
Product: Firefox → Mozilla QA
QA Contact: firefox → mozmill-tests
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: