Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
44efd4c
DX-2775 Update Voice About Page
ckoegel Aug 17, 2022
baad7f5
finish Voice about page
ckoegel Aug 18, 2022
2077485
DX-2790
ckoegel Aug 18, 2022
a116c97
newline at eof
ckoegel Aug 18, 2022
7b7f69e
newlines at eof
ckoegel Aug 19, 2022
c0ef6bb
remove duplicate voice quick start from sidebar
ckoegel Aug 19, 2022
c000911
remove startStream for now
ckoegel Aug 19, 2022
ee78018
change get started button to stay on same tab
ckoegel Aug 19, 2022
95b264b
alignment of panels
ckoegel Aug 19, 2022
a1121a0
shadows
ckoegel Aug 19, 2022
0375489
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Aug 25, 2022
4d89ee4
prep for splash page changes
ckoegel Aug 25, 2022
87e59cb
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Aug 25, 2022
b34bbe9
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Sep 7, 2022
0f40691
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Sep 7, 2022
9ce423c
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Sep 12, 2022
e885364
DX-2816 Updates to Voice About Page (#706)
ckoegel Sep 12, 2022
a6762fc
Merge branch 'DX-2775' of https://github.com/Bandwidth/api-docs into …
ckoegel Sep 12, 2022
4adabd7
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Sep 12, 2022
3bb74db
DX-2790 Update Doc Site Landing Page
ckoegel Sep 12, 2022
6f7aa1c
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Sep 12, 2022
1630153
newlines
ckoegel Sep 14, 2022
cc31238
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Sep 22, 2022
9542b84
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Sep 26, 2022
5773c4a
add images
ckoegel Sep 26, 2022
3c12e04
update splash page and carousel
ckoegel Sep 26, 2022
0a5c924
carousel works now
ckoegel Sep 28, 2022
b3dbf40
resizing
ckoegel Sep 28, 2022
17a9d9a
cleanup and comments
ckoegel Sep 29, 2022
d6a07f3
docs -> guides
ckoegel Sep 29, 2022
f0debd6
comment in css
ckoegel Oct 3, 2022
b2152a7
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Oct 3, 2022
e441de5
yarn lock
ckoegel Oct 3, 2022
8ece258
DX-2790 Cypress Tests (#759)
ckoegel Oct 3, 2022
5975b3a
redo carousel cards to use tags
ckoegel Oct 3, 2022
573b86d
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Oct 12, 2022
3bfa115
update for blog posts
ckoegel Oct 13, 2022
3e5cb09
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Oct 17, 2022
640658e
typo
ckoegel Oct 17, 2022
24c70ef
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Nov 7, 2022
a5d27a0
update to docusaurus 2.2
ckoegel Nov 7, 2022
ef724f3
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Nov 8, 2022
eac3ea6
add blog posts
ckoegel Nov 8, 2022
225c9fa
add resizing css
ckoegel Nov 9, 2022
ecabcbb
cleanup
ckoegel Nov 9, 2022
a48b92f
typo
ckoegel Nov 9, 2022
69962b2
Merge branch 'main' of https://github.com/Bandwidth/api-docs into DX-…
ckoegel Nov 9, 2022
e7b1ebd
update tests
ckoegel Nov 9, 2022
3e4f280
newline at eof
ckoegel Nov 9, 2022
d37e4e9
fix carousel tests
ckoegel Nov 9, 2022
de54775
use timeout var and remove static css
ckoegel Nov 10, 2022
b5b5c7a
move static css to css file
ckoegel Nov 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
portal/
specs/Global/

#cypress test artifacts
/site/cypress/screenshots
/site/cypress/videos

# Node Modules
node_modules/

Expand Down
71 changes: 71 additions & 0 deletions site/blogposts.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/1662673862402.jpg",
"categories": ["Messaging"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
"postLink": "https://www.bandwidth.com/blog/toll-free-verification-webinar/",
"postTitle": "Webinar FAQ: Toll-free Verification"
},{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Voice-Quality-CCaaS-1.png",
"categories": ["Voice"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
"postLink": "https://www.bandwidth.com/blog/improving-the-agent-experience/",
"postTitle": "Voice quality: The unsung hero of agent experience"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_CallUKFromUS.png",
"categories": ["Voice"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/voice/"],
"postLink": "https://www.bandwidth.com/blog/how-to-dial-the-uk-from-the-us/",
"postTitle": "How to Dial the U.K. from the U.S. - Bandwidth's Calling Guide"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Send-to-Duet-Teams.png",
"categories": ["Messaging"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
"postLink": "https://www.bandwidth.com/blog/how-to-send-texts-from-microsoft-teams/",
"postTitle": "How to send texts from Microsoft Teams"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/411-Toll-Free-Verification.png",
"categories": ["Messaging", "The 411"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/", "https://www.bandwidth.com/blog/category/the-411/"],
"postLink": "https://www.bandwidth.com/blog/toll-free-verification-411-video/",
"postTitle": "Toll-free Verification"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Global-Regulations-NoJitter-Webinar-Recap.png",
"categories": ["911 Access", "Phone Numbers"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/911-access/", "https://www.bandwidth.com/blog/category/phone-numbers/"],
"postLink": "https://www.bandwidth.com/blog/telecom-compliance-for-global-enterprises/",
"postTitle": "Telecom compliance in the U.S. and around the world"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Non-fixed-VoIP-1.png",
"categories": ["Phone Numbers"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/phone-numbers/"],
"postLink": "https://www.bandwidth.com/blog/non-fixed-voip/",
"postTitle": "What is Non-Fixed VoIP? A Complete Business Guide"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_SMSvsMMS-HeaderPreview-1.png",
"categories": ["Messaging"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
"postLink": "https://www.bandwidth.com/blog/what-is-mms-sms-how-do-they-differ/",
"postTitle": "SMS vs MMS - how do they differ?"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Blog_Hacker-Hours-2021-2022.png",
"categories": ["DevStack"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/devstack/"],
"postLink": "https://www.bandwidth.com/blog/hacker-hours-2021-in-review-and-the-progression-of-2022/",
"postTitle": "Hacker Hours: 2021 in review and the progression of 2022"
},
{
"imageUrl": "https://www.bandwidth.com/wp-content/uploads/Untitled-design-1.png",
"categories": ["Messaging"],
"categoryLinks": ["https://www.bandwidth.com/blog/category/messaging/"],
"postLink": "https://www.bandwidth.com/blog/switching-to-a-twilio-alternative/",
"postTitle": "Switching to a Twilio alternative"
}
]
2 changes: 1 addition & 1 deletion site/cypress/e2e/tests/api_reference.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ context('Emergency Notifications API SVG Link on API Reference Page', () => {
testSvgLink('/apis/','svg[alt="Emergency Notifications API"]', 'apis/dash-notifications')
})

context('Emergenc Notifications API Text Link on API Reference Page', () => {
context('Emergency Notifications API Text Link on API Reference Page', () => {
testTextLink('/apis/','Emergency Notifications API', 'apis/dash-notifications')
})

Expand Down
58 changes: 39 additions & 19 deletions site/cypress/e2e/tests/docs.cy.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,57 @@
import {testTextLink, extLinkTester} from '../../utils/utils'
import {testTextLink, testSvgLink} from '../../utils/utils'

context('Account Management Link', () => {
testTextLink('/docs','Account Management','docs/account', '.docs-intro-grid-item')
context('Account Text Link', () => {
testTextLink('/docs', 'Account', 'docs/account', '.textLink_src-components-css-ItemGrid-module')
})

context('Numbers Link', () => {
testTextLink('/docs','Numbers','docs/numbers', '.docs-intro-grid-item')
context('Account SVG Link', () => {
testSvgLink('/docs/','svg[alt="Account"]', 'docs/account')
})

context('Voice Link', () => {
testTextLink('/docs','Voice', 'docs/voice', '.docs-intro-grid-item')
context('Numbers Text Link', () => {
testTextLink('/docs','Numbers','docs/numbers', '.textLink_src-components-css-ItemGrid-module')
})

context('Messaging Link', () => {
testTextLink('/docs','Messaging','docs/messaging', '.docs-intro-grid-item')
context('Numbers SVG Link', () => {
testSvgLink('/docs/','svg[alt="Numbers"]', 'docs/numbers')
})

context('WebRTC Link', () => {
testTextLink('/docs','WebRTC', 'docs/webrtc' ,'.docs-intro-grid-item')
context('Voice Text Link', () => {
testTextLink('/docs','Voice', 'docs/voice', '.textLink_src-components-css-ItemGrid-module')
})

context('Multi-Factor Authentication Link', () => {
testTextLink('/docs','Multi-Factor Authentication', 'docs/mfa' ,'.docs-intro-grid-item')
context('Voice SVG Link', () => {
testSvgLink('/docs/','svg[alt="Voice"]', 'docs/voice')
})

context('Emergency Services Link', () => {
testTextLink('/docs','Emergency Services', 'docs/emergency' ,'.docs-intro-grid-item')
context('Messaging Text Link', () => {
testTextLink('/docs','Messaging','docs/messaging', '.textLink_src-components-css-ItemGrid-module')
})

context('Next - About Link', () => {
testTextLink('/docs','About', 'docs/account' ,'a.pagination-nav__link')
context('Messaging SVG Link', () => {
testSvgLink('/docs/','svg[alt="Messaging"]', 'docs/messaging')
})

context('Edit This Page Link', () => {
extLinkTester('/docs', 'a.theme-edit-this-page', 'https://github.com/Bandwidth/api-docs/edit/main/site/docs/intro.mdx')
context('WebRTC Text Link', () => {
testTextLink('/docs','WebRTC', 'docs/webrtc' ,'.textLink_src-components-css-ItemGrid-module')
})

context('WebRTC SVG Link', () => {
testSvgLink('/docs/','svg[alt="WebRTC"]', 'docs/webrtc')
})

context('Multi-Factor Authentication Text Link', () => {
testTextLink('/docs','Multi-Factor Authentication', 'docs/mfa' ,'.textLink_src-components-css-ItemGrid-module')
})

context('Multi-Factor Authentication SVG Link', () => {
testSvgLink('/docs/','svg[alt="Multi-Factor Authentication"]', 'docs/mfa')
})

context('Emergency Text Link', () => {
testTextLink('/docs','Emergency', 'docs/emergency' ,'.textLink_src-components-css-ItemGrid-module')
})

context('Emergency SVG Link', () => {
testSvgLink('/docs/','svg[alt="Emergency"]', 'docs/emergency')
})
21 changes: 13 additions & 8 deletions site/cypress/e2e/tests/docs_sidebar.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,53 @@ import {testSidebar} from '../../utils/utils'

context('Testing the Docs Sidebar Tabs', () => {
beforeEach(() => {
cy.visit('/docs')
cy.visit('/docs/versions')
})

it('Should verify that the Account Management tab and subtabs opens and closes properly', () => {
it('Should verify that the Account Management tab and sub-tabs opens and closes properly', () => {
testSidebar('Account Management')
testSidebar('Setup')
})

it('Should verify that the Numbers tab and subtabs opens and closes properly', () => {
it('Should verify that the Numbers tab and sub-tabs opens and closes properly', () => {
testSidebar('Numbers')
testSidebar('Webhooks')
testSidebar('Guides and Tutorials')
})

it('Should verify that the Voice tab and subtabs opens and closes properly', () => {
it('Should verify that the Voice tab and sub-tabs opens and closes properly', () => {
testSidebar('Voice')
testSidebar('Webhooks')
testSidebar('BXML')
testSidebar('Guides and Tutorials')
})

it('Should verify that the Messaging tab and subtabs opens and closes properly', () => {
it('Should verify that the Messaging tab and sub-tabs opens and closes properly', () => {
testSidebar('Messaging')
testSidebar('Guides and Tutorials')
testSidebar('Campaign Management')
testSidebar('10DLC CSP Campaigns')
testSidebar('10DLC Campaign Imports')
})

it('Should verify that the WebRTC tab and subtabs opens and closes properly', () => {
it('Should verify that the WebRTC tab and sub-tabs opens and closes properly', () => {
testSidebar('WebRTC')
testSidebar('Guides and Tutorials')
})

it('Should verify that the Multi-Factor Authentication tab and subtabs opens and closes properly', () => {
it('Should verify that the Multi-Factor Authentication tab and sub-tabs opens and closes properly', () => {
testSidebar('Multi-Factor Authentication')
testSidebar('Webhooks')
})

it('Should verify that the Emergency Services tab and subtabs opens and closes properly', () => {
it('Should verify that the Emergency Services tab and sub-tabs opens and closes properly', () => {
testSidebar('Emergency Services')
testSidebar('Bandwidth Dashboard')
testSidebar('911 Access Dashboard')
})

// TODO ONEID-1304
// it('Should verify that the Identity Management tab and sub-tabs opens and closes properly', () => {
// testSidebar('Identity Management')
// })
})
50 changes: 15 additions & 35 deletions site/cypress/e2e/tests/home.cy.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,29 @@
import {testSvgLink, testTextLink} from '../../utils/utils'
import {splashRowTester, testTextLink, testCarousel} from '../../utils/utils'

context('Numbers Docs SVG Link on Homepage', () => {
testSvgLink('/','svg[alt="Numbers"]', 'docs/numbers')
context('Guides Splash Row Content', () => {
splashRowTester('/', 'Check out our guides', '.splash_src-components-css-SplashPage-module > :nth-child(2)', 'Read the guides →')
})

context('Numbers Docs Text Link on Homepage', () => {
testTextLink('/','Numbers', 'docs/numbers')
context('Read the guides link', () => {
testTextLink('/','Read the guides', 'docs' ,'.link_src-components-css-SplashPage-module')
})

context('Voice Docs SVG Link on Homepage', () => {
testSvgLink('/','svg[alt="Voice"]', 'docs/voice')
context('APIS Splash Row Content', () => {
splashRowTester('/', 'Dig into our API reference', '.splash_src-components-css-SplashPage-module > :nth-child(3)', 'See our API reference →')
})

context('Voice Docs Text Link on Homepage', () => {
testTextLink('/','Voice', 'docs/voice')
context('See our API reference link', () => {
testTextLink('/','See our API reference', 'apis' ,'.link_src-components-css-SplashPage-module')
})

context('Messaging Docs SVG Link on Homepage', () => {
testSvgLink('/','svg[alt="Messaging"]', 'docs/messaging')
context('SDKS Splash Row Content', () => {
splashRowTester('/', 'Looking for our SDKs?', '.splash_src-components-css-SplashPage-module > :nth-child(5)', 'Build with Bandwidth →')
})

context('Messaging Docs Text Link on Homepage', () => {
testTextLink('/','Messaging', 'docs/messaging')
context('Build with Bandwidth link', () => {
testTextLink('/','Build with Bandwidth', 'sdks' ,'.link_src-components-css-SplashPage-module')
})

context('Emergency Docs SVG Link on Homepage', () => {
testSvgLink('/','svg[alt="Emergency"]', 'docs/emergency')
})

context('Emergency Docs Text Link on Homepage', () => {
testTextLink('/','Emergency', 'docs/emergency')
})

context('Multi-Factor Authentication Docs SVG Link on Homepage', () => {
testSvgLink('/','svg[alt="Multi-Factor Authentication"]', 'docs/mfa')
})

context('Multi-Factor Authentication Docs Text Link on Homepage', () => {
testTextLink('/','Multi-Factor Authentication', 'docs/mfa')
})

context('WebRTC Docs SVG Link on Homepage', () => {
testSvgLink('/','svg[alt="WebRTC"]', 'docs/webrtc')
})

context('WebRTC Docs Text Link on Homepage', () => {
testTextLink('/','WebRTC', 'docs/webrtc')
context('Carousel Tests', () => {
testCarousel('/', 10, 'Recent Blog Posts')
})
4 changes: 2 additions & 2 deletions site/cypress/e2e/tests/navbar.cy.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {navTester, extLinkTester, navBarContext} from '../../utils/utils'

context('The Home Page', () => {
it('Successfuly loads', () => {
it('Successfully loads', () => {
cy.visit('/')
})
})

context('Docs', () => {
navBarContext('Docs');
navBarContext('Guides');
navTester('docs');
})

Expand Down
2 changes: 1 addition & 1 deletion site/cypress/e2e/tests/sdk.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ context('Node SDK SVG Link on SDK Page', () => {
testSvgLink('/sdks/','svg[alt="Node"]', 'sdks/node')
})

context('Numbers Docs Text Link on SDK Page', () => {
context('Node Docs Text Link on SDK Page', () => {
testTextLink('/sdks/','Node', 'sdks/node')
})

Expand Down
Loading