@@ -140,7 +140,7 @@ describe('API Console documentation', () => {
140
140
await waitUntil ( ( ) => Boolean ( documentationSummary ( element ) ) ) ;
141
141
const summaryShadowRoot = documentationSummary ( element ) . shadowRoot ;
142
142
await waitUntil ( ( ) => Boolean ( summaryShadowRoot . querySelector ( '.api-title' ) ) ) ;
143
- assert . equal ( summaryShadowRoot . querySelector ( '.api-title' ) . textContent . trim ( ) , 'API title:\n Google Drive' ) ;
143
+ assert . equal ( summaryShadowRoot . querySelector ( '.api-title span ' ) . textContent . trim ( ) , 'Google Drive' ) ;
144
144
145
145
await waitUntil ( ( ) => Boolean ( summaryShadowRoot . querySelector ( '.inline-description.version' ) ) ) ;
146
146
assert . equal ( summaryShadowRoot . querySelector ( '.inline-description.version' ) . textContent . trim ( ) , 'Version:\n v2' ) ;
@@ -833,8 +833,8 @@ describe('API Console documentation', () => {
833
833
it ( 'should render URL' , async ( ) => {
834
834
await waitUntil ( ( ) => Boolean ( docShadowRoot . querySelector ( 'api-url' ) ) ) ;
835
835
const apiUrl = docShadowRoot . querySelector ( 'api-url' ) . shadowRoot ;
836
- assert . equal ( apiUrl . querySelector ( '.url-channel-value' ) . innerText . trim ( ) , 'Channel\nsmartylighting /streetlights/1/0/event/{streetlightId}/lighting/measured' ) ;
837
- assert . equal ( apiUrl . querySelector ( '.url -server-value ' ) . innerText . trim ( ) , 'Server\nmqtt://api.streetlights.smartylighting.com:{port} ' ) ;
836
+ assert . equal ( apiUrl . querySelector ( '.url-channel-value' ) . innerText . trim ( ) , 'smartylighting /streetlights/1/0/event/{streetlightId}/lighting/measured' ) ;
837
+ assert . equal ( apiUrl . querySelector ( '.async -server-name ' ) . innerText . trim ( ) , 'production ' ) ;
838
838
} ) ;
839
839
840
840
it ( 'should render description' , async ( ) => {
@@ -865,8 +865,8 @@ describe('API Console documentation', () => {
865
865
it ( 'should render URL' , async ( ) => {
866
866
await waitUntil ( ( ) => Boolean ( docShadowRoot . querySelector ( 'api-url' ) ) ) ;
867
867
const apiUrl = docShadowRoot . querySelector ( 'api-url' ) . shadowRoot ;
868
- assert . equal ( apiUrl . querySelector ( '.url-channel-value' ) . innerText . trim ( ) , 'Channelsmartylighting /streetlights/1/0/action/{streetlightId}/turn/on' ) ;
869
- assert . equal ( apiUrl . querySelector ( '.url -server-value ' ) . innerText . trim ( ) , 'Servermqtt://api.streetlights.smartylighting.com:{port} ' ) ;
868
+ assert . equal ( apiUrl . querySelector ( '.url-channel-value' ) . innerText . trim ( ) , 'smartylighting /streetlights/1/0/action/{streetlightId}/turn/on' ) ;
869
+ assert . equal ( apiUrl . querySelector ( '.async -server-name ' ) . innerText . trim ( ) , 'production ' ) ;
870
870
} ) ;
871
871
872
872
it ( 'should render methods' , async ( ) => {
0 commit comments