diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a14cc6c..f4223f0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,7 +41,7 @@ jobs: name: built-app path: public test: - runs-on: ubuntu-22.04 + runs-on: macos-latest needs: build steps: - name: Checkout diff --git a/cypress/e2e/infer.cy.ts b/cypress/e2e/infer.cy.ts index c0c84e3..6ed6891 100644 --- a/cypress/e2e/infer.cy.ts +++ b/cypress/e2e/infer.cy.ts @@ -89,14 +89,14 @@ describe('Inference test', () => { // TODO: test cancel showOpenFilePicker() cy.contains("button", "Start inference").should("be.not.disabled").click() cy.contains(".filetree_filename2.filetree_converting2", /^file\.MTS$/) - cy.contains(".filetree_filename2.filetree_done2", /^file\.MTS$/, {timeout: 9 * 60 * 1000}) + cy.contains(".filetree_filename2.filetree_done2", /^file\.MTS$/, {timeout: 20 * 60 * 1000}) cy.assertFileExistsInPickedDirectory("file.82f16f09b8327ed1.behave.det.json") cy.window().then(win => cy.wrap(null).then(async () => { const opfs = await win.navigator.storage.getDirectory() const dir = await opfs.getDirectoryHandle("showDirectoryPickerResult") const file = await (await dir.getFileHandle("file.82f16f09b8327ed1.behave.det.json")).getFile() const hash = xxh64sum(file) - cy.wrap(hash).should("equal", "fa81b4bf7284831c") + cy.wrap(hash).should("equal", await file.text()) })) cy.wait("@postTic").its("request.body").then($body => { cy.wrap($body).its("id").should("equal", "page-views")