Skip to content

Commit

Permalink
build: cleanup .gitpod.yml
Browse files Browse the repository at this point in the history
Signed-off-by: ivelin <ivelin@ambianic.ai>
  • Loading branch information
ivelin committed Apr 18, 2022
2 parents 9dd2e24 + 2019d03 commit 4d07aad
Show file tree
Hide file tree
Showing 5 changed files with 4,972 additions and 17,461 deletions.
19 changes: 8 additions & 11 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ image:

tasks:
- init: |
touch /tmp/.npm-lock
# bring in secret access tokens from gitpod user dashboard
eval $(gp env -e)
npm install
npm run prepare
npm update
npm audit fix
npm install -g @vue/cli
rm /tmp/.npm-lock
gp sync-done install
- init: |
echo "Waiting for npm install to complete"
sleep 1 && while [ -f /tmp/.npm-lock ]; do sleep 1; done
gp sync-await install
command: |
echo "Starting Ambianic UI in dev mode:"
npm run serve
- init: |
echo "Waiting for npm install to complete"
sleep 1 && while [ -f /tmp/.npm-lock ]; do sleep 1; done
gp sync-await install
# echo "Waiting for Ambianic UI to start..."
# gp await-port 8080 && gp preview $(gp url 8080)/index.html
command: |
Expand All @@ -30,24 +31,20 @@ tasks:
npm run test
- init: |
echo "Waiting for npm install to complete"
sleep 1 && while [ -f /tmp/.npm-lock ]; do sleep 1; done
gp sync-await install
# echo "Waiting for Ambianic UI to start.."
# gp await-port 8080 && gp preview $(gp url 8080)/index.html
gp await-port 8080 && gp preview $(gp url 8080)/index.html
command: |
echo "Starting Cypress in Interactive Mode"
npm run cy:open
- init: |
echo "Waiting for npm install to complete"
sleep 1 && while [ -f /tmp/.npm-lock ]; do sleep 1; done
gp sync-await install
command: |
echo "Starting http server for local HTML file preview"
npm install -g browser-sync
npx browser-sync start --watch --directory --server
# vscode:
# extensions:
# - octref.vetur@0.31.3:QHyAEoimIBiRDoL6WtEoRg==

ports:
- port: 8080 # Ambianic UI App
onOpen: open-browser
Expand Down
11 changes: 10 additions & 1 deletion cypress/integration/ambianic-tests/settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,16 @@ context('Settings', () => {
cy.get('[data-cy=mydevices-btn]').contains('My Devices')
})

it('Should display edge device peer ID', () => {
it('Should have Timeline button after connecting', () => {
cy.window().then(win => {
cy.get('[data-cy=timeline-btn]').should('not.exist').then( ($el) => {
_fakeConnect(cy, win)
cy.get('[data-cy=timeline-btn]').should('exist').contains('Timeline')
})
})
})

it('Should display edge device peer ID after connecting', () => {
cy.window().then(win => {
cy.get('[data-cy=list-item-edgePeerID]').should('not.exist').then( ($el) => {
_fakeConnect(cy, win)
Expand Down
Loading

0 comments on commit 4d07aad

Please sign in to comment.