diff --git a/allure-selenide/README.md b/allure-selenide/README.md index b3f5f59e8..a4cc1c454 100644 --- a/allure-selenide/README.md +++ b/allure-selenide/README.md @@ -8,7 +8,7 @@ Use this module when your UI tests use Selenide and you want Selenide actions, s - Allure Java 3.x requires Java 17 or newer. - This module targets Selenide 7.x. -- The current build validates against Selenide 7.16.2. +- The current build validates against Selenide 7.17.0. ## Installation diff --git a/allure-selenide/build.gradle.kts b/allure-selenide/build.gradle.kts index 82e88c99a..8d26bbbfe 100644 --- a/allure-selenide/build.gradle.kts +++ b/allure-selenide/build.gradle.kts @@ -1,6 +1,6 @@ description = "Allure Selenide Integration" -val selenideVersion = "7.16.2" +val selenideVersion = "7.17.0" dependencies { api(project(":allure-java-commons")) diff --git a/allure-selenide/src/main/java/io/qameta/allure/selenide/LogType.java b/allure-selenide/src/main/java/io/qameta/allure/selenide/LogType.java index e4e7824d9..808bfa466 100644 --- a/allure-selenide/src/main/java/io/qameta/allure/selenide/LogType.java +++ b/allure-selenide/src/main/java/io/qameta/allure/selenide/LogType.java @@ -29,7 +29,7 @@ public enum LogType { /** * This log type pertains to logs from the client. */ - CLIENT(org.openqa.selenium.logging.LogType.CLIENT), + CLIENT("client"), /** * This log pertains to logs from the WebDriver implementation. @@ -44,12 +44,12 @@ public enum LogType { /** * This log type pertains to logs relating to performance timings. */ - PROFILER(org.openqa.selenium.logging.LogType.PROFILER), + PROFILER("profiler"), /** * This log type pertains to logs from the remote server. */ - SERVER(org.openqa.selenium.logging.LogType.SERVER); + SERVER("server"); private final String logType; diff --git a/allure-selenide/src/test/java/io/qameta/allure/selenide/LogTypeTest.java b/allure-selenide/src/test/java/io/qameta/allure/selenide/LogTypeTest.java new file mode 100644 index 000000000..a089af03f --- /dev/null +++ b/allure-selenide/src/test/java/io/qameta/allure/selenide/LogTypeTest.java @@ -0,0 +1,30 @@ +/* + * Copyright 2016-2026 Qameta Software Inc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.qameta.allure.selenide; + +import org.junit.jupiter.api.Test; + +import static org.assertj.core.api.Assertions.assertThat; + +class LogTypeTest { + + @Test + void shouldPreserveLegacySeleniumLogTypeNames() { + assertThat(LogType.CLIENT).hasToString("client"); + assertThat(LogType.PROFILER).hasToString("profiler"); + assertThat(LogType.SERVER).hasToString("server"); + } +}