Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: undo all skipped test #2207

Merged
merged 32 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
35b50ff
test: undo all skipped test
tobi-bams Sep 23, 2024
c5d605f
fix: wait for about and stats before trying to load the graph
tobi-bams Sep 23, 2024
e2082be
fix: get sanitize name before running test
tobi-bams Sep 24, 2024
e078765
fix: intercept stats request
tobi-bams Sep 24, 2024
f1b9a80
fix: replace load latest with stats
tobi-bams Sep 24, 2024
af27bc1
fix: log jarvis and neo4j
tobi-bams Sep 24, 2024
0a9054e
fix: pull from old neo4j version
tobi-bams Sep 24, 2024
819c426
fix: moved load latest forward and increased timeout time
tobi-bams Sep 24, 2024
6d043fc
fix: trying to fix trending topics
tobi-bams Sep 24, 2024
9a67226
fix: intercept initial calls
tobi-bams Sep 24, 2024
1336bbc
fix: fix loading latest
tobi-bams Sep 24, 2024
b6ba215
fix: ensure latest passes correctly
tobi-bams Sep 24, 2024
386f7ad
fix: trying to fix treadingTopics
tobi-bams Sep 24, 2024
327e5de
fix: fix trending topics
tobi-bams Sep 24, 2024
6543caf
fix: remove sphinx stack custom branch
tobi-bams Sep 24, 2024
976d3d3
fix: update to use neo4j v5
tobi-bams Sep 24, 2024
49e4ee4
fix: remove logs
tobi-bams Sep 24, 2024
1b5ef10
Merge branch 'master' into revert-skip-test
tobi-bams Sep 27, 2024
ee5c51a
Merge branch 'master' into revert-skip-test
tobi-bams Sep 30, 2024
f16a270
fix: use new workflow id
tobi-bams Sep 30, 2024
36e1bc3
fix: skip source table
tobi-bams Sep 30, 2024
bb2372b
fix: log response from adding tweet
tobi-bams Oct 1, 2024
20f5c26
fix: add more logs
tobi-bams Oct 1, 2024
e5c1fc1
Merge branch 'master' into revert-skip-test
tobi-bams Oct 1, 2024
cf8dd87
fix: added data-testid to add attribute
tobi-bams Oct 1, 2024
0c041d1
fix: removed nodes
tobi-bams Oct 1, 2024
3371208
fix: stop checking for results from trending topics
tobi-bams Oct 1, 2024
5ad8438
fix: delete unused tests
tobi-bams Oct 1, 2024
fca0324
test: fix add node type test
tobi-bams Oct 1, 2024
3d31297
fix: remove relay nodes
tobi-bams Oct 1, 2024
cbf248a
fix: remove wait time
tobi-bams Oct 1, 2024
5bd3292
fix: use current stack
tobi-bams Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,19 @@ jobs:
chmod 777 -R ./proxy;
chmod 777 -R ./cln;

# - name: Create data working-directory
# run: mkdir -p data

# - name: Download file
# run: |
# curl -LO https://machinelearningneo4jbackup.s3.amazonaws.com/neo4j.tar

# - name: untar file
# run: tar -xf neo4j.tar -C data

# - name: Copy Neo4J Data to stack
# run: cp -r ./data ./stack/neo4j

- name: Check for NODES
uses: nick-fields/retry@v3
with:
Expand All @@ -89,6 +102,9 @@ jobs:
source: "stack/relay/NODES.json"
target: "relay/nodes.json"

- name: Sanitize Test File Path
run: echo "SANITIZED_FILE=$(echo ${{ matrix.file }} | sed 's/\//_/g')" >> $GITHUB_ENV

- name: Install
run: yarn --immutable

Expand All @@ -114,12 +130,6 @@ jobs:
# run: yarn run cy-comp
# continue-on-error: false

- name: Sanitize Test File Path
run: echo "SANITIZED_FILE=$(echo ${{ matrix.file }} | sed 's/\//_/g')" >> $GITHUB_ENV

- name: Debug sanitized file
run: echo "Sanitized file $SANITIZED_FILE"

- name: Upload Cypress logs
if: always()
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export default defineConfig({
experimentalMemoryManagement: true,
numTestsKeptInMemory: 1,
video: true,
env: {
CYPRESS_LOG_LEVEL: 'debug',
},
},
component: {
supportFile: './cypress/support/components.ts',
Expand Down
5 changes: 4 additions & 1 deletion cypress/e2e/addContent/addTweet.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ describe('Add Tweet Content', () => {
url: 'http://localhost:8444/api/add_node*',
}).as('addTweet2')

cy.wait('@addTweet2') // This is because add source is currently skipped,
cy.wait('@addTweet2').then((intersection) => {
console.log(intersection.response)
cy.log(JSON.stringify(intersection.response))
}) // This is because add source is currently skipped,

cy.get('.Toastify__toast-body').should('have.text', 'Content Added')

Expand Down
118 changes: 0 additions & 118 deletions cypress/e2e/addNode/addNode.cy.ts

This file was deleted.

10 changes: 5 additions & 5 deletions cypress/e2e/addNode/addNodeType.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ describe('Add Node Type Via BluePrint', () => {
url: 'http://localhost:8444/api/schema*',
}).as('schemaRequest')

cy.intercept({
method: 'GET',
url: 'http://localhost:8444/api/schema/all*',
}).as('schemaList')

cy.initialSetup('alice', 300)

const nodeType = 'Player'

cy.get('[data-testid="add-blueprint-modal"]').click()
cy.wait(1000)

cy.intercept({
method: 'GET',
url: 'http://localhost:8444/api/schema/all*',
}).as('schemaList')

cy.get('[data-testid="add-schema-type"]').click()
cy.wait('@schemaList')

Expand Down
4 changes: 0 additions & 4 deletions cypress/e2e/graph/const.ts

This file was deleted.

15 changes: 0 additions & 15 deletions cypress/e2e/graph/initialRender.cy.ts

This file was deleted.

32 changes: 0 additions & 32 deletions cypress/e2e/graph/searchAndRender.cy.ts

This file was deleted.

6 changes: 0 additions & 6 deletions cypress/e2e/sanity.cy.ts

This file was deleted.

25 changes: 5 additions & 20 deletions cypress/e2e/seeLatest/latest.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('See latest button as new node are added', () => {
it.skip('See latest as nodes are being added', () => {
it('See latest as nodes are being added', () => {
cy.initialSetup('carol', 300)

// add tweet node
Expand Down Expand Up @@ -29,9 +29,12 @@ describe('See latest button as new node are added', () => {
})
}

// this is for the queue we have in boltwall
cy.wait(70000)

cy.intercept({
method: 'GET',
url: 'http://localhost:8444/api/prediction/graph/search*',
url: 'http://localhost:8444/api/prediction/graph/search/latest*',
}).as('getLatest')

cy.get('[data-testid="see_latest_button"]').should('exist')
Expand All @@ -41,31 +44,13 @@ describe('See latest button as new node are added', () => {

cy.get('[data-testid="see_latest_button"]').should('not.exist')

cy.get('[data-testid="twitter"]').should('exist')

cy.intercept({
method: 'GET',
url: 'http://localhost:8444/api/prediction/graph/search*',
}).as('twitter')

cy.get('[data-testid="twitter"]').click()

cy.wait('@twitter')
// TODO: Get to know if twitter nodes are what is being returned

// .then((interception) => {
// const { query } = interception.request

// expect(query.media_type).to.equal('twitter')
// })

cy.get('#search-result-list').children().first().click()

cy.get('[data-testid="sidebar-sub-view"]').should('have.css', 'position', 'relative')

cy.get('[data-testid="close-sidebar-sub-view"]').click()

cy.get('[data-testid="sidebar-sub-view"]').should('have.css', 'position', 'absolute')
})
})
})
7 changes: 0 additions & 7 deletions cypress/e2e/sentimentChart/const.ts

This file was deleted.

48 changes: 0 additions & 48 deletions cypress/e2e/sentimentChart/sentimentAnalysis.cy.ts

This file was deleted.

Loading
Loading