style: Fix linting errors

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/1795>
environments/review-docs-merge-hoc7bt/deployments/18064
Georg krause 2023-06-12 08:08:36 +02:00 zatwierdzone przez Kasper Seweryn
rodzic aa4bdca2a6
commit e1a217ffa0
3 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -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) => {

Wyświetl plik

@ -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')

Wyświetl plik

@ -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
},
}
})
})
})