Skip to content

Commit

Permalink
Test drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
estellecomment committed Apr 11, 2024
1 parent 2528da1 commit 15e2fb9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class ExpiredAccountDialog extends React.Component<IProps, IState

switch (this.state.ProcessState) {
case ProcessState.SENDING_EMAIL:
alertMessage = <InlineSpinner /> // todo translation+format or spinner
alertMessage = <InlineSpinner />
break;
case ProcessState.EMAIL_MUST_WAIT:
//don't know which class should decorate this message, it is not really an error
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe("ExpiredAccountDialog", () => {
it("sends email when 'Send email' button is clicked", () => {});
it("when 'I renewed' is clicked, and the account is renewed, it displays 'cool' and unblocks user (todo)", () => {});
it("when 'I renewed' is clicked, and the account is not renewed, it displays 'not cool' and keeps dialog up (todo)", () => {});
});
9 changes: 9 additions & 0 deletions test/unit-tests/tchap/lib/ExpiredAccountHandler-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
describe("ExpiredAccountHandler", () => {
it("displays dialog when account is expired", () => {
// Modal.createDialog
// create handler
// dispatch action : will_start_client
// cli.on(HttpApiEvent.ORG_MATRIX_EXPIRED_ACCOUNT)
// expect Modal.createDialog to have been called, with ExpiredAccountDialog class
});
});

0 comments on commit 15e2fb9

Please sign in to comment.