Skip to content

Commit 99ad48f

Browse files
committed
Unflake display metadata item
1 parent 7c516a2 commit 99ad48f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

e2e_tests/integration/0.index.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,17 @@ describe('Neo4j Browser', () => {
111111
.should('contain', 'Emil Eifrem')
112112
})
113113
it('can display meta items from side drawer', () => {
114+
const password = Cypress.config('password')
115+
cy.connect('neo4j', password)
114116
cy.executeCommand(':clear')
115117
cy.get('[data-testid="drawerDBMS"]').click()
116-
cy.get('[data-testid="sidebarMetaItem"]', { timeout: 30000 }).should(p => {
117-
expect(p).to.have.length.above(17)
118-
})
118+
119+
cy.executeCommand('MATCH (n) RETURN DISTINCT labels(n);')
120+
cy.contains('Movie')
121+
cy.get('[data-testid="sidebarMetaItem"]', { timeout: 30000 }).should(
122+
'have.length.above',
123+
17
124+
)
119125
cy.get('[data-testid="drawerDBMS"]').click()
120126
})
121127
it('displays user info in sidebar (when connected)', () => {

0 commit comments

Comments
 (0)