Im working on a simple POC for visual testing with Codeceptjs using the resemblehelper.
The seeVisualDiff method works good for me, but when switching to seeVisualDiffForElement, i get all my tests passed even when expecting visual diff to be found.
I save my xpath in a locator var :
menu_options: {xpath:".//div[@class=‘v-navigation-drawer__content’]/div[@class=‘v-list routerLink v-sheet theme–dark v-list–dense’]"},
And then I use it in the test:
I.seeVisualDiffForElement(this.menu_options,“TeamLeadMenu_Screenshot.png”, {tolerance: 1, prepareBaseImage: false});