From 3be87fbf3b9ab354cf8c439c6aeeb28ec2c2d764 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 5 Mar 2025 18:31:55 -0600 Subject: Add report dialog e2e tests (#7913) --- __e2e__/config.yml | 2 +- __e2e__/flows/report-dialog/account.default.yml | 24 ++++++++++++++++ __e2e__/flows/report-dialog/post:default.yml | 24 ++++++++++++++++ __e2e__/flows/report-dialog/post:edit-reason.yml | 35 +++++++++++++++++++++++ __e2e__/flows/report-dialog/post:reason-other.yml | 30 +++++++++++++++++++ 5 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 __e2e__/flows/report-dialog/account.default.yml create mode 100644 __e2e__/flows/report-dialog/post:default.yml create mode 100644 __e2e__/flows/report-dialog/post:edit-reason.yml create mode 100644 __e2e__/flows/report-dialog/post:reason-other.yml (limited to '__e2e__') diff --git a/__e2e__/config.yml b/__e2e__/config.yml index b36b0ef60..7bdd8eb23 100644 --- a/__e2e__/config.yml +++ b/__e2e__/config.yml @@ -1,2 +1,2 @@ flows: - - "flows/*" \ No newline at end of file + - "flows/**" diff --git a/__e2e__/flows/report-dialog/account.default.yml b/__e2e__/flows/report-dialog/account.default.yml new file mode 100644 index 000000000..0d4225473 --- /dev/null +++ b/__e2e__/flows/report-dialog/account.default.yml @@ -0,0 +1,24 @@ +appId: xyz.blueskyweb.app +--- +- runScript: + file: ../../setupServer.js + env: + SERVER_PATH: ?users&follows&posts&feeds +- runFlow: + file: ../../setupApp.yml +- tapOn: + id: "e2eSignInAlice" + +- tapOn: "Carla's avatar" +- tapOn: + id: "profileHeaderDropdownBtn" +- tapOn: + id: "profileHeaderDropdownReportBtn" +- tapOn: + id: "report:option:com.atproto.moderation.defs#reasonSpam" +- assertVisible: + id: "report:labeler:mod-authority.test" +- tapOn: + id: "report:submit" +- assertNotVisible: + id: "report:dialog" diff --git a/__e2e__/flows/report-dialog/post:default.yml b/__e2e__/flows/report-dialog/post:default.yml new file mode 100644 index 000000000..955177b59 --- /dev/null +++ b/__e2e__/flows/report-dialog/post:default.yml @@ -0,0 +1,24 @@ +appId: xyz.blueskyweb.app +--- +- runScript: + file: ../../setupServer.js + env: + SERVER_PATH: ?users&follows&posts&feeds +- runFlow: + file: ../../setupApp.yml +- tapOn: + id: "e2eSignInAlice" + +- tapOn: + id: "postDropdownBtn" + index: 0 +- tapOn: + id: "postDropdownReportBtn" +- tapOn: + id: "report:option:com.atproto.moderation.defs#reasonSpam" +- assertVisible: + id: "report:labeler:mod-authority.test" +- tapOn: + id: "report:submit" +- assertNotVisible: + id: "report:dialog" diff --git a/__e2e__/flows/report-dialog/post:edit-reason.yml b/__e2e__/flows/report-dialog/post:edit-reason.yml new file mode 100644 index 000000000..3c612d4ba --- /dev/null +++ b/__e2e__/flows/report-dialog/post:edit-reason.yml @@ -0,0 +1,35 @@ +appId: xyz.blueskyweb.app +--- +- runScript: + file: ../../setupServer.js + env: + SERVER_PATH: ?users&follows&posts&feeds +- runFlow: + file: ../../setupApp.yml +- tapOn: + id: "e2eSignInAlice" + +- tapOn: + id: "postDropdownBtn" + index: 0 +- tapOn: + id: "postDropdownReportBtn" +- tapOn: + id: "report:option:com.atproto.moderation.defs#reasonOther" +- assertVisible: + id: "report:labeler:mod-authority.test" +# reason "other" defaults with details open +- assertVisible: + id: "report:details" +- tapOn: + id: "report:clearOption" +- assertNotVisible: + id: "report:details" +- tapOn: + id: "report:option:com.atproto.moderation.defs#reasonSpam" +- assertVisible: + id: "report:labeler:mod-authority.test" +- tapOn: + id: "report:submit" +- assertNotVisible: + id: "report:dialog" diff --git a/__e2e__/flows/report-dialog/post:reason-other.yml b/__e2e__/flows/report-dialog/post:reason-other.yml new file mode 100644 index 000000000..39c0e7084 --- /dev/null +++ b/__e2e__/flows/report-dialog/post:reason-other.yml @@ -0,0 +1,30 @@ +appId: xyz.blueskyweb.app +--- +- runScript: + file: ../../setupServer.js + env: + SERVER_PATH: ?users&follows&posts&feeds +- runFlow: + file: ../../setupApp.yml +- tapOn: + id: "e2eSignInAlice" + +- tapOn: + id: "postDropdownBtn" + index: 0 +- tapOn: + id: "postDropdownReportBtn" +- tapOn: + id: "report:option:com.atproto.moderation.defs#reasonOther" +- assertVisible: + id: "report:labeler:mod-authority.test" +# reason "other" defaults with details open +- assertVisible: + id: "report:details" +- tapOn: + id: "report:details" +- inputText: "This is a test report" +- tapOn: + id: "report:submit" +- assertNotVisible: + id: "report:dialog" -- cgit 1.4.1