From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../preferences/tests/browser_searchChangedEngine.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'browser/components/preferences/tests/browser_searchChangedEngine.js') diff --git a/browser/components/preferences/tests/browser_searchChangedEngine.js b/browser/components/preferences/tests/browser_searchChangedEngine.js index 0882c9775e..22baba8dd6 100644 --- a/browser/components/preferences/tests/browser_searchChangedEngine.js +++ b/browser/components/preferences/tests/browser_searchChangedEngine.js @@ -46,6 +46,10 @@ add_task(async function test_change_engine() { let row = findRow(tree, "Example"); Assert.notEqual(row, -1, "Should have found the entry"); + await TestUtils.waitForCondition( + () => tree.view.getImageSrc(row, tree.columns.getNamedColumn("engineName")), + "Should have go an image URL" + ); Assert.ok( tree.view .getImageSrc(row, tree.columns.getNamedColumn("engineName")) @@ -74,6 +78,13 @@ add_task(async function test_change_engine() { row = findRow(tree, "Example 2"); Assert.notEqual(row, -1, "Should have found the updated entry"); + await TestUtils.waitForCondition( + () => + tree.view + .getImageSrc(row, tree.columns.getNamedColumn("engineName")) + ?.includes("img456.png"), + "Should have updated the image URL" + ); Assert.ok( tree.view .getImageSrc(row, tree.columns.getNamedColumn("engineName")) -- cgit v1.2.3