diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0fd64627..b8a351b15 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,7 +56,7 @@ jobs: command: | export TWITTER_BEARER="Bearer ${{ secrets.TWITTER_BEARER }}" echo $TWITTER_BEARER - STAKWORK_TOKEN=daaa3a0894f0658d99781471dfccd3e1 TWITTER_BEARER=$TWITTER_BEARER GITACTION_ENV=gitactionenv docker-compose -f ./stack/alts/navfiber.yml --project-dir ./stack up -d; + STAKWORK_TOKEN=daaa3a0894f0658d99781471dfccd3e1 TWITTER_BEARER=$TWITTER_BEARER GITACTION_ENV=gitactionenv docker compose -f ./stack/alts/navfiber.yml --project-directory ./stack up -d; sleep 240; docker ps docker logs meme.sphinx @@ -104,4 +104,4 @@ jobs: - name: Stop Stack working-directory: ./stack - run: docker-compose down + run: docker compose down diff --git a/cypress/e2e/addContent/addTweet.cy.ts b/cypress/e2e/addContent/addTweet.cy.ts index dc5686eef..db24f684d 100644 --- a/cypress/e2e/addContent/addTweet.cy.ts +++ b/cypress/e2e/addContent/addTweet.cy.ts @@ -15,9 +15,20 @@ describe('Add Tweet Content', () => { cy.get('[data-testid="skip-location-btn"').click() cy.get('[data-testid="check-icon"]').click() - cy.wait('@addTweet') - cy.wait(5500) // This is because add source is currently skipped, + cy.wait('@addTweet').then((interception) => { + //check we get a 402 response code, when trying to add content for the first time + expect(interception.response.statusCode).to.eq(402) + }) + + cy.intercept({ + method: 'POST', + url: 'http://localhost:8444/api/add_node*', + }).as('addTweet2') + + cy.wait('@addTweet2') // This is because add source is currently skipped, + cy.get('.Toastify__toast-body').should('have.text', 'Content Added') + cy.get('#addContent').should('not.exist') }) })