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:
parent
2b89e51e0a
commit
8b665983f3
3 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue