Best JavaScript code snippet using storybook-test-runner
scenarios-ui.js
Source:scenarios-ui.js
1module.exports = options => { 2 return [3 {4 "label": "Collection",5 "url": options.urlRoot + "/collection-layout.html",6 "referenceUrl": options.referenceUrlRoot + "/collection-layout.html"7 },8 {9 "label": "Collections - A-Z",10 "url": options.urlRoot + "/collections-a-z-layout.html",11 "referenceUrl": options.referenceUrlRoot + "/collections-a-z-layout.html"12 },13 {14 "label": "Collections - Random Explore",15 "url": options.urlRoot + "/collections-random-layout.html",16 "referenceUrl": options.referenceUrlRoot + "/collections-random-layout.html"17 },18 {19 "label": "Collections - Themed - California History",20 "url": options.urlRoot + "/collections-themed-history-layout.html",21 "referenceUrl": options.referenceUrlRoot + "/collections-themed-history-layout.html"22 },23 {24 "label": "Collections - Themed - California Cultures",25 "url": options.urlRoot + "/collections-themed-cultures-layout.html",26 "referenceUrl": options.referenceUrlRoot + "/collections-themed-cultures-layout.html"27 },28 {29 "label": "Collections - Themed - JARDA",30 "url": options.urlRoot + "/collections-themed-jarda-layout.html",31 "referenceUrl": options.referenceUrlRoot + "/collections-themed-jarda-layout.html"32 },33 {34 "label": "Collections - Title Search",35 "url": options.urlRoot + "/collections-titlesearch-layout.html",36 "referenceUrl": options.referenceUrlRoot + "/collections-titlesearch-layout.html"37 },38 {39 "label": "Home Page - Version 1",40 "url": options.urlRoot + "/homepage-layout1.html",41 "referenceUrl": options.referenceUrlRoot + "/homepage-layout1.html"42 },43 {44 "label": "Home Page - Version 2",45 "url": options.urlRoot + "/homepage-layout2.html",46 "referenceUrl": options.referenceUrlRoot + "/homepage-layout2.html"47 },48 {49 "label": "Home Page - Version 3",50 "url": options.urlRoot + "/homepage-layout3.html",51 "referenceUrl": options.referenceUrlRoot + "/homepage-layout3.html"52 },53 {54 "label": "Home Page - Version 4",55 "url": options.urlRoot + "/homepage-layout4.html",56 "referenceUrl": options.referenceUrlRoot + "/homepage-layout4.html"57 },58 {59 "label": "Institution - Non-UC - Featured",60 "url": options.urlRoot + "/institution-non-uc-featured-layout.html",61 "referenceUrl": options.referenceUrlRoot + "/institution-non-uc-featured-layout.html"62 },63 {64 "label": "Institution - Non-UC",65 "url": options.urlRoot + "/institution-non-uc-layout.html",66 "referenceUrl": options.referenceUrlRoot + "/institution-non-uc-layout.html"67 },68 {69 "label": "Institution - UC",70 "url": options.urlRoot + "/institution-uc-layout.html",71 "referenceUrl": options.referenceUrlRoot + "/institution-uc-layout.html"72 },73 {74 "label": "Institution - Campus - Featured",75 "url": options.urlRoot + "/institution-campus-featured-layout.html",76 "referenceUrl": options.referenceUrlRoot + "/institution-campus-featured-layout.html"77 },78 {79 "label": "Institutions - UC / Statewide Partners",80 "url": options.urlRoot + "/institutions-partners-layout.html",81 "referenceUrl": options.referenceUrlRoot + "/institutions-partners-layout.html"82 },83 {84 "label": "Object - Hosted Simple Image",85 "url": options.urlRoot + "/object-hosted-simple-image-layout.html",86 "referenceUrl": options.referenceUrlRoot + "/object-hosted-simple-image-layout.html"87 },88 {89 "label": "Object - Hosted Simple Image - Comments",90 "url": options.urlRoot + "/object-hosted-simple-image-comments-layout.html",91 "referenceUrl": options.referenceUrlRoot + "/object-hosted-simple-image-comments-layout.html"92 },93 {94 "label": "Object - Hosted Complex Image",95 "url": options.urlRoot + "/object-hosted-complex-image-layout.html",96 "referenceUrl": options.referenceUrlRoot + "/object-hosted-complex-image-layout.html"97 },98 {99 "label": "Object - Hosted Complex Non-Image",100 "url": options.urlRoot + "/object-hosted-complex-non-image-layout.html",101 "referenceUrl": options.referenceUrlRoot + "/object-hosted-complex-non-image-layout.html"102 },103 {104 "label": "Object - Hosted Audio",105 "url": options.urlRoot + "/object-hosted-audio-layout.html",106 "referenceUrl": options.referenceUrlRoot + "/object-hosted-audio-layout.html"107 },108 {109 "label": "Object - Hosted Video",110 "url": options.urlRoot + "/object-hosted-video-layout.html",111 "referenceUrl": options.referenceUrlRoot + "/object-hosted-video-layout.html"112 },113 {114 "label": "Object - Hosted File",115 "url": options.urlRoot + "/object-hosted-file-layout.html",116 "referenceUrl": options.referenceUrlRoot + "/object-hosted-file-layout.html"117 },118 {119 "label": "Object - Harvest Image",120 "url": options.urlRoot + "/object-harvest-image-layout.html",121 "referenceUrl": options.referenceUrlRoot + "/object-harvest-image-layout.html"122 },123 {124 "label": "Object - Harvest Audio",125 "url": options.urlRoot + "/object-harvest-non-image-audio-layout.html",126 "referenceUrl": options.referenceUrlRoot + "/object-harvest-non-image-audio-layout.html"127 },128 {129 "label": "Object - Harvest Video",130 "url": options.urlRoot + "/object-harvest-non-image-video-layout.html",131 "referenceUrl": options.referenceUrlRoot + "/object-harvest-non-image-video-layout.html"132 },133 {134 "label": "Object - Harvest Text",135 "url": options.urlRoot + "/object-harvest-non-image-text-layout.html",136 "referenceUrl": options.referenceUrlRoot + "/object-harvest-non-image-text-layout.html"137 },138 {139 "label": "Search Results",140 "url": options.urlRoot + "/search-results.html",141 "referenceUrl": options.referenceUrlRoot + "/search-results.html"142 },143 {144 "label": "Static - About",145 "url": options.urlRoot + "/static-about-layout.html",146 "referenceUrl": options.referenceUrlRoot + "/static-about-layout.html"147 },148 {149 "label": "Static - Outreach",150 "url": options.urlRoot + "/static-outreach-layout.html",151 "referenceUrl": options.referenceUrlRoot + "/static-outreach-layout.html"152 },153 {154 "label": "Exhibit",155 "url": options.urlRoot + "/exhibit-layout.html",156 "referenceUrl": options.referenceUrlRoot + "/exhibit-layout.html"157 },158 {159 "label": "Theme",160 "url": options.urlRoot + "/theme-layout.html",161 "referenceUrl": options.referenceUrlRoot + "/theme-layout.html"162 },163 {164 "label": "Institution - UC - Featured",165 "url": options.urlRoot + "/institution-uc-featured-layout.html",166 "referenceUrl": options.referenceUrlRoot + "/institution-uc-featured-layout.html"167 },168 {169 "label": "Institution - Campus",170 "url": options.urlRoot + "/institution-campus-layout.html",171 "referenceUrl": options.referenceUrlRoot + "/institution-campus-layout.html"172 },173 {174 "label": "Collections Grid",175 "url": options.urlRoot + "/collections-grid.html",176 "referenceUrl": options.referenceUrlRoot + "/collections-grid.html"177 },178 {179 "label": "Search Results Grid",180 "url": options.urlRoot + "/search-results-grid.html",181 "referenceUrl": options.referenceUrlRoot + "/search-results-grid.html"182 },183 {184 "label": "Alphabetical Navigation",185 "url": options.urlRoot + "/alpha-nav.html",186 "referenceUrl": options.referenceUrlRoot + "/alpha-nav.html"187 },188 {189 "label": "Carousel",190 "url": options.urlRoot + "/carousel.html",191 "referenceUrl": options.referenceUrlRoot + "/carousel.html"192 },193 {194 "label": "Collection Intro",195 "url": options.urlRoot + "/collection-intro.html",196 "referenceUrl": options.referenceUrlRoot + "/collection-intro.html"197 },198 {199 "label": "Collections Intro",200 "url": options.urlRoot + "/collections-intro.html",201 "referenceUrl": options.referenceUrlRoot + "/collections-intro.html"202 },203 {204 "label": "Collections Row and Image Mosaic",205 "url": options.urlRoot + "/collections-row.html",206 "referenceUrl": options.referenceUrlRoot + "/collections-row.html"207 },208 {209 "label": "Collections Title Search",210 "url": options.urlRoot + "/collections-titlesearch.html",211 "referenceUrl": options.referenceUrlRoot + "/collections-titlesearch.html"212 },213 {214 "label": "Comments",215 "url": options.urlRoot + "/comments.html",216 "referenceUrl": options.referenceUrlRoot + "/comments.html"217 },218 {219 "label": "Facets",220 "url": options.urlRoot + "/facets.html",221 "referenceUrl": options.referenceUrlRoot + "/facets.html"222 },223 {224 "label": "Filter",225 "url": options.urlRoot + "/filter.html",226 "referenceUrl": options.referenceUrlRoot + "/filter.html"227 },228 {229 "label": "Footer",230 "url": options.urlRoot + "/footer.html",231 "referenceUrl": options.referenceUrlRoot + "/footer.html"232 },233 {234 "label": "Header",235 "url": options.urlRoot + "/header.html",236 "referenceUrl": options.referenceUrlRoot + "/header.html"237 },238 {239 "label": "Institutions Intro",240 "url": options.urlRoot + "/institutions-intro.html",241 "referenceUrl": options.referenceUrlRoot + "/institutions-intro.html"242 },243 {244 "label": "Institutions Navigation",245 "url": options.urlRoot + "/institutions-nav.html",246 "referenceUrl": options.referenceUrlRoot + "/institutions-nav.html"247 },248 {249 "label": "Institutions Textboxes",250 "url": options.urlRoot + "/institutions-textboxes.html",251 "referenceUrl": options.referenceUrlRoot + "/institutions-textboxes.html"252 },253 {254 "label": "List View",255 "url": options.urlRoot + "/listview.html",256 "referenceUrl": options.referenceUrlRoot + "/listview.html"257 },258 {259 "label": "Metadata",260 "url": options.urlRoot + "/metadata.html",261 "referenceUrl": options.referenceUrlRoot + "/metadata.html"262 },263 {264 "label": "Object - Harvest Image",265 "url": options.urlRoot + "/object-harvest-image.html",266 "referenceUrl": options.referenceUrlRoot + "/object-harvest-image.html"267 },268 {269 "label": "Object - Hosted Audio",270 "url": options.urlRoot + "/object-hosted-audio.html",271 "referenceUrl": options.referenceUrlRoot + "/object-hosted-audio.html"272 },273 {274 "label": "Object - Hosted File",275 "url": options.urlRoot + "/object-hosted-file.html",276 "referenceUrl": options.referenceUrlRoot + "/object-hosted-file.html"277 },278 {279 "label": "Object - Hosted Simple Image",280 "url": options.urlRoot + "/object-hosted-simple-image.html",281 "referenceUrl": options.referenceUrlRoot + "/object-hosted-simple-image.html"282 },283 {284 "label": "Object - Hosted Complex Image",285 "url": options.urlRoot + "/object-hosted-complex-image.html",286 "referenceUrl": options.referenceUrlRoot + "/object-hosted-complex-image.html"287 },288 {289 "label": "Object - Hosted Video",290 "url": options.urlRoot + "/object-hosted-video.html",291 "referenceUrl": options.referenceUrlRoot + "/object-hosted-video.html"292 },293 {294 "label": "Pagination - Buttons",295 "url": options.urlRoot + "/pagination-buttons.html",296 "referenceUrl": options.referenceUrlRoot + "/pagination-buttons.html"297 },298 {299 "label": "Pagination - Dropdown",300 "url": options.urlRoot + "/pagination-dropdown.html",301 "referenceUrl": options.referenceUrlRoot + "/pagination-dropdown.html"302 },303 {304 "label": "Related Collections",305 "url": options.urlRoot + "/related-collections.html",306 "referenceUrl": options.referenceUrlRoot + "/related-collections.html"307 },308 {309 "label": "Thumbnail View",310 "url": options.urlRoot + "/thumbnail.html",311 "referenceUrl": options.referenceUrlRoot + "/thumbnail.html"312 },313 {314 "label": "Searchfield - Global",315 "url": options.urlRoot + "/searchfield-global.html",316 "referenceUrl": options.referenceUrlRoot + "/searchfield-global.html"317 },318 {319 "label": "Search Collection",320 "url": options.urlRoot + "/search-collection.html",321 "referenceUrl": options.referenceUrlRoot + "/search-collection.html"322 },323 {324 "label": "Search Within Results",325 "url": options.urlRoot + "/search-within.html",326 "referenceUrl": options.referenceUrlRoot + "/search-within.html"327 },328 {329 "label": "Thumbnail/Listview Toggle",330 "url": options.urlRoot + "/toggle.html",331 "referenceUrl": options.referenceUrlRoot + "/toggle.html"332 },333 {334 "label": "Buttons",335 "url": options.urlRoot + "/buttons.html",336 "referenceUrl": options.referenceUrlRoot + "/buttons.html"337 },338 {339 "label": "Icons",340 "url": options.urlRoot + "/icons.html",341 "referenceUrl": options.referenceUrlRoot + "/icons.html"342 },343 {344 "label": "Text",345 "url": options.urlRoot + "/text.html",346 "referenceUrl": options.referenceUrlRoot + "/text.html"347 },348 {349 "label": "Responsive Image Test",350 "url": options.urlRoot + "/responsive-img-test.html",351 "referenceUrl": options.referenceUrlRoot + "/responsive-img-test.html"352 },353 {354 "label": "boilerplate",355 "url": options.urlRoot + "/boilerplate.html",356 "referenceUrl": options.referenceUrlRoot + "/boilerplate.html"357 },358 {359 "label": "component-heading",360 "url": options.urlRoot + "/component-heading.html",361 "referenceUrl": options.referenceUrlRoot + "/component-heading.html"362 },363 {364 "label": "footer-test",365 "url": options.urlRoot + "/footer-test.html",366 "referenceUrl": options.referenceUrlRoot + "/footer-test.html"367 },368 {369 "label": "gridtest",370 "url": options.urlRoot + "/gridtest.html",371 "referenceUrl": options.referenceUrlRoot + "/gridtest.html"372 },373 {374 "label": "includetest",375 "url": options.urlRoot + "/includetest.html",376 "referenceUrl": options.referenceUrlRoot + "/includetest.html"377 },378 {379 "label": "index",380 "url": options.urlRoot + "/index.html",381 "referenceUrl": options.referenceUrlRoot + "/index.html"382 },383 {384 "label": "library-footer",385 "url": options.urlRoot + "/library-footer.html",386 "referenceUrl": options.referenceUrlRoot + "/library-footer.html"387 },388 {389 "label": "library-header",390 "url": options.urlRoot + "/library-header.html",391 "referenceUrl": options.referenceUrlRoot + "/library-header.html"392 },393 {394 "label": "object-harvest-non-image-audio",395 "url": options.urlRoot + "/object-harvest-non-image-audio.html",396 "referenceUrl": options.referenceUrlRoot + "/object-harvest-non-image-audio.html"397 },398 {399 "label": "object-harvest-non-image-text",400 "url": options.urlRoot + "/object-harvest-non-image-text.html",401 "referenceUrl": options.referenceUrlRoot + "/object-harvest-non-image-text.html"402 },403 {404 "label": "object-harvest-non-image-video",405 "url": options.urlRoot + "/object-harvest-non-image-video.html",406 "referenceUrl": options.referenceUrlRoot + "/object-harvest-non-image-video.html"407 },408 {409 "label": "popover",410 "url": options.urlRoot + "/popover.html",411 "referenceUrl": options.referenceUrlRoot + "/popover.html"412 },413 {414 "label": "search-results-grid2",415 "url": options.urlRoot + "/search-results-grid2.html",416 "referenceUrl": options.referenceUrlRoot + "/search-results-grid2.html"417 },418 {419 "label": "shapes",420 "url": options.urlRoot + "/shapes.html",421 "referenceUrl": options.referenceUrlRoot + "/shapes.html"422 },423 {424 "label": "test",425 "url": options.urlRoot + "/test.html",426 "referenceUrl": options.referenceUrlRoot + "/test.html"427 }428 ]...
scenarios-app.js
Source:scenarios-app.js
1module.exports = options => { 2 return [3 {4 "label": "BackstopJS Homepage",5 "cookiePath": "backstop_data/engine_scripts/cookies.json",6 "url": "https://garris.github.io/BackstopJS/",7 "referenceUrl": "",8 "readyEvent": "",9 "readySelector": "",10 "delay": 10,11 "hideSelectors": [],12 "removeSelectors": [],13 "hoverSelector": "",14 "clickSelector": "",15 "postInteractionWait": 0,16 "selectors": [],17 "selectorExpansion": true,18 "expect": 0,19 "misMatchThreshold" : 0.1,20 "requireSameDimensions": true21 }, 22 {23 "label": "PJAX Back After Download",24 "url": options.urlRoot + "/UCSF/items/",25 "referenceUrl": options.referenceUrlRoot + "/UCSF/items/",26 "onReadyScript": "puppet/kelsiBug.js"27 },28 // {29 // "label": "Collections Random Explore",30 // "url": options.urlRoot + "/collections/",31 // "referenceUrl": options.referenceUrlRoot + "/collections/"32 // },33 {34 "label": "Collections A-Z",35 "url": options.urlRoot + "/collections/num/",36 "referenceUrl": options.referenceUrlRoot + "/collections/num/"37 },38 {39 "label": "Collections Title Search",40 "url": options.urlRoot + "/collections/titleSearch/",41 "referenceUrl": options.referenceUrlRoot + "/collections/titleSearch/"42 },43 {44 "label": "Collection",45 "url": options.urlRoot + "/collections/26098/",46 "referenceUrl": options.referenceUrlRoot + "/collections/26098/"47 },48 {49 "label": "Institutions UC Partners",50 "url": options.urlRoot + "/institutions/",51 "referenceUrl": options.referenceUrlRoot + "/institutions/"52 },53 {54 "label": "Institutions Statewide Partners",55 "url": options.urlRoot + "/institutions/statewide-partners/",56 "referenceUrl": options.referenceUrlRoot + "/institutions/statewide-partners/"57 },58 {59 "label": "Institution Campus Home",60 "url": options.urlRoot + "/UCB/",61 "referenceUrl": options.referenceUrlRoot + "/UCB/"62 },63 {64 "label": "Institution Campus Contributors",65 "url": options.urlRoot + "/UCB/institutions/",66 "referenceUrl": options.referenceUrlRoot + "/UCB/institutions/"67 },68 {69 "label": "Institution Campus Search",70 "url": options.urlRoot + "/UCB/items/",71 "referenceUrl": options.referenceUrlRoot + "/UCB/items/"72 },73 {74 "label": "Institution Home",75 "url": options.urlRoot + "/institution/4/",76 "referenceUrl": options.referenceUrlRoot + "/institution/4/"77 },78 {79 "label": "Institution Search",80 "url": options.urlRoot + "/institution/4/items/",81 "referenceUrl": options.referenceUrlRoot + "/institution/4/items/"82 },83 {84 "label": "Item Page: Harvested Image",85 "url": options.urlRoot + "/item/ark:/13030/tf0n39n8km/",86 "referenceUrl": options.referenceUrlRoot + "/item/ark:/13030/tf0n39n8km/",87 "delay": 100088 },89 {90 "label": "Item Page: Harvested Text",91 "url": options.urlRoot + "/item/ark:/13030/hb4489p0wt/",92 "referenceUrl": options.referenceUrlRoot + "/item/ark:/13030/hb4489p0wt/",93 "delay": 100094 },95 {96 "label": "Item Page: Hosted Image",97 "url": options.urlRoot + "/item/ark:/86086/n28w3d2d/",98 "referenceUrl": options.referenceUrlRoot + "/item/ark:/86086/n28w3d2d/",99 "delay": 1000100 },101 {102 "label": "Item Page: Hosted Video",103 "url": options.urlRoot + "/item/b6c47839-def8-4abc-a268-94464bf53f52/",104 "referenceUrl": options.referenceUrlRoot + "/item/b6c47839-def8-4abc-a268-94464bf53f52/",105 "delay": 1000106 },107 {108 "label": "Item Page: Hosted Audio",109 "url": options.urlRoot + "/item/b96339cf-a900-43a9-87e4-7c20b1799518/",110 "referenceUrl": options.referenceUrlRoot + "/item/b96339cf-a900-43a9-87e4-7c20b1799518/",111 "delay": 1000112 },113 {114 "label": "Item Page: Complex Book-like TIFFs",115 "url": options.urlRoot + "/item/ark:/13030/kt9h4nf6h6/",116 "referenceUrl": options.referenceUrlRoot + "/item/ark:/13030/kt9h4nf6h6/",117 "delay": 1000118 },119 {120 "label": "Item Page: Complex Book-like TIFFs and PDFs",121 "url": options.urlRoot + "/item/ark:/86086/n2ks6rph/",122 "referenceUrl": options.referenceUrlRoot + "/item/ark:/86086/n2ks6rph/",123 "delay": 1000124 },125 {126 "label": "Item Page: Complex Book-like PDFs",127 "url": options.urlRoot + "/item/f992b589-5f01-45f9-84ac-4e743bb8a2b1/",128 "referenceUrl": options.referenceUrlRoot + "/item/f992b589-5f01-45f9-84ac-4e743bb8a2b1/",129 "delay": 1000130 },131 {132 "label": "Item Page: Complex Album-like PDFs, MP3s, and TIFFs",133 "url": options.urlRoot + "/item/2bd6bc96-b5d6-4ebc-bc1c-55ecdcc6fda1/",134 "referenceUrl": options.referenceUrlRoot + "/item/2bd6bc96-b5d6-4ebc-bc1c-55ecdcc6fda1/",135 "delay": 1000136 },137 {138 "label": "Item Page: Complex MultiFormat MOV, MP3s, TXTs",139 "url": options.urlRoot + "/item/4e7a1232-82c0-400a-872d-13e18c1ee2d5/",140 "referenceUrl": options.referenceUrlRoot + "/item/4e7a1232-82c0-400a-872d-13e18c1ee2d5/",141 "delay": 1000142 },143 // {144 // "label": "Exhibitions Random Explore",145 // "url": options.urlRoot + "/exhibitions/",146 // "referenceUrl": options.referenceUrlRoot + "/exhibitions/"147 // },148 {149 "label": "Exhibitions Browse All",150 "url": options.urlRoot + "/exhibitions/browse/all/",151 "referenceUrl": options.referenceUrlRoot + "/exhibitions/browse/all/"152 },153 {154 "label": "Exhibitions Browse Cal History",155 "url": options.urlRoot + "/exhibitions/browse/cal-history/",156 "referenceUrl": options.referenceUrlRoot + "/exhibitions/browse/cal-history/"157 },158 {159 "label": "Exhibitions Browse Cal Cultures",160 "url": options.urlRoot + "/exhibitions/browse/cal-cultures/",161 "referenceUrl": options.referenceUrlRoot + "/exhibitions/browse/cal-cultures/"162 },163 {164 "label": "Exhibitions Browse Jarda",165 "url": options.urlRoot + "/exhibitions/browse/jarda/",166 "referenceUrl": options.referenceUrlRoot + "/exhibitions/browse/jarda/"167 },168 {169 "label": "Exhibitions Browse Uncategorized",170 "url": options.urlRoot + "/exhibitions/browse/uncategorized/",171 "referenceUrl": options.referenceUrlRoot + "/exhibitions/browse/uncategorized/"172 },173 {174 "label": "Exhibitions Title Search",175 "url": options.urlRoot + "/exhibitions/search/",176 "referenceUrl": options.referenceUrlRoot + "/exhibitions/search/"177 },178 {179 "label": "Exhibitions Title Search 'Native Americans'",180 "url": options.urlRoot + "/exhibitions/search/?title=Native+Americans",181 "referenceUrl": options.referenceUrlRoot + "/exhibitions/search/?title=Native+Americans"182 },183 {184 "label": "Static Pages: About",185 "url": options.urlRoot + "/about/",186 "referenceUrl": options.referenceUrlRoot + "/about/"187 },188 {189 "label": "Static Pages: Contact",190 "url": options.urlRoot + "/contact/",191 "referenceUrl": options.referenceUrlRoot + "/contact/"192 },193 {194 "label": "Static Pages: Help",195 "url": options.urlRoot + "/help/",196 "referenceUrl": options.referenceUrlRoot + "/help/"197 },198 {199 "label": "Static Pages: Terms of Use",200 "url": options.urlRoot + "/terms/",201 "referenceUrl": options.referenceUrlRoot + "/terms/"202 },203 {204 "label": "Static Pages: For Educators",205 "url": options.urlRoot + "/for-educators/",206 "referenceUrl": options.referenceUrlRoot + "/for-educators/"207 },208 {209 "label": "Static Pages: Contribute",210 "url": options.urlRoot + "/contribute/",211 "referenceUrl": options.referenceUrlRoot + "/contribute/"212 },213 {214 "label": "Static Pages: Outreach",215 "url": options.urlRoot + "/outreach/",216 "referenceUrl": options.referenceUrlRoot + "/outreach/"217 },218 {219 "label": "Static Pages: Posters",220 "url": options.urlRoot + "/posters/",221 "referenceUrl": options.referenceUrlRoot + "/posters/"222 },223 {224 "label": "Theme",225 "url": options.urlRoot + "/exhibitions/t11/jarda/",226 "referenceUrl": options.referenceUrlRoot + "/exhibitions/t11/jarda/"227 },228 {229 "label": "Exhibition",230 "url": options.urlRoot + "/exhibitions/67/jarda-personal-experiences/",231 "referenceUrl": options.referenceUrlRoot + "/exhibitions/67/jarda-personal-experiences/"232 },233 {234 "label": "Exhibition Item with Custom Metadata",235 "url": options.urlRoot + "/exhibitions/88/items/47c4fb71-b1e7-4af8-b759-96f7d3ba2fac/",236 "referenceUrl": options.referenceUrlRoot + "/exhibitions/88/items/47c4fb71-b1e7-4af8-b759-96f7d3ba2fac/"237 },238 {239 "label": "Essay",240 "url": options.urlRoot + "/exhibitions/essay/8/relocation/",241 "referenceUrl": options.referenceUrlRoot + "/exhibitions/essay/8/relocation/"242 },243 {244 "label": "Lesson Plan",245 "url": options.urlRoot + "/for-educators/3/how-do-men-you-become-great/",246 "referenceUrl": options.referenceUrlRoot + "/for-educators/3/how-do-men-you-become-great/"247 },248 ];...
Technologies.js
Source:Technologies.js
1export default {2 'android_sdk': {3 displayName: 'Android SDK',4 referenceUrl: 'https://developer.android.com'5 },6 'gulp': {7 displayName: 'Gulp',8 referenceUrl: 'https://gulpjs.com'9 },10 'java': {11 displayName: 'Java',12 referenceUrl: 'https://www.oracle.com/java/'13 },14 'jquery': {15 displayName: 'jQuery',16 referenceUrl: 'https://jquery.com'17 },18 'js': {19 displayName: 'JavaScript',20 referenceUrl: 'https://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742'21 },22 'gml': {23 displayName: 'GML',24 referenceUrl: 'https://docs.yoyogames.com/source/dadiospice/002_reference/001_gml%20language%20overview'25 },26 'c': {27 displayName: 'C',28 referenceUrl: 'https://en.wikipedia.org/wiki/C_%28programming_language%29'29 },30 'gbdk': {31 displayName: 'GBDK',32 referenceUrl: 'http://gbdk.sourceforge.net'33 },34 'xml': {35 displayName: 'XML',36 referenceUrl: 'https://en.wikipedia.org/wiki/XML'37 },38 'npm': {39 displayName: 'NPM',40 referenceUrl: 'https://npm.org'41 },42 'react': {43 displayName: 'React',44 referenceUrl: 'https://reactjs.org'45 },46 'fbflux': {47 displayName: 'Flux (FB)',48 referenceUrl: 'https://github.com/facebook/flux'49 },50 'redux': {51 displayName: 'Redux',52 referenceUrl: 'https://redux.js.org'53 },54 'mysql': {55 displayName: 'MySQL',56 referenceUrl: 'https://www.oracle.com/mysql'57 },58 'php': {59 displayName: 'PHP',60 referenceUrl: 'http://php.net'61 },62 'yui3': {63 displayName: 'YUI3',64 referenceUrl: 'https://yuilibrary.com'65 },66 'html': {67 displayName: 'HTML5',68 referenceUrl: 'https://en.wikipedia.org/wiki/HTML5'69 },70 'nodejs': {71 displayName: 'NodeJS',72 referenceUrl: 'https://nodejs.org'73 },74 'threejs': {75 displayName: 'Three.JS',76 referenceUrl: 'https://threejs.org/'77 },78 'yeoman': {79 displayName: 'Yeoman',80 referenceUrl: 'http://yeoman.io'81 },82 'slack-api': {83 displayName: 'Slack API',84 referenceUrl: 'https://api.slack.com/'85 }...
Using AI Code Generation
1const { referenceURL } = require('storybook-test-runner');2const { referenceURL } = require('storybook-test-runner');3const { referenceURL } = require('storybook-test-runner');4const { referenceURL } = require('storybook-test-runner');5const { referenceURL } = require('storybook-test-runner');6const { referenceURL } = require('storybook-test-runner');7const { referenceURL } = require('storybook-test-runner');8const { referenceURL } = require('storybook-test-runner');9const { referenceURL } = require('storybook-test-runner');10const { referenceURL } = require('storybook-test-runner');11const { referenceURL } = require('storybook-test-runner');12const { referenceURL } = require('storybook-test-runner');13const { referenceURL } = require('storybook-test-runner');
Using AI Code Generation
1import { referenceURL } from 'storybook-test-runner';2describe('Test', () => {3 it('should take a screenshot', async () => {4 });5});6import { referenceURL } from 'storybook-test-runner';7describe('Test', () => {8 it('should take a screenshot', async () => {9 });10});11import { referenceURL } from 'storybook-test-runner';12describe('Test', () => {13 it('should take a screenshot', async () => {14 });15});16import { referenceURL } from 'storybook-test-runner';17describe('Test', () => {18 it('should take a screenshot', async () => {19 });20});21import { referenceURL } from 'storybook-test-runner';22describe('Test', () => {23 it('should take a screenshot', async () => {24 });25});26import { referenceURL } from 'storybook-test-runner';27describe('Test', () => {28 it('should take a screenshot', async () => {29 });30});31import { referenceURL } from 'storybook-test-runner';32describe('Test', () => {33 it('should take a screenshot', async () => {34 });35});
Using AI Code Generation
1const { referenceURL } = require('storybook-test-runner');2const { expect } = require('chai');3describe('test', () => {4 it('should match the reference', async () => {5 expect(ref).to.matchReference();6 });7});8const { reference } = require('storybook-test-runner');9const { expect } = require('chai');10describe('test', () => {11 it('should match the reference', async () => {12 const ref = await reference('Button', 'Primary');13 expect(ref).to.matchReference();14 });15});16const { referenceScreenshot } = require('storybook-test-runner');17const { expect } = require('chai');18describe('test', () => {19 it('should match the reference', async () => {20 const ref = await referenceScreenshot('Button', 'Primary');21 expect(ref).to.matchReference();22 });23});24const { referenceScreenshotURL } = require('storybook-test-runner');25const { expect } = require('chai');26describe('test', () => {27 it('should match the reference', async () => {28 expect(ref).to.matchReference();29 });30});31const { referenceScreenshot } = require('storybook-test-runner');32const { expect } = require('chai');33describe('test', () => {34 it('should match the reference', async () => {35 const ref = await referenceScreenshot('Button', 'Primary', {36 viewport: {37 },38 });39 expect(ref).to.matchReference();40 });41});42const { referenceScreenshotURL } = require('storybook-test-runner');43const { expect } = require('chai');
Using AI Code Generation
1const { referenceURL } = require('storybook-test-runner');2describe('Button', () => {3 it('should look like expected', async () => {4 await referenceURL(url);5 });6});
Using AI Code Generation
1var storybookTestRunner = require('storybook-test-runner');2var path = require('path');3storybookTestRunner({4 storybook: {5 stories: path.resolve(__dirname, '../stories')6 },7 test: {8 testDir: path.resolve(__dirname, '../test')9 }10}).then(function() {11 console.log('Storybook test runner completed');12});13var expect = require('chai').expect;14var storybookTestRunner = require('storybook-test-runner');15describe('storybook test runner', function() {16 this.timeout(15000);17 it('should match the reference image', function() {18 return storybookTestRunner({19 storybook: {20 stories: path.resolve(__dirname, '../stories')21 },22 test: {23 testDir: path.resolve(__dirname, '../test')24 }25 }).then(function() {26 console.log('Storybook test runner completed');27 });28 });29});30import React from 'react';31import { storiesOf } from '@storybook/react';32import { action } from '@storybook/addon-actions';33import MyButton from '../components/MyButton';34storiesOf('MyButton', module)35 .add('with text', () => <MyButton onClick={action('clicked')}>Hello Button</MyButton>)36 .add('with some emoji', () => (37 <MyButton onClick={action('clicked')}>38 ));39import React from 'react';40import { storiesOf } from '@storybook/react';41import { action } from '@storybook/addon-actions';42import MyButton from '../components/MyButton';43storiesOf('MyButton', module)44 .add('with text', () => <MyButton onClick={action('clicked')}>Hello Button</MyButton>)45 .add('with some emoji', ()
Using AI Code Generation
1const { referenceURL } = require('storybook-test-runner');2const test = require('tape');3test('Storybook', async (t) => {4 const url = await referenceURL('Button', 'Primary');5 t.end();6});7const { referenceImage } = require('storybook-test-runner');8const test = require('tape');9test('Storybook', async (t) => {10 const image = await referenceImage('Button', 'Primary');11 t.end();12});13const { referenceScreenshot } = require('storybook-test-runner');14const test = require('tape');15test('Storybook', async (t) => {16 const screenshot = await referenceScreenshot('Button', 'Primary');17 t.end();18});19#### `referenceURL(storyName, storyKind)`20#### `referenceImage(storyName, storyKind)`21#### `referenceScreenshot(storyName, storyKind)`22const { referenceScreenshot } = require('storybook-test-runner');23const test = require('tape');24test('Storybook', async (t) => {25 const screenshot = await referenceScreenshot('Button', 'Primary', { viewport: '320x480' });26 t.end();27});
Using AI Code Generation
1const { referenceURL } = require('storybook-test-runner');2referenceURL(url);3const { referenceURL } = require('storybook-test-runner');4referenceURL(url);5const { referenceURL } = require('storybook-test-runner');6referenceURL(url);7const { referenceURL } = require('storybook-test-runner');8referenceURL(url);9const { referenceURL } = require('storybook-test-runner');10referenceURL(url);11const { referenceURL } = require('storybook-test-runner');12referenceURL(url);13const { referenceURL } = require('storybook-test-runner');14referenceURL(url);15const { referenceURL } = require('storybook-test-runner');16referenceURL(url);17const { referenceURL } = require('storybook-test-runner
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!