helpful-truck-53930
08/26/2022, 8:12 AMstale-optician-85950
08/26/2022, 8:20 AMcy.get('submit button').click();
cy.get('body').then($body => {
// check if you need to repeat the click
if ($body.find('new site selector').length < 0) {
cy.get('submit button').click();
}
});
rapid-jackal-81751
08/26/2022, 8:55 AMcolossal-beard-47656
08/26/2022, 9:06 AMred-lifeguard-41652
08/26/2022, 9:24 AMstale-optician-85950
08/26/2022, 9:26 AMcolossal-beard-47656
08/26/2022, 9:28 AMstale-optician-85950
08/26/2022, 9:37 AMcalm-fish-12826
08/26/2022, 9:43 AMred-lifeguard-41652
08/26/2022, 10:53 AMacceptable-hamburger-48790
08/26/2022, 11:09 AMlemon-refrigerator-5269
08/26/2022, 11:16 AMnutritious-honey-65632
08/26/2022, 11:54 AMacceptable-hamburger-48790
08/26/2022, 11:55 AM${fileName}-${Cypress.env("ENVIRONMENT")}
cy.fixture(resolvedFileName).then((data) => {
//Do what you want with data here
})
I set the the ENVIRONMENT via --env propertycolossal-beard-47656
08/26/2022, 12:01 PMearly-librarian-87296
08/26/2022, 1:38 PMcy.origin()
on 10.6.0.
I have the following code```cy.visit('/'); // Visit a login page hosted by Microsoft on e.g. 'https://x.b2clogin.com' (different to the BASE_URL)
cy.origin('b2clogin.com', () => {
cy.get('#AzureADExchange').click(); // click button to redirect to login.microsoftonline.com
});```
The problem I'm seeing is that 99% of the time this works fine. When it fails the test never ends and we get A cross-origin request for <x> was detected
A command that triggers cross-origin navigation must be immediately followed by a `cy.origin()` command:
`cy.origin('https://b2clogin.com', () => {`
` <commands targeting https://<x>b2clogin.com go here>`
`})`
Any thoughts/ideas appreciated. TIAlimited-agency-13286
08/26/2022, 1:49 PMdry-london-24879
08/26/2022, 4:49 PMbeforeEach(function() {
if (!shouldRunTest()) {
this.skip()
}
})
flaky-intern-13440
08/26/2022, 5:28 PMstale-optician-85950
08/26/2022, 6:51 PMcurl https://ipinfo.io
to your build steps to see where the server is actually running.
So I don't think it will be possible via GitHub Actions. As your client's requirements are to test from a specific geo-location that has strict adherence to the IP, then I would expect the client to pay for VPN or VPS services. A VPN would be enabled on a local machine for mimicking tests being in Canada. Or rent a VPS machine located in Canada and trigger your tests to run there.square-keyboard-75775
08/26/2022, 7:34 PMpowerful-gigabyte-69168
08/26/2022, 8:23 PMapt-get install -y libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 xvfb
but we're getting an error that it apt-get
can't find libgtk2.0-0
. Has anyone seen this before?flaky-intern-13440
08/27/2022, 12:58 AMstale-optician-85950
08/27/2022, 5:33 AMvictorious-midnight-45836
08/27/2022, 12:30 PMacoustic-printer-33265
08/28/2022, 4:00 AMWebpack Compilation Error
with the firebase-admin
package. I've tried different configurations from my Google searches.
Here is the pastebin
for the error: https://pastebin.com/z7GWamcCfaint-tiger-98881
08/28/2022, 8:22 AM"ReferenceError: Cypress is not defined"
error. For example, I need to get Cypress.browser.version
property value. How do I fix it?bitter-fountain-36713
08/28/2022, 2:06 PMcold-nail-59111
08/28/2022, 3:29 PMfreezing-wall-7568
08/28/2022, 5:26 PM