most-baker-72677
09/27/2022, 12:59 PMglamorous-country-57678
09/27/2022, 1:00 PMmysterious-belgium-25713
09/27/2022, 1:02 PMglamorous-country-57678
09/27/2022, 1:27 PMmysterious-belgium-25713
09/27/2022, 1:33 PMmelodic-bear-95863
09/27/2022, 1:37 PMglamorous-country-57678
09/27/2022, 1:38 PMgetent group
it lists docker as part of the group but still get permission issues when running docker without sudo. Also, when running sudo groupadd docker
it states docker already exists.millions-butcher-58164
09/27/2022, 1:38 PMmelodic-bear-95863
09/27/2022, 1:45 PMnumerous-kangaroo-93739
09/27/2022, 3:00 PMglamorous-country-57678
09/27/2022, 3:50 PMnutritious-army-46708
09/27/2022, 3:54 PMglamorous-country-57678
09/27/2022, 3:57 PMmysterious-belgium-25713
09/27/2022, 3:58 PMmysterious-belgium-25713
09/27/2022, 3:59 PMglamorous-country-57678
09/27/2022, 4:07 PMnutritious-army-46708
09/27/2022, 4:26 PMglamorous-country-57678
09/27/2022, 4:31 PMdelightful-microphone-80931
09/27/2022, 4:51 PMmysterious-belgium-25713
09/27/2022, 5:20 PMnutritious-army-46708
09/27/2022, 6:26 PMgray-kilobyte-89541
09/27/2022, 6:52 PMkind-baker-548
09/27/2022, 7:53 PMnutritious-army-46708
09/27/2022, 8:03 PMpolite-salesclerk-28948
09/28/2022, 4:27 AMpolite-salesclerk-28948
09/28/2022, 4:29 AMCypress.Commands.add('login', (username, password) => {
cy.session([username, password], () => {
cy.visit('/');
cy.contains('Login').click();
cy.findAllByLabelText('Username').should('exist').click().type(username);
cy.findAllByLabelText('Password').should('exist').click().type(password);
cy.contains('Sign in').should('be.visible').click();
cy.intercept('GET', '/api/v1/oktaConfig').as('exp');
// once a request to get authentication responds, 'cy.wait' will resolve
cy.wait('@exp').then(intercept => {
expect(intercept.response.statusCode).to.be.eq(200); //should work
});
cy.url().should('contains', '/login/callback');
});
cy.visit('/');
});
stale-optician-85950
09/28/2022, 8:56 AMcy.intercept('GET', '/api/v1/oktaConfig').as('exp')
outside of your function, as you are declaring it too late (after this click/submit is too late). i.e.
cy.intercept('GET', '/api/v1/oktaConfig').as('exp')
Cypress.Commands.add('login', (username, password) => {
...
stale-optician-85950
09/28/2022, 9:26 AM**
at the beginning, try this:
cy.intercept('GET', '**/api/v1/oktaConfig').as('exp')
and I don't know if you are chopping off the end URL path, if yes then try this:
cy.intercept('GET', '**/api/v1/oktaConfig/*').as('exp')
And as mentioned above this should be moved before the first cy.visit()
Cypress.Commands.add('login', (username, password) => {
cy.session([username, password], () => {
cy.intercept('GET', '**/api/v1/oktaConfig/*').as('exp')
cy.visit('/');
...
adorable-kilobyte-871
09/28/2022, 10:24 AMit('check all links', () => {
cy.visit('/')
cy.get("a:not([href*='mailto:'])").each(page => {
cy.request(page.prop('href'))
})
});
I tried the following :
var links = []
it("setup", () => {
cy.visit("/")
cy.get("a:not([href*='mailto:'])").each((page) => {
links.push(page.prop("href"))
})
})
links.forEach((link) => {
it(`Checking ${link}`, () => {
cy.request(link)
})
})
But only the very first test "setup" is run and the loop does not execute any test.
What would be the good approach to do it correctly ?cold-van-45410
09/28/2022, 11:15 AM