Skip to content

Commit

Permalink
Ignoring hanging tests for Marionette in Firefox nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Aug 3, 2016
1 parent 055325c commit 2992ce0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dotnet/test/common/ExecutingJavascriptTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,11 @@ public void ShouldBeAbleToPassInMoreThanOneArgument()
[Category("Javascript")]
public void ShouldBeAbleToGrabTheBodyOfFrameOnceSwitchedTo()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette hangs once this test finishes.");
}

driver.Url = richTextPage;

driver.SwitchTo().Frame("editFrame");
Expand Down
5 changes: 5 additions & 0 deletions dotnet/test/common/MiscTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public void ShouldReturnTitle()
[Test]
public void ShouldNotHaveProblemOpeningNonExistingPage()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette does not handle malformed URLs.");
}

driver.Url = "www.doesnotexist.comx";
Assert.Throws<NoSuchElementException>(() => { IWebElement e = driver.FindElement(By.Id("Bla")); });
}
Expand Down
20 changes: 20 additions & 0 deletions dotnet/test/common/TypingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,11 @@ public void GenerateKeyPressEventEvenWhenElementPreventsDefault()
[IgnoreBrowser(Browser.WindowsPhone, "Cannot type on contentEditable with synthetic events")]
public void TypingIntoAnIFrameWithContentEditableOrDesignModeSet()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette does not ContentEditable.");
}

driver.Url = richTextPage;

driver.SwitchTo().Frame("editFrame");
Expand All @@ -683,6 +688,11 @@ public void TypingIntoAnIFrameWithContentEditableOrDesignModeSet()
[IgnoreBrowser(Browser.WindowsPhone, "Cannot type on contentEditable with synthetic events")]
public void NonPrintableCharactersShouldWorkWithContentEditableOrDesignModeSet()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette does not ContentEditable.");
}

driver.Url = richTextPage;

// not tested on mac
Expand Down Expand Up @@ -731,6 +741,11 @@ public void ShouldBeAbleToTypeOnANumberInputField()
[IgnoreBrowser(Browser.WindowsPhone, "Cannot type on contentEditable with synthetic events")]
public void ShouldBeAbleToTypeIntoEmptyContentEditableElement()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette does not ContentEditable.");
}

driver.Url = readOnlyPage;
IWebElement editable = driver.FindElement(By.Id("content-editable"));

Expand All @@ -747,6 +762,11 @@ public void ShouldBeAbleToTypeIntoEmptyContentEditableElement()
[Test]
public void ShouldBeAbleToTypeIntoContentEditableElementWithExistingValue()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette does not ContentEditable.");
}

driver.Url = readOnlyPage;
IWebElement editable = driver.FindElement(By.Id("content-editable"));

Expand Down
10 changes: 10 additions & 0 deletions dotnet/test/common/UploadTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public void Teardown()
[IgnoreBrowser(Browser.WindowsPhone, "Does not yet support file uploads")]
public void ShouldAllowFileUploading()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette does not upload with upload element.");
}

driver.Url = uploadPage;
driver.FindElement(By.Id("upload")).SendKeys(testFile.FullName);
driver.FindElement(By.Id("go")).Submit();
Expand All @@ -46,6 +51,11 @@ public void ShouldAllowFileUploading()
//[IgnoreBrowser(Browser.IE, "Transparent file upload element not yet handled")]
public void ShouldAllowFileUploadingUsingTransparentUploadElement()
{
if (TestUtilities.IsMarionette(driver))
{
Assert.Ignore("Marionette does not upload with tranparent upload element.");
}

driver.Url = transparentUploadPage;
driver.FindElement(By.Id("upload")).SendKeys(testFile.FullName);
driver.FindElement(By.Id("go")).Submit();
Expand Down

0 comments on commit 2992ce0

Please sign in to comment.