-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autotests: #3454 - peptide monomer library #3690
Conversation
…peptide-monomer-library
…totests-peptide-monomer-library
test('add molecule in favourites', async ({ page }) => { | ||
// favourites check. there is a bug - favourite sign (star) is golden when hovered(should be dark grey) | ||
// https://github.com/epam/ketcher/issues/3477 | ||
// await page.waitForSelector('.star'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this line is commented out? If it's not needed then remove this, please, and if it should be uncommented after fixing bug then it should be described at comment.
options?: { masks?: Locator[]; maxDiffPixelRatio?: number }, | ||
) { | ||
const maxTimeout = 3000; | ||
const editor = page.locator('[class*="MuiBox-root"]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a testId for this.
options?: { masks?: Locator[]; maxDiffPixelRatio?: number }, | ||
) { | ||
const maxTimeout = 3000; | ||
const editor = page.locator('[class*="shown monomer-library"]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to create a more generic function for taking screenshots of specific element. We already have a bunch of functions which do the same job and the only difference is – test id
…totests-peptide-monomer-library
- update snapshot
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
Check list
#1234 – issue name