Skip to content

Commit

Permalink
Cypress: Styles: fix how we target previews images
Browse files Browse the repository at this point in the history
Just check that those img elements have title attribute and that it's
not empty

Signed-off-by: Pedro Pinto Silva <[email protected]>
Change-Id: I810e4670331ee0e9fe8f641ad7e94027ffbbb553
  • Loading branch information
pedropintosilva committed Oct 11, 2024
1 parent fb42840 commit 67ae644
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,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();
cy.cGet('.notebookbar.ui-iconview-entry img[title]:not([title=""])').click();
refreshCopyPasteContainer();
helper.copy();
cy.cGet('#copy-paste-container p font font').should('have.attr', 'style', 'font-size: 28pt');
Expand Down

0 comments on commit 67ae644

Please sign in to comment.