From b5554d4c809a6fb7c34a7e8a97fc419bc4b68e16 Mon Sep 17 00:00:00 2001 From: iamkenos Date: Sat, 24 Aug 2024 06:44:35 +0800 Subject: [PATCH] test: ft fix in ci --- demo/test/cucumber.js | 3 ++- demo/test/features/i-mouse-actions/3-move-and-scroll.feature | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/demo/test/cucumber.js b/demo/test/cucumber.js index cad22ac..a4bbeeb 100644 --- a/demo/test/cucumber.js +++ b/demo/test/cucumber.js @@ -5,5 +5,6 @@ exports.default = configure({ timeout: 8000, parallel: 10, headless: true, - logLevel: 'info' + logLevel: 'info', + snapshots: { images: { maxDiffPixelRatio: 0.5 } } }); diff --git a/demo/test/features/i-mouse-actions/3-move-and-scroll.feature b/demo/test/features/i-mouse-actions/3-move-and-scroll.feature index 2063f73..6a3aee2 100644 --- a/demo/test/features/i-mouse-actions/3-move-and-scroll.feature +++ b/demo/test/features/i-mouse-actions/3-move-and-scroll.feature @@ -8,10 +8,10 @@ Feature: I. Mouse Actions - Move and scroll Scenario: S01: Show coordinates When I hover on the "#move-to" element - Then I expect the "#move-to-result" element text to be "X: 765 | Y: 2078" + Then I expect the "#move-to-result" element text to be "X: 763 | Y: 2078" But I hover on the "#move-to-result" element And I hover on the "#move-to" element with an offset of 5,10 - Then I expect the "#move-to-result" element text to not be "X: 765 | Y: 2078" + Then I expect the "#move-to-result" element text to not be "X: 763 | Y: 2078" Scenario: S02: Show element location When I scroll to the "#scroll-to" element