style: Fix linting errors
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/1795>
This commit is contained in:
parent
aa4bdca2a6
commit
e1a217ffa0
|
@ -17,7 +17,6 @@ describe('Favorites', () => {
|
|||
$favButton.click()
|
||||
// In case everything worked the favorite button should be pink
|
||||
cy.wrap($favButton).should('have.class', 'pink')
|
||||
|
||||
})
|
||||
|
||||
cy.get('.favorite-icon.pink').then(($unfavButton) => {
|
||||
|
|
|
@ -2,8 +2,8 @@ describe('The login', () => {
|
|||
it('is working with UI', () => {
|
||||
cy.fixture('testuser.json').then((user) => {
|
||||
cy.visit('/login')
|
||||
cy.get('input[name=username]').type(user['username'])
|
||||
cy.get('input[name=password]').type(`${user['password']}{enter}`)
|
||||
cy.get('input[name=username]').type(user.username)
|
||||
cy.get('input[name=password]').type(`${user.password}{enter}`)
|
||||
})
|
||||
|
||||
cy.url().should('include', '/library')
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// graphical login until the vue3 branch is merged
|
||||
Cypress.Commands.add('login', () => {
|
||||
cy.fixture('testuser.json').then((user) => {
|
||||
var username = user["username"]
|
||||
var password = user["password"]
|
||||
const username = user.username
|
||||
const password = user.password
|
||||
cy.visit('/login')
|
||||
cy.wait(1000)
|
||||
cy.getCookie('csrftoken').then(($cookie) => {
|
||||
|
@ -15,12 +15,12 @@ Cypress.Commands.add('login', () => {
|
|||
form: true,
|
||||
headers: {
|
||||
'X-CSRFTOKEN': csrfToken,
|
||||
Referer: Cypress.config().baseUrl + '/login',
|
||||
Referer: Cypress.config().baseUrl + '/login'
|
||||
},
|
||||
body: {
|
||||
username,
|
||||
password
|
||||
},
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue