Skip to content

feat: implement core functionality - #1

Merged
rostik404 merged 1 commit into
masterfrom
initial-branch
Jun 5, 2017
Merged

rostik404 merged 1 commit into
masterfrom
initial-branch

Conversation

@rostik404

@rostik404 rostik404 commented May 10, 2017 •

Copy link
Copy Markdown
Contributor

Comment thread index.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

В этом файле добавил только парсинг конфига.

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.

Ты еще тут подписку на событие WARNING выкосил

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.

и еще ты тут добавил передачу вторым параметром директории репорта в утилитные методы

Comment thread lib/static/report.css Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Полностью скопировал из gemini

Comment thread lib/static/report.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Полностью скопировал из gemini

Comment thread lib/templates/report.hbs Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Полностью скопировал из gemini

Comment thread lib/templates/state.hbs Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Полностью скопировал из gemini

Comment thread lib/view-model.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Полностью скопировал из gemini, только выгасил addWarning - это вроде как legacy.

Comment thread lib/view.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Здесь добавил прокидывание reportDir - раньше она была захардкожена.

Comment thread utils.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Порефакторил и добавил логгер.

Comment thread test/lib/view-model.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Добавил большую часть тестов.

Comment thread test/index.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Добавил часть тестов

@rostik404
rostik404 force-pushed the initial-branch branch 4 times, most recently from 674fa46 to d9d2a92 Compare May 10, 2017 13:45
Comment thread package.json Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Не забыть поменять на нормальную версию

@rostik404
rostik404 force-pushed the initial-branch branch 2 times, most recently from 0653af6 to 181ac6a Compare May 10, 2017 14:28
Comment thread README.md Outdated

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.

Странно звучит - "Общий плагин для gemini ..." =)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Тут скорее в значении обычный, но все равно как-то странно, да)

Comment thread README.md Outdated

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.

давай может явно укажем, что это путь к папке:

path: 'my/gemini-reports'

Comment thread index.js Outdated

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.

Ты еще тут подписку на событие WARNING выкосил

Comment thread lib/view.js Outdated

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.

а зачем ты тут еще раз промисифаешь fs-extra? Ты же его уже запромисифаил в точке входа.

Comment thread index.js Outdated

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.

тут подписка на warning разве нужна еще?

Comment thread test/lib/view.js Outdated

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.

тебе же handlebarsStub только в одном тесте нужен. Почему бы этот returns и инициализацию handlebarsStub не унести в него?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

handlebarsStub - да, в одном. Но returns нужен для работы многих тестов.

Comment thread test/lib/view.js Outdated

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.

а зачем тебе здесь инстанс ошибки создавать? Ты же можешь просто вернуть some-error и тогда можно будет проверить используя метод calledWith

Comment thread utils.js Outdated

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.

тут строка больше 120 символов )

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.

Не пойму зачем тут concat нужен можно же просто:

const components = ['images', result.suite.path, result.state.name, `${result.browserId}~${kind}${retrySuffix}.png`);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Не пойму зачем тут concat

Чтобы не было вложенных массивов

Comment thread utils.js Outdated

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.

logger: _.pick(console, ['log', 'warn', 'error']

Comment thread utils.js Outdated

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.

может эти функции тоже выше объявим, как первые три?
По моему будет удобнее читаться.

@rostik404
rostik404 force-pushed the initial-branch branch 2 times, most recently from 0cd004a to a641010 Compare May 17, 2017 08:22
Comment thread index.js Outdated

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.

тут же можно в одну строку фигануть:

gemini.on(gemini.events.END, (stats) => resolve(model.getResult(stats)));

Comment thread test/lib/view-model.js Outdated

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.

Тут же нужно еще проверить, что переданный объект не модифицировался

@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.

в остальном /ок

Comment thread index.js Outdated

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.

.then(result.saveDiffTo);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Не, здесь так не получится, мы же saveDiffTo вызываем не относительно того, что в then прилетает, а относительно destPath из замыкания.

Comment thread index.js Outdated

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.

нужно const

Comment thread lib/static/report.css Outdated

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.

lowerCase plz!

Comment thread lib/view.js Outdated

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.

returns --> @returns
везде по коду поправь

Comment thread package.json Outdated

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.

можно не добавлять - ты его нигде не используешь

Comment thread test/index.js Outdated

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.

вынеси опции в отдельную переменную - проще будет читаться

Comment thread test/lib/view.js Outdated

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.

добавь в описание, что ты тут еще проверяешь и опцию preventIndent - без нее у тебя metaInfo разлезится по всей странице

Comment thread utils.js Outdated

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.

template string

@sipayRT sipayRT 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.

в остальном ок

@rostik404
rostik404 merged commit de1d513 into master Jun 5, 2017
@rostik404
rostik404 deleted the initial-branch branch June 5, 2017 18:38
sonic16x pushed a commit that referenced this pull request Jul 11, 2025
shadowusr pushed a commit that referenced this pull request Jul 15, 2025
* feat(visual-checks-sidebar): add sidebar for visual checks page

* feat(visual-checks-search): add search for visual checks page

* feat(visual-checks-sidebar): fixes #0

* feat(visual-checks-sidebar): fixes #1

* feat(visual-checks-sidebar): fixes #2

* feat(visual-checks-sidebar): fixes #3

* feat(visual-checks-sidebar): fixes #4
sonic16x pushed a commit that referenced this pull request Jul 25, 2025
sonic16x pushed a commit that referenced this pull request Jul 31, 2025
sonic16x added a commit that referenced this pull request Aug 12, 2025
* feat(new-ui): squash repeated steps

* feat(new-ui): squash repeated steps to groups

* feat(new-ui): squash repeated steps to groups #1

* feat(new-ui): squash repeated steps to groups #2

* feat(new-ui): squash repeated steps to groups #3

* feat(new-ui): squash repeated steps to groups #4

* feat(new-ui): squash repeated steps to groups #5

* feat(new-ui): squash repeated steps to groups #6

* feat(new-ui): squash repeated steps to groups #7

* feat(new-ui): squash repeated steps to groups #7

* feat(new-ui): squash repeated steps to groups #8

---------

Co-authored-by: rocketraccoon <rocketraccoon@yandex-team.ru>
sonic16x pushed a commit that referenced this pull request Aug 18, 2025
sonic16x pushed a commit that referenced this pull request Aug 18, 2025
sonic16x pushed a commit that referenced this pull request Sep 1, 2025
sonic16x pushed a commit that referenced this pull request Sep 1, 2025
sonic16x pushed a commit that referenced this pull request Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants