You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

  1. /// <reference types="Cypress" />
  2. describe('Setup', () => {
  3. it('Load the setup page', () => {
  4. cy.visit('/')
  5. cy.contains('You are about to install Wiki.js').should('exist')
  6. })
  7. it('Enter administrator email address', () => {
  8. cy.get('.v-input').contains('Administrator Email').next('input').click().type('test@example.com')
  9. })
  10. it('Enter a password', () => {
  11. cy.get('.v-input').contains('Password').next('input').click().type('12345678')
  12. cy.get('.v-input').contains('Confirm Password').next('input').click().type('12345678')
  13. })
  14. it('Enter a Site URL', () => {
  15. cy.get('.v-input').contains('Site URL').next('input').click().clear().type('http://localhost:3000')
  16. })
  17. it('Disable Telemetry', () => {
  18. cy.contains('Telemetry').next('.v-input').click()
  19. })
  20. it('Press Install', () => {
  21. cy.get('.v-card__actions').find('button').click()
  22. })
  23. it('Wait for install success', () => {
  24. cy.contains('Installation complete!', {timeout: 30000}).should('exist')
  25. })
  26. it('Redirect to login page', () => {
  27. cy.location('pathname', {timeout: 10000}).should('include', '/login')
  28. })
  29. })