e2e fixes

This commit is contained in:
Chi Vinh Le
2017-11-09 22:04:32 +01:00
parent f0839c57df
commit 9abb3d30da
5 changed files with 21 additions and 14 deletions
+4 -3
View File
@@ -12,6 +12,10 @@ module.exports = {
done();
},
after: (client) => {
client.end();
},
'User goes to install': (client) => {
const install = client.page.install();
@@ -86,7 +90,4 @@ module.exports = {
install
.expect.section('@step5').to.be.present;
},
after: (client) => {
client.end();
}
};
+4 -4
View File
@@ -12,6 +12,10 @@ module.exports = {
done();
},
after: (client) => {
client.end();
},
'Admin logs in': (client) => {
const adminPage = client.page.admin();
const {testData: {admin}} = client.globals;
@@ -36,8 +40,4 @@ module.exports = {
.openDrawer()
.goToCommunity();
},
after: (client) => {
client.end();
}
};
+4 -3
View File
@@ -12,6 +12,10 @@ module.exports = {
done();
},
after: (client) => {
client.end();
},
'creates a new asset': (client) => {
const asset = 'newAssetTest';
const embedStream = client.page.embedStream();
@@ -105,7 +109,4 @@ module.exports = {
profile
.assert.visible('@notLoggedIn');
},
after: (client) => {
client.end();
}
};
+5 -4
View File
@@ -11,6 +11,10 @@ module.exports = {
done();
},
after: (client) => {
client.end();
},
'admin logs in': (client) => {
const adminPage = client.page.admin();
const {testData: {admin}} = client.globals;
@@ -105,7 +109,7 @@ module.exports = {
.setValue('@suspendedAccountInput', `${user.username}_alternative`)
.waitForElementVisible('@suspendedAccountSubmitButton')
.click('@suspendedAccountSubmitButton')
.waitForElementVisible('@suspendedAccountInput');
.waitForElementNotPresent('@suspendedAccountInput');
},
'user should not be able to comment': (client) => {
const embedStream = client.page.embedStream();
@@ -115,7 +119,4 @@ module.exports = {
.waitForElementNotPresent('@commentBoxTextarea')
.waitForElementNotPresent('@commentBoxPostButton');
},
after: (client) => {
client.end();
}
};
+4
View File
@@ -11,6 +11,10 @@ module.exports = {
done();
},
after: (client) => {
client.end();
},
'admin logs in': (client) => {
const adminPage = client.page.admin();
const {testData: {admin}} = client.globals;