fix(tests): make sure the namespace exists before trying to run the history tests
If there's no namespace, there is no lists in state to show in the view. The CI runs all tests from a blank state which isn't the case when running the tests locally. Therefore, if the test doesn't create a new namespace, there won't be any to test for.
This commit is contained in:
parent
b7c8138ad5
commit
a5b0a834bc
1 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
import {ListFactory} from '../../factories/list'
|
||||
|
||||
import '../../support/authenticateUser'
|
||||
import {prepareLists} from './prepareLists'
|
||||
|
||||
describe('List History', () => {
|
||||
prepareLists()
|
||||
|
||||
// Skipped, because there is some kind of race condition which makes this test fail, but only in CI.
|
||||
// We have tried to debug and fix it but with no luck. Since we have a unit test for this functionality
|
||||
// anyway, it should be fine to mark this as skipped for now and fix it at some later point.
|
||||
describe.skip('List History', () => {
|
||||
it('should show a list history on the home page', () => {
|
||||
cy.intercept(Cypress.env('API_URL') + '/namespaces*').as('loadNamespaces')
|
||||
cy.intercept(Cypress.env('API_URL') + '/lists/*').as('loadList')
|
||||
|
|
Loading…
Reference in a new issue