Updated tests

This commit is contained in:
okbel
2017-12-20 20:09:51 -03:00
parent 0bce215d33
commit 483b306e69
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -165,7 +165,7 @@ export default {
updateQueries: {
TalkAdmin_Community: (prev) => {
const updated = update(prev, {
users: {
flaggedUsers: {
nodes: {$apply: (nodes) => nodes.filter((node) => node.id !== id)},
},
});
@@ -177,13 +177,13 @@ export default {
updateQueries: {
TalkAdmin_Community: (prev) => {
const updated = update(prev, {
users: {
flaggedUsers: {
nodes: {$apply: (nodes) => nodes.filter((node) => node.id !== userId)},
},
});
return updated;
}
}
},
}),
UpdateSettings: ({variables: {input}}) => ({
updateQueries: {
+4
View File
@@ -62,6 +62,7 @@ module.exports = {
},
'admin suspends the user': (client) => {
const adminPage = client.page.admin();
const community = client.page.admin().section.community;
adminPage
.waitForElementVisible('@usernameDialog')
@@ -72,6 +73,9 @@ module.exports = {
.waitForElementVisible('@usernameDialogStep1')
.waitForElementVisible('@usernameDialogSuspend')
.click('@usernameDialogSuspend');
community
.waitForElementNotPresent('@flaggedUser');
},
'admin logs out': (client) => {
client.page.admin().logout();