|
49 | 49 | it 'adds an Authorization header' do
|
50 | 50 | page.execute_script("$('#input_apiKey').val('username:password')")
|
51 | 51 | page.execute_script("$('#input_apiKey').trigger('change')")
|
52 |
| - find('#endpointListTogger_headers', visible: true).click |
53 |
| - first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click |
| 52 | + find('#endpointListTogger_authorization', visible: true).click |
| 53 | + first('a[href="#!/authorization/GET_api_authorization_format"]', visible: true).click |
54 | 54 | click_button 'Try it out!'
|
55 | 55 | expect(page).to have_css 'span.attribute', text: 'Authorization'
|
56 | 56 | expect(page).to have_css 'span.string', text: "Basic #{Base64.encode64('username:password').strip}"
|
|
66 | 66 | it 'adds an Authorization header' do
|
67 | 67 | page.execute_script("$('#input_apiKey').val('token')")
|
68 | 68 | page.execute_script("$('#input_apiKey').trigger('change')")
|
69 |
| - find('#endpointListTogger_headers', visible: true).click |
70 |
| - first('a[href="#!/headers/GET_api_headers_format"]', visible: true).click |
| 69 | + find('#endpointListTogger_authorization', visible: true).click |
| 70 | + first('a[href="#!/authorization/GET_api_authorization_format"]', visible: true).click |
71 | 71 | click_button 'Try it out!'
|
72 | 72 | expect(page).to have_css 'span.attribute', text: 'Authorization'
|
73 | 73 | expect(page).to have_css 'span.string', text: 'Bearer token'
|
|
0 commit comments