Skip to content

Commit

Permalink
[Misc] Skip tests failing due to missing alert in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Jun 28, 2024
1 parent aaaa0bf commit 0c634cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
import java.util.List;
import java.util.Locale;

import org.apache.commons.lang.StringUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -243,6 +245,10 @@ private void testToolBarButton(TestUtils setup, TestReference reference, String
@Order(6)
public void saveAndFormManipulation(TestUtils setup, TestReference reference)
{
Assumptions.assumeFalse(StringUtils.equalsIgnoreCase("firefox",
setup.getDriver().getCapabilities().getBrowserName()),
"Alert handling in Firefox currently isn't working, see also https://jira.xwiki.org/browse/XWIKI-22282");

setup.deletePage(reference);
ViewPage viewPage = setup.gotoPage(reference);
WikiEditPage editWiki = viewPage.editWiki();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import java.util.Arrays;
import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -81,6 +83,10 @@ public void setup(TestUtils setup)
@Order(1)
void preventUsersToLeaveTheEditorWithoutSaving(TestUtils testUtils, TestReference testReference)
{
Assumptions.assumeFalse(StringUtils.equalsIgnoreCase("firefox",
testUtils.getDriver().getCapabilities().getBrowserName()),
"Alert handling in Firefox currently isn't working, see also https://jira.xwiki.org/browse/XWIKI-22282");

// fixture
testUtils.deletePage(testReference);
testUtils.createPage(testReference, "Some content");
Expand Down

0 comments on commit 0c634cd

Please sign in to comment.