-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65e6d61
commit 4668c12
Showing
13 changed files
with
1,431 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { defineConfig } from 'cypress' | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
baseUrl: 'http://localhost:6603', | ||
includeShadowDom: true, | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
before(() => { | ||
indexedDB.deleteDatabase('starfocus-zy0myinc2') | ||
}) | ||
|
||
it('works', () => { | ||
cy.visit('/home') | ||
|
||
cy.get('#log').contains('Log').should('be.visible') | ||
cy.get('#important').contains('Important').should('be.visible') | ||
cy.get('#icebox').contains('Icebox').should('be.visible') | ||
|
||
cy.get('ion-fab-button').click() | ||
cy.get('ion-modal').within(() => { | ||
cy.contains('label', 'Title') | ||
.find('input') | ||
.wait(2000) | ||
.type('take the bins out') | ||
cy.contains('Confirm').click() | ||
}) | ||
|
||
cy.get('#view-menu-button').click() | ||
cy.contains('ion-button', 'Edit roles') | ||
// For some reason clicking edit roles doesn't work so we hard-navigate | ||
cy.visit('/constellation') | ||
|
||
cy.contains('ion-title', 'Constellation') | ||
|
||
cy.get('ion-fab-button').click() | ||
cy.get('ion-modal').within(() => { | ||
cy.contains('label', 'Title').find('input').wait(2000).type('Father') | ||
cy.get('#icons ion-icon').first().click() | ||
cy.get('#selected-icon').should('have.attr', 'icon') | ||
cy.wait(1000) | ||
cy.contains('Confirm').click() | ||
}) | ||
|
||
cy.get('ion-fab-button').click() | ||
cy.get('ion-modal').within(() => { | ||
cy.contains('label', 'Title').find('input').wait(2000).type('Partner') | ||
cy.get('#icons ion-icon').eq(1).click() | ||
cy.get('#selected-icon').should('have.attr', 'icon') | ||
cy.wait(1000) | ||
cy.contains('Confirm').click() | ||
}) | ||
|
||
cy.visit('/home') | ||
|
||
cy.get('ion-fab-button').click() | ||
cy.get('ion-modal').within(() => { | ||
cy.contains('label', 'Title') | ||
.find('input') | ||
.wait(2000) | ||
.type('be silly together') | ||
cy.get('ion-select[label="Star role"]').click() | ||
}) | ||
cy.get('ion-alert').within(() => { | ||
cy.contains('Father').click() | ||
cy.contains('OK').click() | ||
}) | ||
cy.get('ion-modal').contains('Confirm').click() | ||
|
||
cy.get('ion-fab-button').click() | ||
cy.get('ion-modal').within(() => { | ||
cy.contains('label', 'Title') | ||
.find('input') | ||
.wait(2000) | ||
.type('plan birthday day out') | ||
cy.get('ion-select[label="Star role"]').click() | ||
}) | ||
cy.get('ion-alert').within(() => { | ||
cy.contains('Partner').click() | ||
cy.contains('OK').click() | ||
}) | ||
cy.get('ion-modal').contains('Confirm').click() | ||
|
||
cy.get('#icebox').contains('take the bins out').click() | ||
cy.get('#todo-action-sheet').contains('Move to important').click() | ||
cy.get('#important').contains('take the bins out') | ||
|
||
cy.wait(1000) // Why? | ||
cy.get('#icebox').contains('be silly together').click() | ||
cy.get('#todo-action-sheet').contains('Move to important').click() | ||
cy.get('#important').contains('be silly together') | ||
|
||
cy.wait(1000) // Why? | ||
cy.get('#icebox').contains('plan birthday day out').click() | ||
cy.get('#todo-action-sheet').contains('Move to important').click() | ||
cy.get('#important').contains('plan birthday day out') | ||
|
||
cy.wait(1000) // Why? | ||
cy.get('#important') | ||
.contains('.todo', 'take the bins out') | ||
.find('ion-checkbox') | ||
.click() | ||
cy.get('#log').contains('take the bins out') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "Using fixtures to represent data", | ||
"email": "[email protected]", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} |
Oops, something went wrong.