mirror of
https://github.com/mue/mue.git
synced 2026-06-06 07:55:48 +02:00
chore(tests): finish layout for welcome, add a few more tests and add placeholders for other features
This commit is contained in:
5
cypress/e2e/appearance.cy.js
Normal file
5
cypress/e2e/appearance.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/date.cy.js
Normal file
5
cypress/e2e/date.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/greeting.cy.js
Normal file
5
cypress/e2e/greeting.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/marketplace.cy.js
Normal file
5
cypress/e2e/marketplace.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/message.cy.js
Normal file
5
cypress/e2e/message.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/navbar.cy.js
Normal file
5
cypress/e2e/navbar.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/quicklinks.cy.js
Normal file
5
cypress/e2e/quicklinks.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/quote.cy.js
Normal file
5
cypress/e2e/quote.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/search.cy.js
Normal file
5
cypress/e2e/search.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/stats.cy.js
Normal file
5
cypress/e2e/stats.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/time.cy.js
Normal file
5
cypress/e2e/time.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
5
cypress/e2e/weather.cy.js
Normal file
5
cypress/e2e/weather.cy.js
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('template spec', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('https://example.cypress.io')
|
||||
})
|
||||
})
|
||||
@@ -1,12 +1,12 @@
|
||||
/* eslint-disable no-undef */
|
||||
describe('modal loads', () => {
|
||||
describe('initial modal open', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeContent').should('be.visible')
|
||||
})
|
||||
})
|
||||
|
||||
describe('discord link works', () => {
|
||||
describe('discord link', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeNotice a').eq(0).invoke('removeAttr', 'target').click()
|
||||
@@ -16,7 +16,7 @@ describe('discord link works', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('contribute link works', () => {
|
||||
describe('contribute link', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeNotice a').eq(1).invoke('removeAttr', 'target').click()
|
||||
@@ -26,7 +26,7 @@ describe('contribute link works', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('preview function works', () => {
|
||||
describe('preview function enable/disable', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
// does the preview button exist?
|
||||
@@ -41,4 +41,160 @@ describe('preview function works', () => {
|
||||
// are we back?
|
||||
cy.get('.welcomeContent').should('be.visible')
|
||||
})
|
||||
})
|
||||
|
||||
describe('second tab navigation', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
|
||||
// are we on the second tab?
|
||||
cy.get('.languageSettings').should('be.visible')
|
||||
})
|
||||
})
|
||||
|
||||
describe('change to each language setting and back', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
|
||||
// change to each language setting
|
||||
cy.get('.languageSettings span').each(($el, index, $list) => {
|
||||
// press the next one
|
||||
cy.get('.languageSettings span').eq(index).click()
|
||||
// is it checked? state=checked
|
||||
cy.get('.languageSettings span').eq(index).should('have.attr', 'state', 'checked')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('third tab navigation', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
// go to second
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
|
||||
// go to third
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
})
|
||||
})
|
||||
|
||||
describe('import settings', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
})
|
||||
})
|
||||
|
||||
describe('fourth tab navigation', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
})
|
||||
})
|
||||
|
||||
describe('theme change', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
describe('fifth tab navigation', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
})
|
||||
})
|
||||
|
||||
describe('style choice', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
describe('sixth tab navigation', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
})
|
||||
})
|
||||
|
||||
describe('offline mode check', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
describe('privacy policy link', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeNotice a').eq(2).invoke('removeAttr', 'target').click()
|
||||
cy.url().then(url => {
|
||||
expect(url).to.include('github.com')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('source code link', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeNotice a').eq(2).invoke('removeAttr', 'target').click()
|
||||
cy.url().then(url => {
|
||||
expect(url).to.include('github.com')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('final tab navigation', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
})
|
||||
})
|
||||
|
||||
// describe the changes list
|
||||
|
||||
describe('finish button', () => {
|
||||
it('passes', () => {
|
||||
cy.visit('http://localhost:5173')
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(1).click()
|
||||
cy.get('.welcomeButtons button').eq(2).click()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user