Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 2 additions & 2 deletions cypress/integration/ambianic-tests/navbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ context('Check Navbar Items', () => {
cy.visit('http://localhost:8080/about')
})

it('Should be a download off button before edge connection', () => {
cy.get('[data-cy=download-off]').should('exist')
it('Should display a connection-offline icon before edge connection', () => {
cy.get('[data-cy=connection-status]').should('exist')
})

/** future buttons
Expand Down
16 changes: 16 additions & 0 deletions cypress/integration/ambianic-tests/snackbar.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/// <reference types="cypress" />

context('RemoteConnections', () => {
beforeEach(() => {
cy.visit('http://localhost:8080/timeline')
})

it('Displays snackbar when page loads', () => {
cy.get('[data-cy=snackbar]').find('#snack-message').should(element => {
if (element) {
expect(element).to.have.length(1)
expect(element).to.contain('Connecting to Ambianic Edge device')
}
})
})
})
1 change: 1 addition & 0 deletions cypress/integration/ambianic-tests/timeline.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ context('Timeline', () => {
cy.url().should('include', '/timeline')
})


// Try to get this to work once we have mock data

// it('Get timeline data', () => {
Expand Down
Loading