Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
test(storyshots): update storyshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnoelcke committed Oct 29, 2018
1 parent 66d4586 commit 10ad689
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 16 deletions.
239 changes: 231 additions & 8 deletions src/ItemBank/__tests__/__snapshots__/ItemBankContainer.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,127 @@ exports[`ItemBankContainer default wrapper 1`] = `
],
}
}
sectionsClient={
[MockFunction] {
"calls": Array [
Array [],
],
}
}
sectionsClient={[MockFunction]}
setUrl={[MockFunction]}
>
<div
className="item-container container"
>
<div>
<ItemBankEntry
clearItems={[Function]}
deleteItem={[Function]}
items={
Array [
Object {
"bankKey": 3000,
"hasBankKey": true,
"isaap": "",
"itemKey": 187,
"namespace": "itemreviewviewer",
"revision": "asfe",
"section": "math",
},
Object {
"bankKey": 2332,
"hasBankKey": true,
"isaap": "",
"itemKey": 187,
"namespace": "itemreviewviewer",
"revision": "asdf",
"section": "math",
},
]
}
namespaces={
Array [
Object {
"bankKey": 991,
"hasBankKey": false,
"id": "37",
"name": "iat-staging",
},
Object {
"bankKey": 0,
"hasBankKey": true,
"id": "26",
"name": "ELA",
},
Object {
"bankKey": 992,
"hasBankKey": false,
"id": "19",
"name": "iat-uat",
},
Object {
"bankKey": 990,
"hasBankKey": false,
"id": "14",
"name": "iat-development",
},
Object {
"bankKey": 0,
"hasBankKey": true,
"id": "12",
"name": "itemreviewviewer",
},
]
}
submitItems={[Function]}
>
<div>
<Accordion
accordionTitle="CSV Entry"
isOpen={false}
toggleExpand={[Function]}
>
<div
className="accordion-container"
>
<div
className="accordion-bar"
onClick={[Function]}
role="button"
>
<div
className="accordion-content"
>
CSV Entry
<span
aria-hidden="true"
className="fa fa-chevron-down carat"
/>
</div>
</div>
</div>
</Accordion>
<Accordion
accordionTitle="Items Entry"
isOpen={false}
toggleExpand={[Function]}
>
<div
className="accordion-container"
>
<div
className="accordion-bar"
onClick={[Function]}
role="button"
>
<div
className="accordion-content"
>
Items Entry
<span
aria-hidden="true"
className="fa fa-chevron-down carat"
/>
</div>
</div>
</div>
</Accordion>
</div>
</ItemBankEntry>
<ItemBankViewer
currentItem={
Object {
Expand Down Expand Up @@ -586,4 +694,119 @@ exports[`ItemBankContainer has item bank viewer 1`] = `
</ItemBankViewer>
`;

exports[`ItemBankContainer item bank entry 1`] = `null`;
exports[`ItemBankContainer item bank entry 1`] = `
<ItemBankEntry
clearItems={[Function]}
deleteItem={[Function]}
items={
Array [
Object {
"bankKey": 3000,
"hasBankKey": true,
"isaap": "",
"itemKey": 187,
"namespace": "itemreviewviewer",
"revision": "asfe",
"section": "math",
},
Object {
"bankKey": 2332,
"hasBankKey": true,
"isaap": "",
"itemKey": 187,
"namespace": "itemreviewviewer",
"revision": "asdf",
"section": "math",
},
]
}
namespaces={
Array [
Object {
"bankKey": 991,
"hasBankKey": false,
"id": "37",
"name": "iat-staging",
},
Object {
"bankKey": 0,
"hasBankKey": true,
"id": "26",
"name": "ELA",
},
Object {
"bankKey": 992,
"hasBankKey": false,
"id": "19",
"name": "iat-uat",
},
Object {
"bankKey": 990,
"hasBankKey": false,
"id": "14",
"name": "iat-development",
},
Object {
"bankKey": 0,
"hasBankKey": true,
"id": "12",
"name": "itemreviewviewer",
},
]
}
submitItems={[Function]}
>
<div>
<Accordion
accordionTitle="CSV Entry"
isOpen={false}
toggleExpand={[Function]}
>
<div
className="accordion-container"
>
<div
className="accordion-bar"
onClick={[Function]}
role="button"
>
<div
className="accordion-content"
>
CSV Entry
<span
aria-hidden="true"
className="fa fa-chevron-down carat"
/>
</div>
</div>
</div>
</Accordion>
<Accordion
accordionTitle="Items Entry"
isOpen={false}
toggleExpand={[Function]}
>
<div
className="accordion-container"
>
<div
className="accordion-bar"
onClick={[Function]}
role="button"
>
<div
className="accordion-content"
>
Items Entry
<span
aria-hidden="true"
className="fa fa-chevron-down carat"
/>
</div>
</div>
</div>
</Accordion>
</div>
</ItemBankEntry>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@ exports[`ItemBankEntry matches snapshot 1`] = `
},
]
}
sections={
Array [
Object {
"key": "187-3000",
"value": "math",
},
]
}
/>
</Accordion>
</div>
Expand Down
2 changes: 2 additions & 0 deletions stories/Filter/__snapshots__/BasicFilter.storybook.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ exports[`Storyshots Basic Filter DropDown: multiple filter items 1`] = `
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down Expand Up @@ -116,6 +117,7 @@ exports[`Storyshots Basic Filter DropDown: one filter item 1`] = `
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ exports[`Storyshots Basic Filter Container Basic Filter only 1`] = `
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down Expand Up @@ -187,6 +188,7 @@ exports[`Storyshots Basic Filter Container Basic Filter with Advanced filter exp
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down
1 change: 1 addition & 0 deletions stories/Filter/__snapshots__/Filter.storybook.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports[`Storyshots Filter Container Contains both Basic and Advanced Filter 1`]
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down
4 changes: 4 additions & 0 deletions stories/Filter/__snapshots__/SIWFilter.storybook.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down Expand Up @@ -86,6 +87,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down Expand Up @@ -240,6 +242,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down Expand Up @@ -341,6 +344,7 @@ exports[`Storyshots SIW-Filter Container Default 1`] = `
className="form-control input-sm"
disabled={false}
onChange={[Function]}
tabIndex={undefined}
value="default"
>
<option
Expand Down
Loading

0 comments on commit 10ad689

Please sign in to comment.