stocky-salesclerk-42224
01/13/2023, 12:14 PMnutritious-hydrogen-65702
01/13/2023, 12:14 PMgray-kilobyte-89541
01/13/2023, 12:31 PMnutritious-hydrogen-65702
01/13/2023, 12:57 PMdry-portugal-25841
01/13/2023, 1:21 PMERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 552: Permission denied (13)
ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Browser: Electron 106 headless
After searching it up looks like it's browser issue, not Cypress. Tests pass, so it's not a critical problem, but maybe someone knows the solution, if there is one.early-egg-66445
01/13/2023, 2:30 PMearly-egg-66445
01/13/2023, 2:30 PMearly-egg-66445
01/13/2023, 2:32 PMhttp://localhost:8001/__/#/specs
, but when I run any tests it changes to http://keycloak:8080/__/#/specs/runner?file=cypress/e2e/dashboard/login.cy.js
.early-egg-66445
01/13/2023, 2:32 PMearly-egg-66445
01/13/2023, 2:33 PMmagnificent-finland-58048
01/13/2023, 2:33 PMmagnificent-finland-58048
01/13/2023, 2:33 PMearly-egg-66445
01/13/2023, 2:33 PMjs
module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost:8001',
early-egg-66445
01/13/2023, 2:34 PMmagnificent-finland-58048
01/13/2023, 2:34 PMearly-egg-66445
01/13/2023, 2:35 PMearly-egg-66445
01/13/2023, 2:35 PMmagnificent-finland-58048
01/13/2023, 2:36 PMmagnificent-finland-58048
01/13/2023, 2:36 PMearly-egg-66445
01/13/2023, 2:37 PMearly-egg-66445
01/13/2023, 2:37 PMjs
context('Login', () => {
it('should login the test user in .env', () => {
cy.login(Cypress.env().testUser, Cypress.env().testPassword)
})
})
Here's the command:
js
Cypress.Commands.add('login', (username, password) => {
cy.visit('/')
cy.get('#username').type(username)
.get('#password').type(password)
.get('#kc-login').click()
});
magnificent-finland-58048
01/13/2023, 2:37 PMmagnificent-finland-58048
01/13/2023, 2:37 PMearly-egg-66445
01/13/2023, 2:42 PMjs
Cypress.Commands.add('login', (username, password) => {
const args = { username, password }
cy.session(args, () => {
cy.visit('/')
cy.origin('http://keycloak:8080', { args }, (args) => {
cy.get('#username').type(args.username)
.get('#password').type(args.password)
.get('#kc-login').click()
})
});
return cy.visit('/')
});
early-egg-66445
01/13/2023, 2:42 PMearly-egg-66445
01/13/2023, 2:44 PMmagnificent-finland-58048
01/13/2023, 2:47 PMcy.origin('http://keycloak:8081
magnificent-finland-58048
01/13/2023, 2:48 PMmagnificent-finland-58048
01/13/2023, 2:49 PMearly-egg-66445
01/13/2023, 2:50 PM