Skip to content

Commit

Permalink
tests: Update baseline images
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy committed May 22, 2024
1 parent 0a104d1 commit d7e2539
Show file tree
Hide file tree
Showing 38 changed files with 26 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ Test Setup Test Setup

*** Test Cases ***

Set image as main geokret avatar
First image is set as main geokret avatar
[Tags] OpenEyes
Open Eyes Browser 5

Post GeoKret Avatar ${CURDIR}/../../ressources/pictures/sample-picture.png
Click Picture Action ${GEOKRET_DETAILS_AVATAR_FIRST_IMAGE} ${PICTURE_PULLER_SET_AS_AVATAR_BUTTON}

Wait Until Modal Do you want to set this picture as main avatar?
Capture Element ${MODAL_DIALOG} name=img1
Click Button ${MODAL_DIALOG_SUBMIT_BUTTON}
Wait Until Page Contains Element ${GEOKRET_DETAILS_AVATAR_FIRST_IMAGE}${PICTURE_PULLER}
Scroll Into View ${GEOKRET_DETAILS_AVATAR_FIRST_IMAGE}${PICTURE_PULLER}
Mouse Over ${GEOKRET_DETAILS_AVATAR_FIRST_IMAGE}${PICTURE_PULLER}

Page Should Not Contain Button ${PICTURE_PULLER_SET_AS_AVATAR_BUTTON}
Capture Element ${GEOKRET_DETAILS_AVATAR_IMAGES} name=img2

Compare Images
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Test Setup Test Setup
*** Test Cases ***

Define GeoKret avatar caption
[Tags] OpenEyes
Click Picture Action ${GEOKRET_DETAILS_AVATAR_FIRST_IMAGE} ${PICTURE_PULLER_EDIT_BUTTON}
Wait Until Modal Manage picture
Input Text ${CAPTION_INPUT} Bonjour
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Delete 1 GeoKret avatar should leave others present
Page Should Contain Element ${GEOKRET_DETAILS_AVATAR_IMAGES}

Element Count Should Be ${GEOKRET_DETAILS_AVATAR_IMAGES_ALL} ${1}
Check Image ${GEOKRET_DETAILS_PICTURES_PANEL}
Check Image ${GEOKRET_DETAILS_PICTURES_PANEL}//div[@class="gallery"]

*** Keywords ***

Expand Down
21 changes: 11 additions & 10 deletions tests-qa/acceptance/040_Users/Avatar/030_DefineAsMain.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ Test Setup Test Setup

*** Test Cases ***

Set image as main avatar
First uploaded image is set as main avatar
[Tags] OpenEyes
Open Eyes Browser 5

Post User Avatar ${CURDIR}/../../ressources/pictures/sample-picture.png
Click Picture Action ${USER_PROFILE_FIRST_IMAGE} ${PICTURE_PULLER_SET_AS_AVATAR_BUTTON}
# Post User Avatar ${CURDIR}/../../ressources/pictures/sample-picture.png
Post User Avatar ${CURDIR}/../../ressources/pictures/sample-picture.png position=1
Post User Avatar ${CURDIR}/../../ressources/pictures/sample-picture2.png position=2

Wait Until Modal Do you want to set this picture as main avatar?
Capture Element ${MODAL_DIALOG} name=img1
Click Button ${MODAL_DIALOG_SUBMIT_BUTTON}
Scroll Into View ${USER_PROFILE_AVATAR_GALLERY}
Capture Element ${USER_PROFILE_AVATAR_GALLERY} name=img2
Wait Until Page Contains Element ${USER_PROFILE_FIRST_IMAGE}${PICTURE_PULLER}
Scroll Into View ${USER_PROFILE_FIRST_IMAGE}${PICTURE_PULLER}
Mouse Over ${USER_PROFILE_FIRST_IMAGE}${PICTURE_PULLER}
Page Should Not Contain Button ${USER_PROFILE_FIRST_IMAGE}${PICTURE_PULLER}${PICTURE_PULLER_SET_AS_AVATAR_BUTTON}

Compare Images
Check Image ${USER_PROFILE_PICTURES_PANEL}//div[@class="gallery"]

Set second image as main avatar
Post User Avatar ${CURDIR}/../../ressources/pictures/sample-picture.png position=1
Expand All @@ -29,7 +30,7 @@ Set second image as main avatar
Click Picture Action ${USER_PROFILE_SECOND_IMAGE} ${PICTURE_PULLER_SET_AS_AVATAR_BUTTON}
Wait Until Modal Do you want to set this picture as main avatar?
Click Button ${MODAL_DIALOG_SUBMIT_BUTTON}
Check Image ${USER_PROFILE_PICTURES_PANEL}
Check Image ${USER_PROFILE_PICTURES_PANEL}//div[@class="gallery"]

*** Keywords ***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Test Setup Test Setup
*** Test Cases ***

Define User Avatar Caption
[Tags] OpenEyes
Click Picture Action ${USER_PROFILE_FIRST_IMAGE} ${PICTURE_PULLER_EDIT_BUTTON}
Wait Until Modal Manage picture
Input Text ${CAPTION_INPUT} Bonjour
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Delete 1 picture should leave other present
Page Should Contain Element ${USER_PROFILE_IMAGES}

Element Count Should Be ${USER_PROFILE_IMAGES} 1
Check Image ${USER_PROFILE_PICTURES_PANEL}
Check Image ${USER_PROFILE_PICTURES_PANEL}//div[@class="gallery"]

*** Keywords ***

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Suite Setup
Clear Database And Seed ${2} users

Select banner
[Tags] OpenEyes
[Arguments] ${templateId}
Sign In ${USER_1.name} Fast
Go To Url ${PAGE_USER_1_BANER_TEMPLATE_URL}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Check invalid coordinates
${SPACE}

Save Observation Area Preferences
[Tags] OpenEyes
Sign In ${USER_1.name} Fast
Go To Url ${PAGE_USER_1_OBSERVATION_AREA_URL}
Fill form ${COORDS_NEW_YORK} 10
Expand Down Expand Up @@ -156,6 +157,7 @@ Check valid radius


Check Map circle should reflect observation
[Tags] OpenEyes
[Arguments] ${radius}
Sign In ${USER_1.name} Fast
Go To Url ${PAGE_USER_1_OBSERVATION_AREA_URL}
Expand Down
1 change: 1 addition & 0 deletions tests-qa/acceptance/ressources/Pictures.robot
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ ${USER_PROFILE_AVATAR_GALLERY} ${USER_PROFILE_DETAILS_PANEL}//d
*** Keywords ***

Check Image
[Tags] OpenEyes
[Arguments] ${element} ${name}=img1
Open Eyes Browser 5
Scroll Into View ${GK_LOGO_LINK}
Expand Down
Binary file modified tests-qa/visual_images/Define_GeoKret_avatar_caption/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests-qa/visual_images/Define_GeoKret_avatar_caption/img2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests-qa/visual_images/Define_GeoKret_avatar_caption/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests-qa/visual_images/Define_User_Avatar_Caption/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests-qa/visual_images/Define_User_Avatar_Caption/img2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests-qa/visual_images/Define_User_Avatar_Caption/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests-qa/visual_images/Delete_GeoKret_avatar_picture/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests-qa/visual_images/Delete_User_avatar_picture/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file modified tests-qa/visual_images/Set_second_image_as_main_avatar/img1.png

0 comments on commit d7e2539

Please sign in to comment.