Open stravid87 opened 2 weeks ago
cy.wait
command with the cy.intercept
to intercept the request after the button is clicked, then with the response, which should include the authURL, I'll programmatically visit it, provide it with the necessary information, and see what next steps will come after that (Source: https://docs.cypress.io/api/commands/intercept#Using-the-yielded-object)loginWithLayer8Popup
function is called, the first request is to get the auth URL from the backend
Perhaps the
async
...await
has anything to do with this? I'm going to check on that
layer_interceptor.fetch
would do, which means that the only way to get that to work is by reinventing the wheel and implementing the data encryption and decryption as in layer8_interceptor
and that might not be a good idea, because we'll also need to figure out how to handle initialization of the tunnelintercept
and get the response from the backend. I forgot that the interceptor makes POST
requests for all requests to the proxy server. But now, I'm back to the problem of decryption, the response intercepted are encrypted and I'm now trying to think of how that can be bypassedPop up now accessible through hard coding
server.js
won't match the actual one, so I'm in the middle of figuring out a way to get them
Description
When completing E2E testing, cypress does not allow for testing of popups. Obviously this is a problem given that the oAuth flow of signing in with Lyer8 involves a pop up. Therefore, this issue is about figuring out how to test the Layer8 OAuth flow programmatically so as to simulate the Lyaer8 pop up.
Acceptance Criteria
A Cypress test suite can run the entire flow of user login to WGP followed by Login with layer8 and then clicking of "getNextPoem"
Time Estimate
July 1 to 8