Add visual tests using Percy in Cypress (#8610)
* Add basic Percy tests * Run Percy in CI * Fix snapshot timing * Fix bad selector * Hide another bit of dynamic text * Add docs
This commit is contained in:
parent
c122c5cd3b
commit
d9b7e0721c
10 changed files with 218 additions and 9 deletions
|
@ -41,7 +41,10 @@ describe("Login", () => {
|
|||
});
|
||||
|
||||
it("logs in with an existing account and lands on the home screen", () => {
|
||||
cy.get(".mx_ServerPicker_change", { timeout: 15000 }).click();
|
||||
cy.get("#mx_LoginForm_username", { timeout: 15000 }).should("be.visible");
|
||||
cy.percySnapshot("Login");
|
||||
|
||||
cy.get(".mx_ServerPicker_change").click();
|
||||
cy.get(".mx_ServerPickerDialog_otherHomeserver").type(synapse.baseUrl);
|
||||
cy.get(".mx_ServerPickerDialog_continue").click();
|
||||
// wait for the dialog to go away
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue