-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9de5255
commit c8578d7
Showing
4 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,40 @@ describe("E2E tests", () => { | |
cy.get('[data-testid="RemoveAccount"]').should("exist"); | ||
}); | ||
|
||
it("Edit data", () => { | ||
cy.visit("http://localhost:5173"); | ||
|
||
cy.get('[data-testid="WelcomeLogin"]').click(); | ||
|
||
cy.origin("http://localhost:3000", () => { | ||
cy.get("#username").type("[email protected]"); | ||
cy.get("#password").type("password"); | ||
cy.get("#kc-login").should("exist").click(); | ||
}); | ||
|
||
cy.wait(2000); | ||
|
||
cy.get('[data-testid="Edit"]').should("exist").click(); | ||
|
||
cy.wait(3000); | ||
|
||
cy.get('input[name="first_name"]').clear().type("Johnny"); | ||
cy.get('input[name="last_name"]').clear().type("Blacksmith"); | ||
cy.get('input[name="mail"]').clear().type("[email protected]"); | ||
cy.get('[data-testid="Save"]').should("exist").click(); | ||
|
||
cy.wait(2000); | ||
|
||
cy.get('[data-testid="My Profile"]').should("exist").click(); | ||
|
||
cy.wait(1000); | ||
|
||
cy.contains("p", "Johnny Blacksmith").should("exist"); | ||
cy.contains("p", "[email protected]").should("exist"); | ||
cy.get('[data-testid="Edit"]').should("exist"); | ||
cy.get('[data-testid="RemoveAccount"]').should("exist"); | ||
}); | ||
|
||
it("Change password", () => { | ||
cy.visit("http://localhost:5173"); | ||
|
||
|
@@ -79,7 +113,7 @@ describe("E2E tests", () => { | |
|
||
cy.get('[data-testid="Edit"]').should("exist").click(); | ||
|
||
cy.wait(4000); | ||
cy.wait(3000); | ||
|
||
cy.get('[data-testid="Change"]').should("exist").click(); | ||
|
||
|
@@ -97,6 +131,29 @@ describe("E2E tests", () => { | |
cy.get('[data-testid="RemoveAccount"]').should("exist"); | ||
}); | ||
|
||
it("Search users", () => { | ||
cy.visit("http://localhost:5173"); | ||
|
||
cy.get('[data-testid="WelcomeLogin"]').click(); | ||
|
||
cy.origin("http://localhost:3000", () => { | ||
cy.get("#username").type("[email protected]"); | ||
cy.get("#password").type("password2"); | ||
cy.get("#kc-login").should("exist").click(); | ||
}); | ||
|
||
cy.wait(2000); | ||
|
||
cy.get('[data-testid="Search"]').should("exist").click(); | ||
cy.wait(1000); | ||
cy.get('[data-testid="SearchBox"]').type("Robert Lewandowski"); | ||
cy.get('[data-testid="SearchButton"]').should("exist").click(); | ||
|
||
cy.wait(1000); | ||
|
||
cy.contains("p", "Robert Lewandowski").should("exist"); | ||
}); | ||
|
||
it("Remove account", () => { | ||
cy.visit("http://localhost:5173"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters