Skip to content

Commit

Permalink
Merge pull request #1990 from stakwork/fix/docker-compose-upgrade
Browse files Browse the repository at this point in the history
fix: fixed docker compose issue
  • Loading branch information
Rassl authored Aug 5, 2024
2 parents 53267ca + 3fbb7e2 commit 8ea983c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -104,4 +104,4 @@ jobs:

- name: Stop Stack
working-directory: ./stack
run: docker-compose down
run: docker compose down
15 changes: 13 additions & 2 deletions cypress/e2e/addContent/addTweet.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})

0 comments on commit 8ea983c

Please sign in to comment.