mirror of https://github.com/zulip/zulip.git
dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
7da1586cbf
commit
27eed09a84
|
@ -502,7 +502,7 @@ class CommonUtils {
|
|||
{visible: true},
|
||||
);
|
||||
assert.ok(entry);
|
||||
await entry.hover();
|
||||
await (entry as ElementHandle<Element>).hover();
|
||||
await page.evaluate((entry) => {
|
||||
if (!(entry instanceof HTMLElement)) {
|
||||
throw new TypeError("expected HTMLElement");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {strict as assert} from "assert";
|
||||
|
||||
import type {Page} from "puppeteer";
|
||||
import type {ElementHandle, Page} from "puppeteer";
|
||||
|
||||
import common from "../puppeteer_lib/common";
|
||||
|
||||
|
@ -40,7 +40,8 @@ async function test_change_new_stream_notifications_setting(page: Page): Promise
|
|||
'//*[@id="realm_notifications_stream_id_widget"]//*[@class="dropdown-list-body"]/li[1]',
|
||||
{visible: true},
|
||||
);
|
||||
await verona_in_dropdown!.click();
|
||||
assert.ok(verona_in_dropdown);
|
||||
await (verona_in_dropdown as ElementHandle<Element>).click();
|
||||
|
||||
await submit_notifications_stream_settings(page);
|
||||
|
||||
|
@ -183,7 +184,10 @@ async function test_add_emoji(page: Page): Promise<void> {
|
|||
await common.fill_form(page, "form.admin-emoji-form", {name: "zulip logo"});
|
||||
|
||||
const emoji_upload_handle = await page.$("#emoji_file_input");
|
||||
await emoji_upload_handle!.uploadFile("static/images/logo/zulip-icon-128x128.png");
|
||||
assert.ok(emoji_upload_handle);
|
||||
await (emoji_upload_handle as ElementHandle<HTMLInputElement>).uploadFile(
|
||||
"static/images/logo/zulip-icon-128x128.png",
|
||||
);
|
||||
await page.click("#admin_emoji_submit");
|
||||
|
||||
const emoji_status = "div#admin-emoji-status";
|
||||
|
@ -276,7 +280,10 @@ async function test_default_streams(page: Page): Promise<void> {
|
|||
|
||||
async function test_upload_realm_icon_image(page: Page): Promise<void> {
|
||||
const upload_handle = await page.$("#realm-icon-upload-widget .image_file_input");
|
||||
await upload_handle!.uploadFile("static/images/logo/zulip-icon-128x128.png");
|
||||
assert.ok(upload_handle);
|
||||
await (upload_handle as ElementHandle<HTMLInputElement>).uploadFile(
|
||||
"static/images/logo/zulip-icon-128x128.png",
|
||||
);
|
||||
|
||||
await page.waitForSelector("#realm-icon-upload-widget .upload-spinner-background", {
|
||||
visible: true,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {strict as assert} from "assert";
|
||||
|
||||
import type {Page} from "puppeteer";
|
||||
import type {ElementHandle, Page} from "puppeteer";
|
||||
|
||||
import common from "../puppeteer_lib/common";
|
||||
|
||||
|
@ -63,7 +63,7 @@ async function test_reply_by_click_prepopulates_stream_topic_names(page: Page):
|
|||
await page.waitForXPath(stream_message_xpath, {visible: true});
|
||||
const stream_message = get_last_element(await page.$x(stream_message_xpath));
|
||||
// we chose only the last element make sure we don't click on any duplicates.
|
||||
await stream_message.click();
|
||||
await (stream_message as ElementHandle<Element>).click();
|
||||
await common.check_form_contents(page, "#send_message_form", {
|
||||
stream_message_recipient_stream: "Verona",
|
||||
stream_message_recipient_topic: "Reply test",
|
||||
|
@ -78,7 +78,7 @@ async function test_reply_by_click_prepopulates_private_message_recipient(
|
|||
const private_message = get_last_element(
|
||||
await page.$x(get_message_xpath("Compose private message reply test")),
|
||||
);
|
||||
await private_message.click();
|
||||
await (private_message as ElementHandle<Element>).click();
|
||||
await page.waitForSelector("#private_message_recipient", {visible: true});
|
||||
await common.pm_recipient.expect(
|
||||
page,
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
"postcss-extend-rule": "^4.0.0",
|
||||
"postcss-import": "^14.0.2",
|
||||
"postcss-loader": "^7.0.0",
|
||||
"postcss-media-minmax": "https://github.com/andersk/postcss-media-minmax.git#01239f17f4a9872ace1dd133cee526a7de4ac9f5",
|
||||
"postcss-media-minmax": "https://codeload.github.com/andersk/postcss-media-minmax/tar.gz/92c4dd33b9add115ec436ef25243484cca0f7355",
|
||||
"postcss-mixins": "^9.0.1",
|
||||
"postcss-nested": "^5.0.0",
|
||||
"postcss-prefixwrap": "^1.24.0",
|
||||
|
@ -102,7 +102,7 @@
|
|||
"diff": "^5.0.0",
|
||||
"difflib": "^0.2.4",
|
||||
"enhanced-resolve": "^5.8.2",
|
||||
"es-check": "^6.0.0",
|
||||
"es-check": "^7.0.0",
|
||||
"eslint": "^8.0.1",
|
||||
"eslint-config-prettier": "^8.0.0",
|
||||
"eslint-import-resolver-webpack": "^0.13.0",
|
||||
|
@ -117,7 +117,7 @@
|
|||
"openapi-examples-validator": "^4.0.0",
|
||||
"openapi-types": "^12.0.0",
|
||||
"prettier": "^2.0.5",
|
||||
"puppeteer": "^15.3.0",
|
||||
"puppeteer": "^16.0.0",
|
||||
"source-map": "https://codeload.github.com/benthemonkey/source-map/tar.gz/d95423f77edef6cbb9e21d2d6014c7de85ae220a",
|
||||
"stylelint": "^14.0.1",
|
||||
"stylelint-config-prettier": "^9.0.3",
|
||||
|
|
|
@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 133
|
|||
# historical commits sharing the same major version, in which case a
|
||||
# minor version bump suffices.
|
||||
|
||||
PROVISION_VERSION = (196, 1)
|
||||
PROVISION_VERSION = (197, 0)
|
||||
|
|
Loading…
Reference in New Issue