123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should render correctly: default 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={false}
- aria-live="polite"
- >
- x_of_y_shown.3.5
- </span>
- <Button
- className="spacer-left"
- data-test="show-more"
- disabled={false}
- onClick={[Function]}
- >
- show_more
- </Button>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={false}
- />
- </div>
- `;
-
- exports[`should render correctly: empty if everything is loaded 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={false}
- aria-live="polite"
- >
- x_of_y_shown.5.5
- </span>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={false}
- />
- </div>
- `;
-
- exports[`should render correctly: empty if no loadMore nor reload props 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={false}
- aria-live="polite"
- >
- x_of_y_shown.3.5
- </span>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={false}
- />
- </div>
- `;
-
- exports[`should render correctly: force show load more button if count % pageSize is 0, and total is undefined 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={false}
- aria-live="polite"
- >
- x_show.60
- </span>
- <Button
- className="spacer-left"
- data-test="show-more"
- disabled={false}
- onClick={[Function]}
- >
- show_more
- </Button>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={false}
- />
- </div>
- `;
-
- exports[`should render correctly: loading 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={true}
- aria-live="polite"
- >
- x_of_y_shown.3.5
- </span>
- <Button
- className="spacer-left"
- data-test="show-more"
- disabled={true}
- onClick={[Function]}
- >
- show_more
- </Button>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={true}
- />
- </div>
- `;
-
- exports[`should render correctly: reload 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={false}
- aria-live="polite"
- >
- x_of_y_shown.3.5
- </span>
- <Button
- className="spacer-left"
- data-test="reload"
- disabled={false}
- onClick={[MockFunction]}
- >
- reload
- </Button>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={false}
- />
- </div>
- `;
-
- exports[`should render correctly: reload, loading 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={true}
- aria-live="polite"
- >
- x_of_y_shown.3.5
- </span>
- <Button
- className="spacer-left"
- data-test="reload"
- disabled={true}
- onClick={[MockFunction]}
- >
- reload
- </Button>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={true}
- />
- </div>
- `;
-
- exports[`should render correctly: total undefined 1`] = `
- <div
- className="list-footer spacer-top note text-center"
- tabIndex={-1}
- >
- <span
- aria-busy={false}
- aria-live="polite"
- >
- x_show.3
- </span>
- <DeferredSpinner
- className="text-bottom spacer-left position-absolute"
- loading={false}
- />
- </div>
- `;
|