Skip to content

Commit

Permalink
test: e2e with workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Myllaume authored Jun 15, 2024
1 parent 5231f62 commit 8b1e096
Show file tree
Hide file tree
Showing 41 changed files with 1,903 additions and 352 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: E2E tests

on:
push:
branches: ['develop']
pull_request:
branches: ['develop']

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install Dependencies
run: npm install

- name: Install Cosma
run: npm install . --global

- name: Build cosmoscopes
run: sh ./e2e/exec-modelize.sh

- name: Run E2E tests
run: npm run test:e2e
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
**/temp
.DS_Store
/build
config.yml
cosmoscope.html
47 changes: 0 additions & 47 deletions core/e2e/filters.cy.js

This file was deleted.

43 changes: 0 additions & 43 deletions core/e2e/focus.cy.js

This file was deleted.

36 changes: 0 additions & 36 deletions core/e2e/graph-controls.cy.js

This file was deleted.

52 changes: 0 additions & 52 deletions core/e2e/links.cy.js

This file was deleted.

41 changes: 0 additions & 41 deletions core/e2e/panels.cy.js

This file was deleted.

32 changes: 0 additions & 32 deletions core/e2e/tags.cy.js

This file was deleted.

75 changes: 0 additions & 75 deletions core/e2e/timeline.cy.js

This file was deleted.

3 changes: 1 addition & 2 deletions core/models/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ module.exports = class Graph {
const [begin, end] = extent(dates);
return {
begin,
// Add margin of one second to display oldest node at end of timeline
end: end + 1,
end: end,
};
}

Expand Down
Loading

0 comments on commit 8b1e096

Please sign in to comment.