From 4c5da8e3c732c0c3078426cd7a279c9d685cdc11 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 14 Jan 2025 13:57:15 +0200 Subject: [PATCH] Correct the broken "testThatRightClickingCannotBeUsedInUnsupportedSelenium" test --- tests/Custom/SeleniumSupportTest.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/Custom/SeleniumSupportTest.php b/tests/Custom/SeleniumSupportTest.php index deb86a94..f2cbb355 100644 --- a/tests/Custom/SeleniumSupportTest.php +++ b/tests/Custom/SeleniumSupportTest.php @@ -27,8 +27,15 @@ public function testThatRightClickingCannotBeUsedInUnsupportedSelenium(): void } $this->expectException(DriverException::class); - $this->expectExceptionMessage('This driver requires Selenium version 3 or lower'); + $this->expectExceptionMessage(<<createDriver()->rightClick('//'); + $driver = $this->createDriver(); + $driver->start(); + $driver->rightClick('//'); } }