fix(tests): make sure the namespace exists before trying to run the history tests
continuous-integration/drone/pr Build is passing
Details
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:
parent
b7c8138ad5
commit
a5b0a834bc
|
@ -1,11 +1,11 @@
|
||||||
import {ListFactory} from '../../factories/list'
|
import {ListFactory} from '../../factories/list'
|
||||||
|
|
||||||
import '../../support/authenticateUser'
|
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.
|
describe('List History', () => {
|
||||||
// We have tried to debug and fix it but with no luck. Since we have a unit test for this functionality
|
prepareLists()
|
||||||
// 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', () => {
|
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') + '/namespaces*').as('loadNamespaces')
|
||||||
cy.intercept(Cypress.env('API_URL') + '/lists/*').as('loadList')
|
cy.intercept(Cypress.env('API_URL') + '/lists/*').as('loadList')
|
||||||
|
|
Reference in New Issue