mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 14:56:43 +08:00
Set resolution
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
module.exports = {
|
||||
'@tags': ['install'],
|
||||
|
||||
beforeEach: (client) => {
|
||||
client.resizeWindow(1600, 1200);
|
||||
},
|
||||
|
||||
'User goes to install': (client) => {
|
||||
const install = client.page.install();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user