Skip to content

Commit

Permalink
Merge pull request #76 from WodWide/popup-modal
Browse files Browse the repository at this point in the history
Popup modal
  • Loading branch information
yoBoyio authored Apr 21, 2023
2 parents ff80dc4 + 15338ae commit 097263a
Show file tree
Hide file tree
Showing 8 changed files with 23,074 additions and 23 deletions.
8 changes: 4 additions & 4 deletions cypress/integration/login/login-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ describe("Login page", () => {
});
it("should display proper error message when both inputs are empty", () => {
cy.get("#login-page-submit").click();
cy.get("#login-page-error").contains("Please fill in all fields");
cy.get("#toasts").contains("Please fill in all fields");
});
it("should display proper error message when username input is empty", () => {
cy.get("#password").type("password");
cy.get("#login-page-submit").click();
cy.get("#login-page-error").contains("Please fill in all fields");
cy.get("#toasts").contains("Please fill in all fields");
});
it("should display proper error message when password input is empty", () => {
cy.get("#username").type("username");
cy.get("#login-page-submit").click();
cy.get("#login-page-error").contains("Please fill in all fields");
cy.get("#toasts").contains("Please fill in all fields");
});
it("should redirect to /signup when register button is clicked", () => {
cy.get("#login-page-signup-button").click();
Expand All @@ -39,7 +39,7 @@ describe("Login page", () => {
cy.get("#password").type(user.password);
cy.get("#login-page-submit").click();
});
cy.get("#login-page-error").contains("Error: Invalid email or password");
cy.get("#toasts").contains("Error: Invalid email or password");
});
it("Should login", () => {
cy.intercept("POST", "/graphql", (req) => {
Expand Down
9 changes: 9 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ export default {
},
],
"nuxt-leaflet",
[
"nuxt-tailvue",
{
toast: {
all: true,
defaults: { containerClasses: ["justify-center"] },
},
},
],
],

fontawesome: {
Expand Down
Loading

0 comments on commit 097263a

Please sign in to comment.