Skip to content

Commit 9acbfce

Browse files
committed
1 parent cb6ff29 commit 9acbfce

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

java/test/org/openqa/selenium/devtools/ConsoleEventsTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
package org.openqa.selenium.devtools;
1919

20-
import static org.assertj.core.api.Assertions.assertThat;
21-
2220
import org.junit.jupiter.api.Test;
2321
import org.openqa.selenium.By;
2422
import org.openqa.selenium.devtools.events.ConsoleEvent;
@@ -32,9 +30,13 @@
3230
import java.util.concurrent.TimeUnit;
3331
import java.util.concurrent.TimeoutException;
3432

33+
import static org.assertj.core.api.Assertions.assertThat;
34+
import static org.openqa.selenium.testing.drivers.Browser.FIREFOX;
35+
3536
class ConsoleEventsTest extends DevToolsTestBase {
3637

3738
@Test
39+
@Ignore(value = FIREFOX, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1819965")
3840
public void canWatchConsoleEvents() throws InterruptedException, ExecutionException, TimeoutException {
3941
String page = appServer.create(
4042
new Page()
@@ -52,6 +54,7 @@ public void canWatchConsoleEvents() throws InterruptedException, ExecutionExcept
5254
}
5355

5456
@Test
57+
@Ignore(value = FIREFOX, reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1819965")
5558
public void canWatchConsoleEventsWithArgs() throws InterruptedException, ExecutionException, TimeoutException {
5659
String page = appServer.create(
5760
new Page()

py/test/selenium/webdriver/common/bidi_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
from selenium.webdriver.support.ui import WebDriverWait
2424

2525

26+
@pytest.mark.xfail_firefox(reason="https://bugzilla.mozilla.org/show_bug.cgi?id=1819965")
27+
@pytest.mark.xfail_remote(reason="https://bugzilla.mozilla.org/show_bug.cgi?id=1819965")
2628
@pytest.mark.xfail_safari
2729
async def test_check_console_messages(driver, pages):
2830
async with driver.bidi_connection() as session:
@@ -35,6 +37,8 @@ async def test_check_console_messages(driver, pages):
3537
assert messages["message"] == "I love cheese"
3638

3739

40+
@pytest.mark.xfail_firefox(reason="https://bugzilla.mozilla.org/show_bug.cgi?id=1819965")
41+
@pytest.mark.xfail_remote(reason="https://bugzilla.mozilla.org/show_bug.cgi?id=1819965")
3842
@pytest.mark.xfail_safari
3943
async def test_check_error_console_messages(driver, pages):
4044
async with driver.bidi_connection() as session:

rb/spec/integration/selenium/webdriver/devtools_spec.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ module WebDriver
2929
expect(driver.title).to eq('XHTML Test Page')
3030
end
3131

32-
it 'supports events' do
32+
it 'supports events', except: {browser: :firefox,
33+
reason: 'https://bugzilla.mozilla.org/show_bug.cgi?id=1819965'} do
3334
expect { |block|
3435
driver.devtools.page.enable
3536
driver.devtools.page.on(:load_event_fired, &block)
@@ -38,7 +39,8 @@ module WebDriver
3839
}.to yield_control
3940
end
4041

41-
it 'propagates errors in events' do
42+
it 'propagates errors in events', except: {browser: :firefox,
43+
reason: 'https://bugzilla.mozilla.org/show_bug.cgi?id=1819965'} do
4244
expect {
4345
driver.devtools.page.enable
4446
driver.devtools.page.on(:load_event_fired) { raise 'This is fine!' }
@@ -71,7 +73,8 @@ module WebDriver
7173
end
7274
end
7375

74-
it 'notifies about log messages' do
76+
it 'notifies about log messages', except: {browser: :firefox,
77+
reason: 'https://bugzilla.mozilla.org/show_bug.cgi?id=1819965'} do
7578
logs = []
7679
driver.on_log_event(:console) { |log| logs.push(log) }
7780
driver.navigate.to url_for('javascriptPage.html')
@@ -109,8 +112,8 @@ module WebDriver
109112
)
110113
end
111114

112-
it 'notifies about document log messages', only: {browser: :firefox,
113-
reason: 'Firefox & Chrome parse document differently'} do
115+
it 'notifies about document log messages', except: {browser: %i[chrome edge firefox],
116+
reason: 'https://bugzilla.mozilla.org/show_bug.cgi?id=1819965'} do
114117
logs = []
115118
driver.on_log_event(:console) { |log| logs.push(log) }
116119
driver.navigate.to url_for('javascriptPage.html')
@@ -123,7 +126,8 @@ module WebDriver
123126
)
124127
end
125128

126-
it 'notifies about exceptions' do
129+
it 'notifies about exceptions', except: {browser: :firefox,
130+
reason: 'https://bugzilla.mozilla.org/show_bug.cgi?id=1819965'} do
127131
exceptions = []
128132
driver.on_log_event(:exception) { |exception| exceptions.push(exception) }
129133
driver.navigate.to url_for('javascriptPage.html')

0 commit comments

Comments
 (0)