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

SuiteCollection: new enable/disable logic#357

Merged
j0tunn merged 1 commit intomasterfrom
fix/disable.rule
Jan 22, 2016
Merged

SuiteCollection: new enable/disable logic#357
j0tunn merged 1 commit intomasterfrom
fix/disable.rule

Conversation

@j0tunn
Copy link
Contributor

@j0tunn j0tunn commented Jan 22, 2016

  • old logic for enable/disable suites and states based on isDisabled function generation replaced with one based on existing suite.browsers field.
  • field browsers added to State
  • DisabledSuiteRunner removed as now useless
  • created new util.makeSuiteTree helper for tests
  • util.makeSuiteStub fixed to return real Suite object with all its prototype magic and some stubbed fields

@j0tunn
Copy link
Contributor Author

j0tunn commented Jan 22, 2016

@sipayRT @SwinX

Copy link
Contributor

Choose a reason for hiding this comment

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

Сразу видно, что PR от Антона ;D

@SwinX
Copy link
Contributor

SwinX commented Jan 22, 2016

Кстати, похоже есть 1 кейс, который эту систему поломает:

  1. Всего у сьюта должно быть 2 или больше браузеров.
  2. Выключить №1
  3. Выключить №2
  4. Включить во всех
    По той логике, что есть сейчас включится только в браузере №2.

@SwinX
Copy link
Contributor

SwinX commented Jan 22, 2016

Оказалось, случай выше учтён, всё работает. Было бы круто сделать для него юнит-тест.

Copy link
Contributor

Choose a reason for hiding this comment

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

should fail on attempt to enable unknown suite

@SwinX
Copy link
Contributor

SwinX commented Jan 22, 2016

По коду 🆗
Вопрос по API остаётся.

j0tunn added a commit that referenced this pull request Jan 22, 2016
SuiteCollection: new enable/disable logic
@j0tunn j0tunn merged commit 4b34a75 into master Jan 22, 2016
@j0tunn j0tunn deleted the fix/disable.rule branch January 22, 2016 14:59
@levonet levonet removed the review label Jan 22, 2016
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.

3 participants