Skip to content

Commit 084598d

Browse files
committed
fix cypress
1 parent e66cd0e commit 084598d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/cypress/integration/Dasher_spec.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11

22
describe('Dasher', () => {
33
before(() => {
4-
cy.visit('http://127.0.0.1:8000')
4+
cy.visit('/browser/index.html')
55
})
66

7-
it('should display "dasher" text on page', () => {
8-
cy.contains('dasher')
7+
it('should render the core UI controls', () => {
8+
cy.contains('button', 'New', {timeout: 10000}).should('be.visible')
9+
cy.contains('button', 'Prefs').should('be.visible')
10+
cy.get('#user-interface').should('exist')
911
})
1012

1113
it('A screenshot will be saved.', () => {

tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"eslint": "eslint -c .eslintrc.yml ../browser",
99
"cy:open": "cypress open",
1010
"cy:run": "cypress run",
11-
"server": "cd ../browser && python3 -m http.server -b 127.0.0.1",
12-
"cy:test": "start-server-and-test server http://127.0.0.1:8000 cy:run"
11+
"server": "cd .. && python3 -m http.server -b 127.0.0.1",
12+
"cy:test": "start-server-and-test server http://127.0.0.1:8000/browser/index.html cy:run"
1313
},
1414
"author": "",
1515
"license": "ISC",

0 commit comments

Comments
 (0)