File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1- import AutocompleteElement from './auto-complete-element.js'
2- export { AutocompleteElement as default }
1+ import AutoCompleteElement from './auto-complete-element.js'
2+ export { AutoCompleteElement , AutoCompleteElement as default }
33export { default as AutocompleteEvent } from './auto-complete-event.js'
Original file line number Diff line number Diff line change @@ -12,23 +12,22 @@ export default {
1212 browsers : [ browser ( 'chromium' ) ] ,
1313 testFramework : {
1414 config : {
15- timeout : 500 ,
15+ timeout : 1000 ,
1616 } ,
1717 } ,
1818
1919 middleware : [
2020 async ( { request, response} , next ) => {
21- const { method, path} = request
22- if ( method === 'POST' ) {
23- if ( path . startsWith ( '/fail' ) ) {
24- response . status = 422
25- // eslint-disable-next-line i18n-text/no-en
26- response . body = 'This is an error'
27- } else if ( path . startsWith ( '/success' ) ) {
28- response . status = 200
29- // eslint-disable-next-line i18n-text/no-en
30- response . body = 'This is a warning'
31- }
21+ const { method, url} = request
22+ if ( method === 'GET' && url . startsWith ( '/search?q=hub' ) ) {
23+ response . status = 200
24+ response . body = `
25+ <li role="option" data-autocomplete-value="first"><span>first</span></li>
26+ <li role="option"><span>second</span></li>
27+ <li role="option"><span>third</span></li>
28+ <li role="option" aria-disabled="true"><span>fourth</span></li>
29+ <li><a role="option" href="#hash">link</a></li>
30+ `
3231 }
3332 await next ( )
3433 } ,
You can’t perform that action at this time.
0 commit comments