mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat(test): add e2e test for theme setting
This commit is contained in:
parent
7131da3f5a
commit
71f1f9e6be
4 changed files with 15 additions and 7 deletions
|
@ -15,7 +15,6 @@ context('Profiles & Preferences', () => {
|
|||
'confirm_password',
|
||||
'notify',
|
||||
'show_album_art_overlay',
|
||||
'transcode_on_mobile',
|
||||
'confirm_closing'
|
||||
].forEach(inputName => cy.get(`[name=${inputName}]`).should('exist'))
|
||||
|
||||
|
@ -101,4 +100,13 @@ context('Profiles & Preferences', () => {
|
|||
cy.get('#profileWrapper [name=show_album_art_overlay]').scrollIntoView().check()
|
||||
cy.findByTestId('album-art-overlay').should('exist')
|
||||
})
|
||||
|
||||
it('sets a theme', () => {
|
||||
cy.$login()
|
||||
cy.findByTestId('view-profile-link').click()
|
||||
cy.findByTestId('theme-card-violet').click()
|
||||
cy.get('html').should('have.attr', 'data-theme', 'violet')
|
||||
cy.reload()
|
||||
cy.get('html').should('have.attr', 'data-theme', 'violet')
|
||||
})
|
||||
})
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"@typescript-eslint/eslint-plugin": "^4.11.1",
|
||||
"@typescript-eslint/parser": "^4.11.1",
|
||||
"cross-env": "^3.2.3",
|
||||
"cypress": "^6.2.0",
|
||||
"cypress": "6.3.0",
|
||||
"cypress-file-upload": "^4.1.1",
|
||||
"eslint": "^7.17.0",
|
||||
"font-awesome": "^4.7.0",
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d9be1a3bd6eaeec92886d85c94756c1f41dbd8e9
|
||||
Subproject commit 54127662681c868dc9dd1f06f584b2b6b6481fe2
|
|
@ -2882,10 +2882,10 @@ cypress-file-upload@^4.1.1:
|
|||
dependencies:
|
||||
mime "^2.4.4"
|
||||
|
||||
cypress@^6.2.0:
|
||||
version "6.2.0"
|
||||
resolved "https://registry.yarnpkg.com/cypress/-/cypress-6.2.0.tgz#1a8a7dd5bd08db3064551a9f12072963cc9337bf"
|
||||
integrity sha512-m/rkcogYM9MTy8rbsZgyS5wT2L/J+B5V2bY2ztkDNMyqhk/oZgUF4KTWVLzkW2I+scg0iAddca95tLlt7XnAtw==
|
||||
cypress@6.3.0:
|
||||
version "6.3.0"
|
||||
resolved "https://registry.yarnpkg.com/cypress/-/cypress-6.3.0.tgz#e27bba01d7e493265700e1e85333dca0b0127ede"
|
||||
integrity sha512-Ec6TAFOxdSB2HPINNJ1f7z75pENXcfCaQkz+A9j0eGSvusFJ2NNErq650DexCbNJAnCQkPqXB4XPH9kXnSQnUA==
|
||||
dependencies:
|
||||
"@cypress/listr-verbose-renderer" "^0.4.1"
|
||||
"@cypress/request" "^2.88.5"
|
||||
|
|
Loading…
Reference in a new issue