File tree 2 files changed +13
-14
lines changed
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 }
3
3
export { default as AutocompleteEvent } from './auto-complete-event.js'
Original file line number Diff line number Diff line change @@ -12,23 +12,22 @@ export default {
12
12
browsers : [ browser ( 'chromium' ) ] ,
13
13
testFramework : {
14
14
config : {
15
- timeout : 500 ,
15
+ timeout : 1000 ,
16
16
} ,
17
17
} ,
18
18
19
19
middleware : [
20
20
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
+ `
32
31
}
33
32
await next ( )
34
33
} ,
You can’t perform that action at this time.
0 commit comments