Skip to content
Open
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: 4 additions & 0 deletions powerscore-entryboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ You will need to run `npm install json-server` if you've never installed it
# Editboard

Reachable through /editboard, which really means /#/editboard the way this server is configured. Not hooked up to anything, it's pretty much a demo

# Unit Testing

In addition to the usual cypress startup, the JSON-server must be active
2 changes: 1 addition & 1 deletion powerscore-entryboard/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
baseUrl: 'http://localhost:4173'
baseUrl: 'http://localhost:5173'
},
component: {
specPattern: 'src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}',
Expand Down
8 changes: 8 additions & 0 deletions powerscore-entryboard/cypress/e2e/entryboard.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
describe('Did it reach out', () => {
it('Grabs data from a remote server', () => {
cy.visit('/')
cy.intercept({ url: '/teams' }).as('request')
cy.wait('@request')
cy.get('.assignment').should('contain.text', 'Awesome Team')
})
})
6 changes: 0 additions & 6 deletions powerscore-entryboard/cypress/e2e/scorekeeper.cy.ts

This file was deleted.

22 changes: 11 additions & 11 deletions powerscore-entryboard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion powerscore-entryboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"cy:open": "cypress open",
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
Expand All @@ -29,7 +30,7 @@
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.19",
"cypress": "^13.7.2",
"cypress": "^13.12.0",
"eslint": "^8.57.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-vue": "^9.23.0",
Expand Down
2 changes: 1 addition & 1 deletion powerscore-entryboard/src/components/Entryboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ onMounted( () => {
refreshTeams()
setInterval( () => {
refreshTeams()
}, 10000)
}, 3000)
})

function getTeams() : Team[] {
Expand Down
2 changes: 1 addition & 1 deletion powerscore-entryboard/src/components/TeamInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ onMounted( () => {
setTeam()
setInterval( () => {
setTeam()
}, 10000)
}, 3000)
})

</script>
Expand Down