serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
720 stars 519 forks source link

Serenity report can't show images in bige size #3303

Open jecardenasri01 opened 12 months ago

jecardenasri01 commented 12 months ago

What happened?

Hello experts Update my project to serenity gradle: 4.0.16 but now when

I click on the images to see them in large size, but it does not show me a large image

I want to see the bigger images

image

this is my build. gradle

`defaultTasks 'clean', 'test', 'aggregate'

repositories { mavenCentral() mavenLocal() } repositories { mavenLocal() mavenCentral() }

buildscript { repositories { mavenLocal() mavenCentral() }

dependencies {

    classpath "net.serenity-bdd:serenity-gradle-plugin:4.0.16"
}

}

apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: "net.serenity-bdd.serenity-gradle-plugin"

compileJava.options.encoding = "UTF-8" compileTestJava.options.encoding = "UTF-8"

sourceCompatibility = 11 targetCompatibility = 11

ext { // https://mvnrepository.com/artifact/net.serenity-bdd/serenity-cucumber serenity_version = '4.0.16' //https://mvnrepository.com/artifact/org.junit.platform/junit-platform-launcher junit_platform_launcher_version="1.10.0" junit_platform_suite_version="1.10.0"

// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine
junit_jupiter_engine_version="5.10.0"
junit_vintage_engine_version="5.10.0"

// https://mvnrepository.com/artifact/io.cucumber/cucumber-junit-platform-engine
cucumber_junit_platform_engine_version="7.14.0"

// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic/1.4.11
logback_classic_version="1.4.11"
// https://mvnrepository.com/artifact/org.assertj/assertj-core/3.24.2
assertj_core_version="3.24.2"

}

dependencies { dependencies { testImplementation "net.serenity-bdd:serenity-core:${serenity_version}" testImplementation "net.serenity-bdd:serenity-cucumber:${serenity_version}" testImplementation "net.serenity-bdd:serenity-screenplay:${serenity_version}" testImplementation "net.serenity-bdd:serenity-screenplay-webdriver:${serenity_version}" testImplementation "net.serenity-bdd:serenity-ensure:${serenity_version}" testImplementation "org.junit.platform:junit-platform-launcher:${junit_platform_launcher_version}" testImplementation "io.cucumber:cucumber-junit-platform-engine:${cucumber_junit_platform_engine_version}" testImplementation "org.junit.platform:junit-platform-suite:${junit_platform_suite_version}" testImplementation "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_engine_version}" testImplementation "org.junit.vintage:junit-vintage-engine:${junit_vintage_engine_version}" implementation "ch.qos.logback:logback-classic:${logback_classic_version}" testImplementation "org.assertj:assertj-core:${assertj_core_version}" } }

test { useJUnitPlatform() testLogging.showStandardStreams = true systemProperties System.getProperties() systemProperty "https.protocols", "TLSv1.2,TLSv1.3" }

serenity { reports = ["single-page-html"] }

gradle.startParameter.continueOnFailure = true

test.finalizedBy(aggregate)

`

What did you expect to happen?

I hope that when you click on an image of the report. The image is shown in large size.

Serenity BDD version

4.0.16

JDK version

17.0.8

Execution environment

No response

How to reproduce the bug.

https://github.com/jecardenasri01/serenity-screenplay-4.0.0-beta-3

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)

wakaleo commented 11 months ago

Have a look at the Javascript carousel component used in the screenshots, and maybe see if you can find an updated or improved version that has that feature.