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