Improved the naming of the test cases / screenshot files.

This commit is contained in:
Maxim Khlobystov 2018-01-22 18:32:29 -05:00
parent 75f1992667
commit 9a3804ebdd
74 changed files with 13 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -5,13 +5,13 @@ let expect = require('chai').expect;
let utils = require('../../utils');
describe('Screenshots:', function() {
it('Join Audio modal looks good', function() {
it('Join Audio modal', function() {
HomePage.login('testuser', 'Demo Meeting');
HomePage.audioModalHeaderElement.waitForExist(7000);
utils.expectImageMatch(browser.checkElement(HomePage.audioModalSelector), 'Join Audio modal isn\'t the same');
});
it('Home page viewport looks good', function() {
it('Home page viewport', function() {
HomePage.modalBaseCloseButtonElement.click();
utils.expectImageMatch(browser.checkViewport(), 'Home page viewport isn\'t the same');
});
@ -19,40 +19,40 @@ describe('Screenshots:', function() {
//////////////////////////////
// Userlist + Chat
it('Userlist looks good', function() {
it('Userlist', function() {
HomePage.userListToggleButtonElement.click();
utils.expectImageMatch(browser.checkElement(HomePage.userListContentSelector), 'Userlist content isn\'t the same');
});
it('Viewport looks good with userlist open', function() {
it('Viewport with userlist open', function() {
utils.expectImageMatch(browser.checkViewport(), 'Home page viewport isn\'t the same after we open userlist');
});
/*it('Userlist avatar looks good', function() {
/*it('Userlist avatar', function() {
utils.expectImageMatch(browser.checkElement(HomePage.userAvatarElement), 'Userlist avatar isn\'t the same');
});*/
it('Public chat looks good', function() {
it('Public chat', function() {
HomePage.publicChatLinkElement.click();
utils.expectImageMatch(browser.checkElement(HomePage.publicChatSelector), 'Public chat isn\'t the same');
});
it('Viewport looks good with both userlist and public chat open', function() {
it('Viewport with both userlist and public chat open', function() {
browser.moveToObject(HomePage.chatTitleSelector); // avoid hover effect on the Public Chat tab
utils.expectImageMatch(browser.checkViewport(), 'Home page viewport isn\'t the same after we open both userlist and public chat');
});
/*it('Public chat dropdown looks good', function() {
/*it('Public chat dropdown', function() {
HomePage.chatDropdownTriggerElement.click();
utils.expectImageMatch(browser.checkElement(HomePage.publicChatSelector), 'Public chat dropdown isn\'t the same');
});*/
it('Public chat closes successfully', function() {
it('Public chat closes', function() {
HomePage.chatTitleElement.click();
utils.expectImageMatch(browser.checkViewport(), 'Home page viewport isn\'t the same after we closed public chat');
});
it('Userlist closes successfully', function() {
it('Userlist closes', function() {
HomePage.userListToggleButtonElement.click();
utils.expectImageMatch(browser.checkViewport(), 'Home page viewport isn\'t the same after we close the userlist');
});
@ -60,7 +60,7 @@ describe('Screenshots:', function() {
//////////////////////////////
// Settings:
it('Settings dropdown looks good', function() {
it('Settings dropdown', function() {
HomePage.settingsDropdownTriggerElement.waitForExist(2000);
HomePage.settingsDropdownTriggerElement.click();
HomePage.settingsDropdownElement.waitForExist(2000);
@ -68,14 +68,14 @@ describe('Screenshots:', function() {
utils.expectImageMatch(browser.checkElement(HomePage.settingsDropdownSelector), 'Settings dropdown isn\'t the same');
});
it('Logout popup looks good', function() {
it('Logout popup', function() {
HomePage.settingsDropdownLogoutButtonElement.waitForExist(2000);
HomePage.settingsDropdownLogoutButtonElement.click();
HomePage.logoutModalElement.waitForExist(2000);
utils.expectImageMatch(browser.checkElement(HomePage.logoutModalSelector));
});
it('Logout popup closes successfully', function() {
it('Logout popup closes', function() {
HomePage.modalDismissButtonElement.click();
utils.expectImageMatch(browser.checkViewport(), 'Home page viewport isn\'t the same after we close Logout modal');
});