mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Try to fix Cypress test for reports Latin1 error
Error in Cypress: `InvalidCharacterError: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.`
This commit is contained in:
parent
bc4cf2ee60
commit
0b549a9dea
@ -119,9 +119,9 @@ When(/^I confirm the reporting dialog .*:$/, message => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
Given('somebody reported the following posts:', table => {
|
Given('somebody reported the following posts:', table => {
|
||||||
table.hashes().forEach(({ resourceId, reasonCategory, reasonDescription }) => {
|
table.hashes().forEach(({ submitterEmail, resourceId, reasonCategory, reasonDescription }) => {
|
||||||
const submitter = {
|
const submitter = {
|
||||||
email: `submitter${resourceId}@example.org`,
|
email: submitterEmail,
|
||||||
password: '1234'
|
password: '1234'
|
||||||
}
|
}
|
||||||
cy.factory()
|
cy.factory()
|
||||||
|
|||||||
@ -50,8 +50,8 @@ Feature: Report and Moderate
|
|||||||
|
|
||||||
Scenario: Review reported content
|
Scenario: Review reported content
|
||||||
Given somebody reported the following posts:
|
Given somebody reported the following posts:
|
||||||
| resourceId | reasonCategory | reasonDescription |
|
| submitterEmail | resourceId | reasonCategory | reasonDescription |
|
||||||
| p1 | discrimination-etc | Offensive content |
|
| p1.submitter@example.org | p1 | discrimination-etc | Offensive content |
|
||||||
And I am logged in with a "moderator" role
|
And I am logged in with a "moderator" role
|
||||||
When I click on the avatar menu in the top right corner
|
When I click on the avatar menu in the top right corner
|
||||||
And I click on "Moderation"
|
And I click on "Moderation"
|
||||||
@ -60,8 +60,8 @@ Feature: Report and Moderate
|
|||||||
|
|
||||||
Scenario: Review reported posts of a user who's blocked a moderator
|
Scenario: Review reported posts of a user who's blocked a moderator
|
||||||
Given somebody reported the following posts:
|
Given somebody reported the following posts:
|
||||||
| resourceId | reasonCategory | reasonDescription |
|
| submitterEmail | resourceId | reasonCategory | reasonDescription |
|
||||||
| p2 | other | Offensive content |
|
| p2.submitter@example.org | p2 | other | Offensive content |
|
||||||
And my user account has the role "moderator"
|
And my user account has the role "moderator"
|
||||||
And there is an annoying user who has blocked me
|
And there is an annoying user who has blocked me
|
||||||
And I am logged in
|
And I am logged in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user