diff --git a/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-title-app-title-half.png b/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-title-app-title-half.png new file mode 100644 index 00000000..05388ad2 --- /dev/null +++ b/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-title-app-title-half.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bea8c23c44067e14ec1c2ae02957743b994ce7b5f6880c7af26b8507e1422b7 +size 3486 diff --git a/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-title-app-title.png b/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-title-app-title.png index 05388ad2..75bf259e 100644 --- a/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-title-app-title.png +++ b/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-title-app-title.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0bea8c23c44067e14ec1c2ae02957743b994ce7b5f6880c7af26b8507e1422b7 -size 3486 +oid sha256:0b43fa000d4ff69f990753cd2ded974d3f83996e9ab1c8b8a5977aa54d5dfe1c +size 3750 diff --git a/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/fractional_scale_v1.robot b/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/fractional_scale_v1.robot index c2fd5ff1..63cb7620 100644 --- a/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/fractional_scale_v1.robot +++ b/mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/fractional_scale_v1.robot @@ -3,20 +3,25 @@ Resource ${KVM_RESOURCE} Test Setup Set Output Scale ${SCALE} + *** Variables *** -${T} ${CURDIR} -${FLOATING-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-floating.png -${MAXIMIZED-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-maximized.png -${DEMO-APP-TITLE} ${T}/${SCALE}-gtk4-demo-title-app-title.png -${BUILDER-BUTTON} ${T}/${SCALE}-gtk4-demo-button-builder.png -${BUILDER-TITLE} ${T}/${SCALE}-gtk4-demo-title-builder.png +${T} ${CURDIR} +${FLOATING-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-floating.png +${MAXIMIZED-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-maximized.png +${DEMO-APP-TITLE} ${T}/${SCALE}-gtk4-demo-title-app-title.png +${DEMO-APP-TITLE-HALF} ${T}/${SCALE}-gtk4-demo-title-app-title-half.png +${BUILDER-BUTTON} ${T}/${SCALE}-gtk4-demo-button-builder.png +${BUILDER-TITLE} ${T}/${SCALE}-gtk4-demo-title-builder.png + *** Test Cases *** Ensure Scaling Is Visually Correct Move Pointer To Proportional (1.0, 1.0) Match ${FLOATING-SCREENSHOT} - Walk Pointer To ${DEMO-APP-TITLE} + ${aligned}= Run Keyword And Return Status + ... Walk Pointer To ${DEMO-APP-TITLE} + IF ${aligned} == False Walk Pointer To ${DEMO-APP-TITLE-HALF} Click LEFT Button Click LEFT Button Move Pointer To Proportional (1.0, 1.0) @@ -29,7 +34,9 @@ Ensure Scaling Is Visually Correct Click Button With Fractional Scaling Enabled Move Pointer To Proportional (1.0, 1.0) - Walk Pointer To ${DEMO-APP-TITLE} + ${aligned}= Run Keyword And Return Status + ... Walk Pointer To ${DEMO-APP-TITLE} + IF ${aligned} == False Walk Pointer To ${DEMO-APP-TITLE-HALF} Click LEFT Button Click LEFT Button