it('Can enable an installed app', () => {
cy.get('#apps-list').should('be.visible')
- .contains('tr', 'QA testing')
+ // Wait for the app list to load
+ .contains('tr', 'QA testing', { timeout: 10000 })
.should('exist')
.find('.actions')
// I enable the "QA testing" app
handlePasswordConfirmation(admin.password)
+ // Wait until we see the disable button for the app
+ cy.get('#apps-list').should('be.visible')
+ .contains('tr', 'QA testing')
+ .should('exist')
+ .find('.actions')
+ // I see the disable button for the app
+ .contains('button', 'Disable', { timeout: 10000 })
+
// Change to enabled apps view
cy.get('#app-category-enabled a').click({ force: true })
cy.url().should('match', /settings\/apps\/enabled$/)
it('Can disable an installed app', () => {
cy.get('#apps-list').should('be.visible')
- .contains('tr', 'Update notification')
+ // Wait for the app list to load
+ .contains('tr', 'Update notification', { timeout: 10000 })
.should('exist')
.find('.actions')
// I disable the "Update notification" app
handlePasswordConfirmation(admin.password)
+ // Wait until we see the disable button for the app
+ cy.get('#apps-list').should('be.visible')
+ .contains('tr', 'Update notification')
+ .should('exist')
+ .find('.actions')
+ // I see the enable button for the app
+ .contains('button', 'Enable', { timeout: 10000 })
+
// Change to disabled apps view
cy.get('#app-category-disabled a').click({ force: true })
cy.url().should('match', /settings\/apps\/disabled$/)