Skip to content

Commit

Permalink
feat(): cypress tests + local html build
Browse files Browse the repository at this point in the history
* cypress project setup

* script to collate latest HTML assets from project repos

* e2e test nexus landing page with cypress

* remove garbage in base_site

* ignore _build directory

* build script to pull html assets into _build directory

* inquanto cyress testing for testing links and page elements for the
landing page, user guide, introduction, tutorials, code-examples, api
reference

* add lambeq e2e tests

* modify trigger to click

* remove internal attributes check for nexus dropdown menu test

* fixes by aidan

* remove localhost and port number

* specify baseurl in cypress config

* retry dropdown click until success (max retry is 5)

* passing tests for inquanto, lambeq and nexus

* test links in tricard

* use nabar check from utils.js

* fix indent in root docs page test

* tket tests for landing page

* h-series tests for landing page

* add more retries for dropdown click tests

* update landing dependencies

* modify inquanto desription

* add tests for the main unified landing page

* grammar

* check for navigation bar in first test in main.cy.js

* add step to run cypress tests

* run ci on push to local_build to test workflow

* remove trigger on push

---------

Co-authored-by: Irfan Khan <[email protected]>
  • Loading branch information
aidanCQ and irfankhan10 authored Oct 21, 2024
1 parent 1dbf0f0 commit afe56de
Show file tree
Hide file tree
Showing 66 changed files with 3,579 additions and 177 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ jobs:
repo: 'CQCL/lambeq-docs'
tarball_prefix: 'lambeq-docs'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Cypress Tests
run: |
npm install
npx serve base_site & npm run test
# Once they're all extracted, we can upload.
- name: Upload Github Pages artifact
uses: actions/upload-pages-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_build
1 change: 0 additions & 1 deletion base_site/404.html

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions base_site/_next/static/chunks/23-84706e97c126bc23.js

This file was deleted.

40 changes: 0 additions & 40 deletions base_site/_next/static/chunks/338-0a105bdfe90ca040.js

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion base_site/_next/static/chunks/app/page-db51014eed2a8d07.js

This file was deleted.

1 change: 0 additions & 1 deletion base_site/_next/static/chunks/fd9d1056-023bbdd6fd8a5298.js

This file was deleted.

33 changes: 0 additions & 33 deletions base_site/_next/static/chunks/framework-f66176bb897dc684.js

This file was deleted.

1 change: 0 additions & 1 deletion base_site/_next/static/chunks/main-207c196814dd7089.js

This file was deleted.

1 change: 0 additions & 1 deletion base_site/_next/static/chunks/main-app-cf0b864678bf3825.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion base_site/_next/static/chunks/webpack-1c8fbebd41b2f73c.js

This file was deleted.

Loading

0 comments on commit afe56de

Please sign in to comment.