-
Notifications
You must be signed in to change notification settings - Fork 63
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
fix: do not ignore assertView errors in broken session rejection #798
Conversation
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.
/ok
|
||
it("should not mark session as broken twice", async () => { | ||
session.commandList = ["foo"]; | ||
session.foo = () => "foo"; |
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.
А зачем тебе эти 2 строки (такое ощущение, что можно выгасить)?
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.
при стабе комманд мы проходимся именно по списку команд из commandList
. И стабаем только те команды, которые являются функциями
// we need to check session twice: | ||
// 1. before afterEach hook to prevent work with broken sessions | ||
// 2. after collecting all assertView errors (including afterEach section) | ||
if (isSessionBroken(error, this._config)) { |
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.
Может тут добавить условие - browser.state.isBroken
(оно публичное)?
@@ -491,7 +492,7 @@ describe("worker/runner/test-runner", () => { | |||
|
|||
await run_({ runner }).catch(() => {}); | |||
|
|||
assert.calledOnce(browser.markAsBroken); | |||
assert.calledTwice(browser.markAsBroken); |
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.
Немного странно теперь тут проверки выглядят. Я бы все таки один раз вызывал (выше писал про это)
75708f6
to
7059cef
Compare
7059cef
to
b65fe38
Compare
No description provided.