8000 feat: add diff clusters by rostik404 · Pull Request #963 · gemini-testing/gemini · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

feat: add diff clusters - #963

Merged
rostik404 merged 1 commit into
masterfrom
add-clusters
Mar 13, 2019
Merged

rostik404 merged 1 commit into
masterfrom
add-clusters

Conversation

@rostik404
Copy link
Copy Markdown
Contributor

Не забыть обновить версию gemini-core

@DudaGod DudaGod left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в остально /ok

.then(({equal, diffBounds, metaInfo = {}}) => {
.then(({equal, diffBounds, diffClusters, metaInfo = {}}) => {
Object.assign(refImg, metaInfo.refImg);
const diffAreas = {diffBounds, diffClusters};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лишнее создание объекта в случае если скриншоты равны, го сразу объект прокидывать

.onNoReference(throwNoRefError)
.onEqual((refImg, currImg) => ({refImg, currImg, equal: true}))
.onDiff((refImg, currImg, diffBounds) => ({refImg, currImg, diffBounds, equal: false}));
.onDiff((refImg, currImg, diffAreas) => ({refImg, currImg, diffAreas, equal: false}));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут нужно будет так же как в hermione сделать, прокидывать diffBounds и diffClusters, а diffAreas` выгасить

@rostik404
rostik404 merged commit 0931ba5 into master Mar 13, 2019
@rostik404
rostik404 deleted the add-clusters branch March 13, 2019 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0