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
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-class-properties"],
"ignore": ["./src/DatasetManager.type.js"]
"ignore": ["./src/dataset-managers/DatasetManager.type.js"]
}
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
run: npm install
- name: Run Tests
run: npm run test
- name: Run collab server
run: npm run start:server:collab
- name: Cypress test
run: npm run test:browser
- name: Build
run: npm run build
- name: Release
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test
on: ["pull_request"]
jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Test
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: npm install
- name: Cypress test
run: npm run test:browser
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ dist
udt-collaboration-server.db
.env
cypress/videos
cypress/screenshots
debug.log
package-lock.json
8 changes: 4 additions & 4 deletions cypress/fixtures/samples-dummies.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"regionTypesAllowed": ["bounding-box", "polygon", "point"]
},
"samples": [
{
"_id": "sdjz2g1qa",
"imageUrl": "https://www.filalapat.fr/sites/default/files/2020-02/age_chat.jpg"
},
{
"_id": "shcscmhiv",
"imageUrl": "https://fr.cdn.v5.futura-sciences.com/buildsv6/images/wide1920/0/0/d/00dd1479a5_108485_chat-domestique.jpg",
Expand All @@ -30,10 +34,6 @@
}
],
"brush": "complete"
},
{
"_id": "sdjz2g1qa",
"imageUrl": "https://www.filalapat.fr/sites/default/files/2020-02/age_chat.jpg"
}
]
}
190 changes: 0 additions & 190 deletions cypress/integration/CognitoServer/basic.spec.js

This file was deleted.

15 changes: 15 additions & 0 deletions cypress/integration/utils/cypress-command/local-storage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//https://github.com/cypress-io/cypress/issues/461#issuecomment-325402086
const command = () => {
let LOCAL_STORAGE_MEMORY = {}
Cypress.Commands.add("saveLocalStorage", () => {
Object.keys(localStorage).forEach((key) => {
LOCAL_STORAGE_MEMORY[key] = localStorage[key]
})
})
Cypress.Commands.add("restoreLocalStorage", () => {
Object.keys(LOCAL_STORAGE_MEMORY).forEach((key) => {
localStorage.setItem(key, LOCAL_STORAGE_MEMORY[key])
})
})
}
export default command
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default () => {
const env = Cypress.env()

return {
Auth: {
identityPoolId: env.AWS_IDENTITY_POOL_ID,
Expand Down
Loading