fix(tests): wait longer for login to complete (#44349)
Hopefully this is long enough. If it isn't, we'll need to find out why login takes so long.pull/44348/head
parent
b89c31c0d1
commit
1b006820bd
|
@ -35,7 +35,7 @@
|
||||||
Cypress.Commands.add('login', () => {
|
Cypress.Commands.add('login', () => {
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
cy.contains("Get started (it's free)").click();
|
cy.contains("Get started (it's free)").click();
|
||||||
cy.location().should(loc => {
|
cy.location({ timeout: 10000 }).should(loc => {
|
||||||
// I'm not 100% sure why logins get redirected to /learn/ via 301 in
|
// I'm not 100% sure why logins get redirected to /learn/ via 301 in
|
||||||
// development, but not in production, but they do. Hence to make it easier
|
// development, but not in production, but they do. Hence to make it easier
|
||||||
// work on tests, we'll just allow for both.
|
// work on tests, we'll just allow for both.
|
||||||
|
|
Loading…
Reference in New Issue