Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions common/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def pin_browsers():

http_archive(
name = "linux_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/144.0.2/linux-x86_64/en-US/firefox-144.0.2.tar.xz",
sha256 = "19cada8e7b6f4f00c450411578b4c241d2d50a0a566a1cbe8181fa950b6c0ad4",
url = "https://ftp.mozilla.org/pub/firefox/releases/145.0/linux-x86_64/en-US/firefox-145.0.tar.xz",
sha256 = "00fb922cda6bab971e02bcbfb77923b0a234388ed7d77c23506ca0a1a61d4a86",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -33,8 +33,8 @@ js_library(

dmg_archive(
name = "mac_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/144.0.2/mac/en-US/Firefox%20144.0.2.dmg",
sha256 = "c67e649a9ef2d23c929ca1b9a87b10591e06303cdf0d9e2395e64bcf7bc0f673",
url = "https://ftp.mozilla.org/pub/firefox/releases/145.0/mac/en-US/Firefox%20145.0.dmg",
sha256 = "1c4556480deac8424049f3081a6de1e2c6de619bab3e8ce53e5a497b8d6d919e",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -50,8 +50,8 @@ js_library(

http_archive(
name = "linux_beta_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/145.0b9/linux-x86_64/en-US/firefox-145.0b9.tar.xz",
sha256 = "9e171cbc98ccd3a995e6e4c9e543a1893df18225dd098a704d3c64d6924021dd",
url = "https://ftp.mozilla.org/pub/firefox/releases/146.0b1/linux-x86_64/en-US/firefox-146.0b1.tar.xz",
sha256 = "aecd82519cd48ffadae7883b93c2cf9bc33a80b907febbaaf19de7ad29835795",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -72,8 +72,8 @@ js_library(

dmg_archive(
name = "mac_beta_firefox",
url = "https://ftp.mozilla.org/pub/firefox/releases/145.0b9/mac/en-US/Firefox%20145.0b9.dmg",
sha256 = "87ecee7fb0af08ca47c91cc5d22081a147460ee937822e7ca3b69a6ea48855f2",
url = "https://ftp.mozilla.org/pub/firefox/releases/146.0b1/mac/en-US/Firefox%20146.0b1.dmg",
sha256 = "99b04c5152a33e65af51a83949c02e761a8e34d8ffbddd5e41df56077ef3e406",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand Down Expand Up @@ -123,10 +123,10 @@ js_library(

pkg_archive(
name = "mac_edge",
url = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/f6ef0103-7312-4ec8-975b-c69a480b52c2/MicrosoftEdge-142.0.3595.53.pkg",
sha256 = "d5fcfd67d1641608aa51edefab01b2d1e5c0ec0000021a3948127915105cb270",
url = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/99d2f1f6-1009-4e0b-bd37-4db143a6d322/MicrosoftEdge-142.0.3595.65.pkg",
sha256 = "da1183c6f48a8a73e3c5d86128f75d56ac375f5f5a4ba56ba41b536b803b44e9",
move = {
"MicrosoftEdge-142.0.3595.53.pkg/Payload/Microsoft Edge.app": "Edge.app",
"MicrosoftEdge-142.0.3595.65.pkg/Payload/Microsoft Edge.app": "Edge.app",
},
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
Expand All @@ -143,8 +143,8 @@ js_library(

deb_archive(
name = "linux_edge",
url = "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_142.0.3595.53-1_amd64.deb",
sha256 = "71248a5b122441ef23aefee02f9957d82b3dae853c783d8c207b8b190327c9c3",
url = "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_142.0.3595.65-1_amd64.deb",
sha256 = "6aa407e2db415938e9cc011e5a985e1098aed4550c28c26ef63f06bb6a6575b0",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -165,8 +165,8 @@ js_library(

http_archive(
name = "linux_edgedriver",
url = "https://msedgedriver.microsoft.com/142.0.3595.53/edgedriver_linux64.zip",
sha256 = "f2100e580fe11755914377de07d6de99bc8250133bb13b1978298d9193ae941e",
url = "https://msedgedriver.microsoft.com/142.0.3595.65/edgedriver_linux64.zip",
sha256 = "58c24c96ad4bf32dcd781e3ef1c2df0b6d517f93c530162653b29430e6b80be6",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -182,8 +182,8 @@ js_library(

http_archive(
name = "mac_edgedriver",
url = "https://msedgedriver.microsoft.com/142.0.3595.53/edgedriver_mac64.zip",
sha256 = "452b91985f9443524bfbfabadb7f8fd49f42390e5f50f44dc5453b93af8fc754",
url = "https://msedgedriver.microsoft.com/142.0.3595.65/edgedriver_mac64.zip",
sha256 = "05197f66663cf91d1ba844ceaf4321a7808c33b935112b9741b6510459a4156c",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -199,8 +199,8 @@ js_library(

http_archive(
name = "linux_chrome",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.61/linux64/chrome-linux64.zip",
sha256 = "2e964b3bfce1a83b210cc2b53193c16a188994069ef3eaa1847c85272cc1d651",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.162/linux64/chrome-linux64.zip",
sha256 = "26c4f7b82018d5068e6cbe7a7b57fc3ed1770b5c743d79b8905876eb4a8cee45",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -220,8 +220,8 @@ js_library(
)
http_archive(
name = "mac_chrome",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.61/mac-x64/chrome-mac-x64.zip",
sha256 = "75c1eb4087bd3a06d57016d78d8a57980bdc47ddee6a307c36f31cf76182d57c",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.162/mac-x64/chrome-mac-x64.zip",
sha256 = "36a78d8b82a83c04a9930a1e3a032a85748bce10318bd80f7abcf880ab074fba",
strip_prefix = "chrome-mac-x64",
patch_cmds = [
"mv 'Google Chrome for Testing.app' Chrome.app",
Expand All @@ -241,8 +241,8 @@ js_library(
)
http_archive(
name = "linux_chromedriver",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.61/linux64/chromedriver-linux64.zip",
sha256 = "3100e1f30cf016c9e7a587b747cdd219f8bf2dd9324a401aeded939e4df4a2af",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.162/linux64/chromedriver-linux64.zip",
sha256 = "ea6d89522633d43eeeccef0f8f1b9739ea045355a8e4c651b8cd99efa9fe646d",
strip_prefix = "chromedriver-linux64",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
Expand All @@ -259,8 +259,8 @@ js_library(

http_archive(
name = "mac_chromedriver",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.61/mac-x64/chromedriver-mac-x64.zip",
sha256 = "a81e892eb66e0b393387c98446e58da65615667c5f0aeb6a8d4dd94f7d60c95f",
url = "https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.162/mac-x64/chromedriver-mac-x64.zip",
sha256 = "551e24a3ea0d40e3de9a89d93373a00e255db1e687c0c45a8fd5fc8761845766",
strip_prefix = "chromedriver-mac-x64",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
Expand All @@ -277,8 +277,8 @@ js_library(

http_archive(
name = "linux_beta_chrome",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.5/linux64/chrome-linux64.zip",
sha256 = "8bc1350380c0d916ddabbc243227b5fcaaa85152edf1df1ab19db49b8106bc89",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.17/linux64/chrome-linux64.zip",
sha256 = "21ec387e6732e1fe9cd1db08fbc2cb68296f81bc407fdedc27b95eba23b40d51",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
package(default_visibility = ["//visibility:public"])
Expand All @@ -298,8 +298,8 @@ js_library(
)
http_archive(
name = "mac_beta_chrome",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.5/mac-x64/chrome-mac-x64.zip",
sha256 = "c936e913583d606fa1dab9706ca0ea9edc80c5e1c02ee7fb235d72443171a197",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.17/mac-x64/chrome-mac-x64.zip",
sha256 = "6accbac7e8b7e7af5863790d8ade2704445a9aa760240884b39fa34c2cbff40f",
strip_prefix = "chrome-mac-x64",
patch_cmds = [
"mv 'Google Chrome for Testing.app' Chrome.app",
Expand All @@ -319,8 +319,8 @@ js_library(
)
http_archive(
name = "linux_beta_chromedriver",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.5/linux64/chromedriver-linux64.zip",
sha256 = "6c8fbfc74de71e4178a6bd76585d17428230cc9d47a63ca26b4839ae07cfff09",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.17/linux64/chromedriver-linux64.zip",
sha256 = "4d1278d4cf0ae2d0eb077859a7af041d9ea8dc64a58ad7beadb2bbe35c05a2ef",
strip_prefix = "chromedriver-linux64",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
Expand All @@ -337,8 +337,8 @@ js_library(

http_archive(
name = "mac_beta_chromedriver",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.5/mac-x64/chromedriver-mac-x64.zip",
sha256 = "29d90f8ecae2121f0225a046dd7677ea9ea922027b11226e3d435cf3de776845",
url = "https://storage.googleapis.com/chrome-for-testing-public/143.0.7499.17/mac-x64/chromedriver-mac-x64.zip",
sha256 = "a7a24690897f4cbf4f015359b145bfe5115b87628b90e6e6734c5124716f37ac",
strip_prefix = "chromedriver-mac-x64",
build_file_content = """
load("@aspect_rules_js//js:defs.bzl", "js_library")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ void canListenToDownloadWillBeginEvent()
DownloadInfo downloadInfo = future.get(5, TimeUnit.SECONDS);
assertThat(downloadInfo.getBrowsingContextId()).isEqualTo(context.getId());
assertThat(downloadInfo.getUrl()).contains("/downloads/file_1.txt");
assertThat(downloadInfo.getSuggestedFilename()).isEqualTo("file_1.txt");
// actual filename depends on no. of downloads tried - file_1.txt, file_1(1).txt, etc
assertThat(downloadInfo.getSuggestedFilename()).contains("file_1");
}
}

@Test
@NeedsFreshDriver
@NotYetImplemented(FIREFOX)
void canListenToDownloadEnd() throws ExecutionException, InterruptedException, TimeoutException {
try (BrowsingContextInspector inspector = new BrowsingContextInspector(driver)) {
CompletableFuture<DownloadEnded> future = new CompletableFuture<>();
Expand Down
Loading