-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/watermark overflow and issue 654 (#655)
* fix #654 escape jquery selector * regression test for #654 * add no notification assertion function * move obvious screenshots * preetttier things * fix ts inclusion error * test file by file to debug * embed new data is not that far , 151 days * fix more tests * fix mouse coordinate tests * test different files * fix movie screenshots * more easing on the tests * 2 shards * remove 60 sec timeout * test normal views * use only 1 shard to help reporting * remove time limitation * more default screenshots * focus on image_layer tests * - Fix show header tests - Fix previous next image controls tests - Add new test handles missing tests due to data change * preetier * remove only * an attempt to fix all screenshots of screenshot taking tests * add broken file for firefox * ci focus on just screenshot tests * fix further images * remove unnec file * further fixing images * go fulltest again * first batch of images to fix form_controls * focus on form controls * fix more form-controls * focus to urlsharing * ignore damn firefox now for sharedurl test * issue 647 snapshots * focus on regression issue647 * preetier * damn firefox snapshot for issue647 * notifications now can be matched with regexp * an attempt to fix issue 654 tests with new data * focus on issue 654 * wait notification to load issue654 * wait even more to notification become visible * damn preetier * an attempt to fix mobile screenshots * fix mobile-safari screenshot * fix one last time this test * retry 2 times * mobile safari sdo-soho image * an attempt to fix this flaky test * set screenshot after test fix * focus on hello_mobile test * focus on mouse coordinates * try two times, there shouldn't be anybug * go fast mode again * focus on failing test * increase mismatch ratio for failing image * all in tests again * shard number is 5 * an attempt to fix jump with date range tests * go full test again * focus on last failed test * fix last bit of tests and go full test again * preetier
- Loading branch information
Showing
71 changed files
with
170 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-34 KB
(91%)
...lioviewer.spec.ts-snapshots/Displays-initial-AIA-304-Image-1-chromium-linux.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
BIN
-34.2 KB
(91%)
...o_helioviewer.spec.ts-snapshots/Displays-initial-AIA-304-Image-1-edge-linux.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
BIN
+323 Bytes
(100%)
...elioviewer.spec.ts-snapshots/Displays-initial-AIA-304-Image-1-firefox-linux.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
BIN
+7.43 KB
(100%)
...helioviewer.spec.ts-snapshots/Displays-initial-AIA-304-Image-1-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ test("Image headers dialog box should show layer image headers, also it should s | |
["ACS_MODE", "SCIENCE"], | ||
["ACS_SAFE", "NO"], | ||
["ACS_SUNP", "YES"], | ||
["AECDELAY", "1534"], | ||
["AECDELAY", "1537"], | ||
["AECMODE", "ON"] | ||
]); | ||
|
||
|
@@ -78,7 +78,7 @@ test("Image headers dialog box should show layer image headers, also it should s | |
["HV_HVS_DETAILS_FILENAME_VERSION", "5.0"], | ||
[ | ||
"HV_COMMENT", | ||
"JP2 file created locally at Lockheed LMSAL using hv_aia_list2jp2_gs2 at Tue Jun 1 14:07:45 2021. Contact Helioviewer LMSAL Franchise ([email protected]) for more details/questions/comments regarding this JP2 file. HVS (Helioviewer setup) file used to create this JP2 file: hvs_version5.pro (version 5.0). FITS to JP2 source code provided by ESA/NASA Helioviewer Project [contact the Helioviewer Project at [email protected]][NASA-GSFC] and is available for download at https://launchpad.net/jp2gen. Please contact the source code providers if you suspect an error in the source code. Full source code for the entire Helioviewer Project can be found at https://launchpad.net/helioviewer." | ||
"JP2 file created locally at Lockheed LMSAL using hv_aia_list2jp2_gs2 at Wed Jan 1 14:36:54 2025. Contact Helioviewer LMSAL Franchise ([email protected]) for more details/questions/comments regarding this JP2 file. HVS (Helioviewer setup) file used to create this JP2 file: hvs_version5.pro (version 5.0). FITS to JP2 source code provided by ESA/NASA Helioviewer Project [contact the Helioviewer Project at [email protected]][NASA-GSFC] and is available for download at https://launchpad.net/jp2gen. Please contact the source code providers if you suspect an error in the source code. Full source code for the entire Helioviewer Project can be found at https://launchpad.net/helioviewer." | ||
] | ||
]); | ||
|
||
|
@@ -89,7 +89,7 @@ test("Image headers dialog box should show layer image headers, also it should s | |
await imageHeaderDialog.assertImageHeaders([ | ||
[ | ||
"HV_COMMENT", | ||
"JP2 file created locally at Lockheed LMSAL using hv_aia_list2jp2_gs2 at Tue Jun 1 14:07:45 2021. Contact Helioviewer LMSAL Franchise ([email protected]) for more details/questions/comments regarding this JP2 file. HVS (Helioviewer setup) file used to create this JP2 file: hvs_version5.pro (version 5.0). FITS to JP2 source code provided by ESA/NASA Helioviewer Project [contact the Helioviewer Project at [email protected]][NASA-GSFC] and is available for download at https://launchpad.net/jp2gen. Please contact the source code providers if you suspect an error in the source code. Full source code for the entire Helioviewer Project can be found at https://launchpad.net/helioviewer." | ||
"JP2 file created locally at Lockheed LMSAL using hv_aia_list2jp2_gs2 at Wed Jan 1 14:36:54 2025. Contact Helioviewer LMSAL Franchise ([email protected]) for more details/questions/comments regarding this JP2 file. HVS (Helioviewer setup) file used to create this JP2 file: hvs_version5.pro (version 5.0). FITS to JP2 source code provided by ESA/NASA Helioviewer Project [contact the Helioviewer Project at [email protected]][NASA-GSFC] and is available for download at https://launchpad.net/jp2gen. Please contact the source code providers if you suspect an error in the source code. Full source code for the entire Helioviewer Project can be found at https://launchpad.net/helioviewer." | ||
], | ||
["HV_HVS_DETAILS_FILENAME", "hvs_version5.pro"], | ||
["HV_HVS_DETAILS_FILENAME_VERSION", "5.0"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-12.7 KB
(96%)
...rmal/movie/form_controls.spec.ts-snapshots/movie-form-drawer-chromium-linux.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
BIN
-12.7 KB
(96%)
...p/normal/movie/form_controls.spec.ts-snapshots/movie-form-drawer-edge-linux.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
BIN
+2.77 KB
(100%)
...ormal/movie/form_controls.spec.ts-snapshots/movie-form-drawer-firefox-linux.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
BIN
+52 KB
(110%)
...normal/movie/form_controls.spec.ts-snapshots/movie-form-drawer-webkit-linux.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
BIN
-10.8 KB
(96%)
...rmal/movie/form_controls.spec.ts-snapshots/movie-list-drawer-chromium-linux.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
BIN
-10.8 KB
(96%)
...p/normal/movie/form_controls.spec.ts-snapshots/movie-list-drawer-edge-linux.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
BIN
+1.53 KB
(100%)
...ormal/movie/form_controls.spec.ts-snapshots/movie-list-drawer-firefox-linux.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
BIN
+49.3 KB
(110%)
...normal/movie/form_controls.spec.ts-snapshots/movie-list-drawer-webkit-linux.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
BIN
-11.4 KB
(96%)
...normal/movie/form_controls.spec.ts-snapshots/movie-no-drawer-chromium-linux.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
BIN
-11.4 KB
(96%)
...top/normal/movie/form_controls.spec.ts-snapshots/movie-no-drawer-edge-linux.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
BIN
+1.96 KB
(100%)
.../normal/movie/form_controls.spec.ts-snapshots/movie-no-drawer-firefox-linux.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
BIN
+47.5 KB
(110%)
...p/normal/movie/form_controls.spec.ts-snapshots/movie-no-drawer-webkit-linux.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
BIN
-10.4 KB
(96%)
...ovie/form_controls.spec.ts-snapshots/partial-movie-selection-chromium-linux.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
BIN
-10.4 KB
(96%)
...al/movie/form_controls.spec.ts-snapshots/partial-movie-selection-edge-linux.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
BIN
+2.75 KB
(100%)
...movie/form_controls.spec.ts-snapshots/partial-movie-selection-firefox-linux.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
BIN
+39.1 KB
(110%)
.../movie/form_controls.spec.ts-snapshots/partial-movie-selection-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+2 KB
(100%)
...gression/issue_647.spec.ts-snapshots/movie-player-screenshot-chromium-linux.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
BIN
+1.94 KB
(100%)
...l/regression/issue_647.spec.ts-snapshots/movie-player-screenshot-edge-linux.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
BIN
+1.32 KB
(100%)
...egression/issue_647.spec.ts-snapshots/movie-player-screenshot-firefox-linux.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
BIN
+112 Bytes
(100%)
...regression/issue_647.spec.ts-snapshots/movie-player-screenshot-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import { Helioviewer } from "../../../page_objects/helioviewer"; | ||
import * as fs from "fs"; | ||
|
||
import * as https from "https"; | ||
|
||
/** | ||
* This test is a regression test for proving issue 654 is fixed for the given helioviewer | ||
* @see https://github.com/Helioviewer-Project/helioviewer.org/issues/654 | ||
*/ | ||
test("Issue 654, Hinode XRT selection creates notification can not be closed", async ({ page, browser }, info) => { | ||
// load helioviewer | ||
let hv = new Helioviewer(page, info); | ||
|
||
// // Action 1 : BROWSE TO HELIOVIEWER | ||
await hv.Load(); | ||
await hv.WaitForLoadingComplete(); | ||
await hv.CloseAllNotifications(); | ||
|
||
// // Action 2 : Open left sources panel | ||
await hv.OpenSidebar(); | ||
|
||
const layer = await hv.getImageLayer(0); | ||
await layer.set("Observatory:", "Hinode"); | ||
await hv.WaitForLoadingComplete(); | ||
|
||
await page.waitForTimeout(3000); | ||
|
||
// Observation time should be is far , notification should be visible | ||
await hv.assertNotification("warn", /The XRT Al_poly\/Open layer is \d+ days away from your observation time./); | ||
|
||
// Action 5: Close notification if you can achive | ||
await page.locator(".jGrowl-close").first().click(); | ||
|
||
// Action 6: Assert we could be able to close the notification | ||
await hv.assertNoNotification(); | ||
}); |
Binary file modified
BIN
+21.9 KB
(100%)
...l/screenshot.spec.ts-snapshots/first-screenshot-created-Mobile-Chrome-linux.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
BIN
-11 KB
(96%)
...normal/screenshot.spec.ts-snapshots/first-screenshot-created-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-11 KB
(96%)
...top/normal/screenshot.spec.ts-snapshots/first-screenshot-created-edge-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.71 KB
(100%)
.../normal/screenshot.spec.ts-snapshots/first-screenshot-created-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+7.4 KB
(100%)
...screenshot.spec.ts-snapshots/screenshot-drawer-disabled-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4.24 KB
(100%)
...screenshot.spec.ts-snapshots/screenshot-drawer-disabled-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
-11.4 KB
(96%)
...rmal/screenshot.spec.ts-snapshots/screenshot-drawer-disabled-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-11.4 KB
(96%)
...p/normal/screenshot.spec.ts-snapshots/screenshot-drawer-disabled-edge-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.96 KB
(100%)
...ormal/screenshot.spec.ts-snapshots/screenshot-drawer-disabled-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+47.5 KB
(110%)
...normal/screenshot.spec.ts-snapshots/screenshot-drawer-disabled-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+22.2 KB
(100%)
.../screenshot.spec.ts-snapshots/screenshot-drawer-enabled-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+21.9 KB
(100%)
.../screenshot.spec.ts-snapshots/screenshot-drawer-enabled-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
-10.9 KB
(96%)
...ormal/screenshot.spec.ts-snapshots/screenshot-drawer-enabled-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-10.9 KB
(96%)
...op/normal/screenshot.spec.ts-snapshots/screenshot-drawer-enabled-edge-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.59 KB
(100%)
...normal/screenshot.spec.ts-snapshots/screenshot-drawer-enabled-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+48.8 KB
(110%)
.../normal/screenshot.spec.ts-snapshots/screenshot-drawer-enabled-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+21.5 KB
(100%)
.../screenshot.spec.ts-snapshots/second-screenshot-created-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-11.5 KB
(96%)
...ormal/screenshot.spec.ts-snapshots/second-screenshot-created-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-11.5 KB
(96%)
...op/normal/screenshot.spec.ts-snapshots/second-screenshot-created-edge-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.69 KB
(100%)
...normal/screenshot.spec.ts-snapshots/second-screenshot-created-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+17.7 KB
(100%)
...rmal/screenshot.spec.ts-snapshots/view-first-screenshot-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-7.73 KB
(97%)
...op/normal/screenshot.spec.ts-snapshots/view-first-screenshot-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-7.73 KB
(97%)
...esktop/normal/screenshot.spec.ts-snapshots/view-first-screenshot-edge-linux.png
Oops, something went wrong.
Binary file modified
BIN
+31 KB
(110%)
...top/normal/screenshot.spec.ts-snapshots/view-first-screenshot-firefox-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-11.1 KB
(96%)
...pshots/Non-Existing-Shared-URLs-Should-Be-Reported-To-User-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-11.1 KB
(96%)
...-snapshots/Non-Existing-Shared-URLs-Should-Be-Reported-To-User-1-edge-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2.13 KB
(100%)
...apshots/Non-Existing-Shared-URLs-Should-Be-Reported-To-User-1-firefox-linux.png
Oops, something went wrong.
Binary file modified
BIN
+22.1 KB
(110%)
...napshots/Non-Existing-Shared-URLs-Should-Be-Reported-To-User-1-webkit-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-14.5 KB
(94%)
....ts-snapshots/Mobile---Displays-initial-AIA-304-Image-1-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+13.6 KB
(110%)
....ts-snapshots/Mobile---Displays-initial-AIA-304-Image-1-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file modified
BIN
-16.8 KB
(90%)
...ile/sidebar.spec.ts-snapshots/-Mobile-Test-Help-Links-1-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+14.1 KB
(110%)
...ile/sidebar.spec.ts-snapshots/-Mobile-Test-Help-Links-1-Mobile-Safari-linux.png
Oops, something went wrong.
Oops, something went wrong.