Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit dd02ae2

Browse files
committed
cypress: Raise vis wait time, and tweak expect error text
Recent refactoring slightly changed the wording of an error message, which was tripping up the Cypress tests. Also raised the cy.wait() delay time in one set of tests, as the previous value was low enough that it sometimes caused test failures on my dev setup.
1 parent f86aebf commit dd02ae2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cypress/e2e/1-webui/live_visualisation.cy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ describe('live visualisation', () => {
274274

275275
// Try accessing a private database's visualisation page
276276
cy.visit({url: '/vis/default/Join Testing with index.sqlite', failOnStatusCode: false})
277-
cy.get('[data-cy="errormsg"').should('contain', 'doesn\'t seem to exist')
277+
cy.get('[data-cy="errormsg"').should('contain', 'doesn\'t exist')
278278

279279
// Switch back to the default user
280280
cy.request('/x/test/switchdefault')

cypress/e2e/1-webui/visualisation.cy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from "path";
22

33
// Sometimes we need a delay between making a change, and testing it, otherwise the AngularJS changes are missed
4-
let waitTime = 150;
4+
let waitTime = 250;
55

66
// TODO: Test that when provided a commit id, we visualise the data for that commit rather than the latest commit
77

@@ -290,7 +290,7 @@ describe('visualisation', () => {
290290

291291
// Try accessing a private database's visualisation page
292292
cy.visit({url: '/vis/default/Assembly Election 2017 with view.sqlite', failOnStatusCode: false})
293-
cy.get('[data-cy="errormsg"').should('contain', 'doesn\'t seem to exist')
293+
cy.get('[data-cy="errormsg"').should('contain', 'doesn\'t exist')
294294

295295
// Switch back to the default user
296296
cy.request('/x/test/switchdefault')

0 commit comments

Comments
 (0)