mirror of https://github.com/vector-im/riot-web
Improve Cypress & Percy stability (#9217)
* Improve Cypress & Percy stability * Update percy snapshot widthpull/28217/head
parent
ec0b2b551a
commit
4c94155ff0
|
@ -58,10 +58,10 @@ const startDMWithBob = function(this: CryptoTestContext) {
|
||||||
|
|
||||||
const testMessages = function(this: CryptoTestContext) {
|
const testMessages = function(this: CryptoTestContext) {
|
||||||
// check the invite message
|
// check the invite message
|
||||||
cy.contains(".mx_EventTile_body", "Hey!")
|
cy.contains(".mx_EventTile_body", "Hey!").closest(".mx_EventTile").within(() => {
|
||||||
.closest(".mx_EventTile")
|
cy.get(".mx_EventTile_e2eIcon_warning").should("not.exist");
|
||||||
.should("not.have.descendants", ".mx_EventTile_e2eIcon_warning")
|
cy.get(".mx_EventTile_receiptSent").should("exist");
|
||||||
.should("have.descendants", ".mx_EventTile_receiptSent");
|
});
|
||||||
|
|
||||||
// Bob sends a response
|
// Bob sends a response
|
||||||
cy.get<Room>("@bobsRoom").then((room) => {
|
cy.get<Room>("@bobsRoom").then((room) => {
|
||||||
|
|
|
@ -37,7 +37,8 @@ describe("Registration", () => {
|
||||||
|
|
||||||
cy.get(".mx_ServerPicker_change", { timeout: 15000 }).click();
|
cy.get(".mx_ServerPicker_change", { timeout: 15000 }).click();
|
||||||
cy.get(".mx_ServerPickerDialog_continue").should("be.visible");
|
cy.get(".mx_ServerPickerDialog_continue").should("be.visible");
|
||||||
cy.percySnapshot("Server Picker");
|
// Only snapshot the server picker otherwise in the background `matrix.org` may or may not be available
|
||||||
|
cy.get(".mx_Dialog").percySnapshotElement("Server Picker", { widths: [516] });
|
||||||
cy.checkA11y();
|
cy.checkA11y();
|
||||||
|
|
||||||
cy.get(".mx_ServerPickerDialog_otherHomeserver").type(synapse.baseUrl);
|
cy.get(".mx_ServerPickerDialog_otherHomeserver").type(synapse.baseUrl);
|
||||||
|
|
Loading…
Reference in New Issue