Skip to content

Commit c018aa2

Browse files
authored
feat: use Arduino wizard for Arduino Client Library (#6135)
* feat: use Arduino wizard for Arduino Client Library * test: update loadDataSources e2e tests
1 parent 0c04093 commit c018aa2

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

cypress/e2e/shared/loadDataSources.test.ts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ describe('Load Data Sources', () => {
1212
)
1313
})
1414

15-
it('navigate to Client Library details view and render it with essentials', () => {
15+
it('navigates to Client Library details view and renders details without a wizard', () => {
1616
cy.getByTestID('write-data--section client-libraries').within(() => {
1717
cy.getByTestID('square-grid').within(() => {
18-
cy.getByTestIDSubStr('load-data-item').first().click()
18+
cy.getByTestIDSubStr('load-data-item csharp').first().click()
1919
})
2020
})
2121

@@ -27,7 +27,25 @@ describe('Load Data Sources', () => {
2727
logoElement.should('exist')
2828
})
2929

30-
it('navigate to Telegraf Plugin details view and render it with essentials', () => {
30+
it('navigates to Client Library details view and renders a wizard', () => {
31+
const libaryWithWizard = 'Arduino'
32+
cy.getByTestID('write-data--section client-libraries').within(() => {
33+
cy.getByTestID('square-grid').within(() => {
34+
cy.getByTestIDSubStr(`load-data-item ${libaryWithWizard.toLowerCase()}`)
35+
.first()
36+
.click()
37+
})
38+
})
39+
40+
const contentNav = cy.getByTestID('subway-nav')
41+
contentNav.should('exist')
42+
contentNav.children().should('exist')
43+
44+
const titleElement = cy.get('.subway-navigation-title-text')
45+
titleElement.contains(libaryWithWizard)
46+
})
47+
48+
it('navigates to Telegraf Plugin details view and render it with essentials', () => {
3149
cy.getByTestID('write-data--section telegraf-plugins').within(() => {
3250
cy.getByTestID('square-grid').within(() => {
3351
cy.getByTestIDSubStr('load-data-item').first().click()
@@ -42,7 +60,7 @@ describe('Load Data Sources', () => {
4260
logoElement.should('exist')
4361
})
4462

45-
it('let you search things', () => {
63+
it('lets you search things', () => {
4664
cy.getByTestID('write-data--search').type('diskio')
4765

4866
cy.getByTestID('write-data--section telegraf-plugins').should('exist')

src/writeData/components/ClientLibrarySection.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ const ClientLibrarySection = () => {
3030
const org = useSelector(getOrg)
3131

3232
const onBoardingItems = {
33-
python: 'python',
34-
'javascript-node': 'nodejs',
33+
arduino: 'arduino',
3534
go: 'golang',
35+
'javascript-node': 'nodejs',
36+
python: 'python',
3637
}
3738

3839
if (!items.length) {

0 commit comments

Comments
 (0)