-
Notifications
You must be signed in to change notification settings - Fork 1.3k
More functional tests for the notebook editor #7804
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
More functional tests for the notebook editor. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,12 @@ export class NativeEditorStateController extends MainStateController { | |
return super.handleMessage(msg, payload); | ||
} | ||
|
||
// This method is used by tests to prepare this react control for loading again. | ||
public reset() { | ||
this.waitingForLoadRender = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this method do? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rests the state of loading so that the tests can reload the same control over again. I'll add a comment. reset sounds like a better name In reply to: 332271637 [](ancestors = 332271637) |
||
this.setState({ busy: true }); | ||
} | ||
|
||
public canMoveUp = (cellId?: string) => { | ||
const index = this.getState().cellVMs.findIndex(cvm => cvm.cell.id === cellId); | ||
return (index > 0); | ||
|
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.
Why not send the error message to the view then display the error message (e.g.
errorHandler.handleError
could end up displaying another UI, and its good to have the errors already visible in the native editor at that point.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.
Good idea.
In reply to: 332271211 [](ancestors = 332271211)