cypress: fix apply font in top_toolbar_spec

probably broken due to on demand rendering rework

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I37379b423748922a93297720ee0401ac1510f96b
This commit is contained in:
Szymon Kłos 2024-06-28 19:48:47 +02:00 committed by Michael Meeks
parent 2b89e51e0a
commit 8b665983f3
3 changed files with 4 additions and 1 deletions

View file

@ -33,6 +33,7 @@ function onDemandRenderer(
const placeholderImg = placeholder as HTMLImageElement;
placeholderImg.src = cachedComboboxEntries.images[entryId];
placeholderImg.alt = entryText;
placeholderImg.title = entryText;
requestRender = !cachedComboboxEntries.persistent;
}
@ -58,7 +59,7 @@ function onDemandRenderer(
var observer = new IntersectionObserver(onIntersection, {
root: null,
threshold: 0.5, // percentage of visible area
threshold: 0.01, // percentage of visible area
});
observer.observe(placeholder);

View file

@ -282,6 +282,7 @@ JSDialog.combobox = function (parentContainer, data, builder) {
var img = L.DomUtil.create('img', '', dropdown[pos]);
img.src = builder.rendersCache[data.id].images[pos];
img.alt = entries[pos].text;
img.title = entries[pos].text;
}
};

View file

@ -43,6 +43,7 @@ describe(['tagdesktop'], 'Top toolbar tests.', function() {
});
it('Apply style.', function() {
cy.cGet('#toolbar-up .ui-scroll-right').click();
helper.setDummyClipboardForCopy();
cy.cGet('.notebookbar.ui-iconview-entry img[title=Title]').click();
refreshCopyPasteContainer();