Fix lint issues
And disable eslint when building in prod mode Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -10,13 +10,17 @@ describe("Registration", () => {
|
||||
cy.get("input[type=email]").click();
|
||||
cy.get("input[type=password]").type("short").should("have.value", "short");
|
||||
cy.get("form").contains("button.button.is-primary", "Register");
|
||||
// cy.get('form .field').first().contains('p.help.is-danger', 'Please fill out this field.');
|
||||
|
||||
cy.get("form").contains(".control a.button", "Didn't receive the instructions ?").click();
|
||||
cy.get("form")
|
||||
.contains(".control a.button", "Didn't receive the instructions ?")
|
||||
.click();
|
||||
cy.url().should("include", "/resend-instructions");
|
||||
cy.go("back");
|
||||
|
||||
cy.get("form").get(".control a.button").contains("Login").click({ force: true });
|
||||
cy.get("form")
|
||||
.get(".control a.button")
|
||||
.contains("Login")
|
||||
.click({ force: true });
|
||||
cy.url().should("include", "/login");
|
||||
|
||||
cy.go("back");
|
||||
@@ -48,11 +52,14 @@ describe("Registration", () => {
|
||||
.parent()
|
||||
.find("textarea")
|
||||
.type("This is a test account");
|
||||
cy.get(".control.has-text-centered").contains("button", "Create my profile").click();
|
||||
cy.get(".control.has-text-centered")
|
||||
.contains("button", "Create my profile")
|
||||
.click();
|
||||
|
||||
cy.contains("article.message.is-success", "Your account is nearly ready, tester").contains(
|
||||
"A validation email was sent to user2register@email.com"
|
||||
);
|
||||
cy.contains(
|
||||
"article.message.is-success",
|
||||
"Your account is nearly ready, tester"
|
||||
).contains("A validation email was sent to user2register@email.com");
|
||||
|
||||
cy.visit("/sent_emails");
|
||||
|
||||
@@ -74,7 +81,13 @@ describe("Registration", () => {
|
||||
expect(loc.pathname).to.eq("/");
|
||||
});
|
||||
|
||||
cy.get(".navbar-link span.icon i").should("have.class", "mdi-account-circle");
|
||||
cy.contains("article.message.is-info", "Welcome to Mobilizon, tester account!");
|
||||
cy.get(".navbar-link span.icon i").should(
|
||||
"have.class",
|
||||
"mdi-account-circle"
|
||||
);
|
||||
cy.contains(
|
||||
"article.message.is-info",
|
||||
"Welcome to Mobilizon, tester account!"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user