Set resolution

This commit is contained in:
Chi Vinh Le
2017-11-09 19:19:47 +01:00
parent e885178dfc
commit da35f39baf
6 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ const nightwatch_config = {
// Disable this, as it makes bs slow and brittle.
'browserstack.networkLogs': false,
'browserstack.resolution': '1600x1200',
'resolution': '1600x1200',
},
screenshots : {
enabled: true,
+4
View File
@@ -1,6 +1,10 @@
module.exports = {
'@tags': ['install'],
beforeEach: (client) => {
client.resizeWindow(1600, 1200);
},
'User goes to install': (client) => {
const install = client.page.install();
+2 -1
View File
@@ -1,9 +1,10 @@
module.exports = {
'@tags': ['admin', 'login'],
beforeEach: (client) => {
beforeEach: (client) => {
client.resizeWindow(1024, 800);
},
'Admin logs in': (client) => {
const adminPage = client.page.admin();
const {testData: {admin}} = client.globals;
+5
View File
@@ -1,5 +1,10 @@
module.exports = {
'@tags': ['embedStream', 'login'],
beforeEach: (client) => {
client.resizeWindow(1600, 1200);
},
'creates a new asset': (client) => {
const asset = 'newAssetTest';
const embedStream = client.page.embedStream();
+2
View File
@@ -1,7 +1,9 @@
module.exports = {
beforeEach: (client) => {
client.resizeWindow(1600, 1200);
},
'admin logs in': (client) => {
const adminPage = client.page.admin();
const {testData: {admin}} = client.globals;
+5
View File
@@ -1,4 +1,9 @@
module.exports = {
beforeEach: (client) => {
client.resizeWindow(1600, 1200);
},
'admin logs in': (client) => {
const adminPage = client.page.admin();
const {testData: {admin}} = client.globals;