Skip to content
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

Merged
merged 13 commits into from
Dec 18, 2023

Conversation

Zhirnoff
Copy link
Collaborator

@Zhirnoff Zhirnoff commented Dec 12, 2023

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

@Zhirnoff Zhirnoff self-assigned this Dec 12, 2023
@Zhirnoff Zhirnoff linked an issue Dec 12, 2023 that may be closed by this pull request
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');
Copy link
Collaborator

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"]');
Copy link
Collaborator

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"]');
Copy link
Collaborator

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

@Zhirnoff Zhirnoff merged commit 928f22e into master Dec 18, 2023
5 checks passed
@Zhirnoff Zhirnoff deleted the 3454-autotests-peptide-monomer-library branch December 18, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autotests: Peptide monomer library
5 participants