fix(tests): make sure the namespace exists before trying to run the history tests
continuous-integration/drone/pr Build is passing Details

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:
kolaente 2022-01-30 22:51:29 +01:00
parent b7c8138ad5
commit a5b0a834bc
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
import {ListFactory} from '../../factories/list'
import '../../support/authenticateUser'
import {prepareLists} from './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', () => {
describe('List History', () => {
prepareLists()
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')