You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-01 03:23:30 +03:00
Make percy snapshots for user onboarding more reliable (#9132)
* Make percy snapshots for user onboarding more reliable * Increase stability of lazy loading test Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4a14882938
commit
cb15222594
@@ -49,7 +49,14 @@ describe("User Onboarding (new user)", () => {
|
||||
|
||||
it("page is shown", () => {
|
||||
cy.get('.mx_UserOnboardingPage').should('exist');
|
||||
cy.percySnapshot("User onboarding page");
|
||||
cy.get('.mx_UserOnboardingList')
|
||||
.should('exist')
|
||||
.should(($list) => {
|
||||
const list = $list.get(0);
|
||||
expect(getComputedStyle(list).opacity).to.be.eq("1");
|
||||
});
|
||||
cy.get('.mx_UserOnboardingPage')
|
||||
.percySnapshotElement("User onboarding page");
|
||||
});
|
||||
|
||||
it("app download dialog", () => {
|
||||
@@ -58,7 +65,10 @@ describe("User Onboarding (new user)", () => {
|
||||
cy.get('[role=dialog]')
|
||||
.contains("#mx_BaseDialog_title", "Download Element")
|
||||
.should("exist");
|
||||
cy.percySnapshot("App download dialog");
|
||||
cy.get('[role=dialog]')
|
||||
.percySnapshotElement("App download dialog", {
|
||||
widths: [640],
|
||||
});
|
||||
});
|
||||
|
||||
it("using find friends action should increase progress", () => {
|
||||
|
||||
Reference in New Issue
Block a user