-
-
Notifications
You must be signed in to change notification settings - Fork 489
Updating webpack-cli and webpack-dev-server. Adding projects test to CI #1814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8181ece
Updating webpack-cli and webpack-dev-server. Adding projects test to cli
berhalak d3e8a48
Updating tests
berhalak b2ee5aa
Updating tests
berhalak 7786766
Adding user-data-dir
berhalak 4f49cc1
Updating runner
berhalak 3cf395b
Testing server
berhalak 1b0c59a
testing
berhalak 867adb5
Testing build
berhalak fa5a9da
Updating test
berhalak b3a1c52
Linting
berhalak b1f178f
Removign cleanup for project tests
berhalak c02eec6
Moving helper back to ColorSelect
berhalak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,11 @@ | ||
| import {assert, driver, Key, WebElement} from 'mocha-webdriver'; | ||
| import {server, setupTestSuite} from 'test/projects/testUtils'; | ||
| import * as gu from 'test/nbrowser/gristUtils'; | ||
|
|
||
|
|
||
| describe('UserManager', () => { | ||
| setupTestSuite(); | ||
| gu.bigScreen(); | ||
|
|
||
| before(async function() { | ||
| this.timeout(60000); // Set a longer default timeout. | ||
|
|
@@ -34,12 +37,14 @@ describe('UserManager', () => { | |
| } | ||
|
|
||
| it('should render all emails and roles initially', async function() { | ||
| assert.deepEqual(await getRenderedMembers(), [ | ||
| ["[email protected]", "Owner"], | ||
| ["[email protected]", "Editor"], | ||
| ["[email protected]", "Viewer"], | ||
| ["[email protected]", "Viewer"], | ||
| ]); | ||
| await gu.waitToPass(async () => { | ||
| assert.deepEqual(await getRenderedMembers(), [ | ||
| ["[email protected]", "Owner"], | ||
| ["[email protected]", "Editor"], | ||
| ["[email protected]", "Viewer"], | ||
| ["[email protected]", "Viewer"], | ||
| ]); | ||
| }, 5000); | ||
| assert.deepEqual(JSON.parse(await driver.find('.test-result').getText()), {}); | ||
| }); | ||
|
|
||
|
|
@@ -65,10 +70,11 @@ describe('UserManager', () => { | |
| await driver.find('.test-um-member-new input').sendKeys('[email protected]', Key.ENTER); | ||
| await driver.find('.test-um-member-new input').sendKeys('[email protected]', Key.ENTER); | ||
| await driver.find('.test-um-member-new input').sendKeys('[email protected]', Key.ENTER); | ||
|
|
||
| await driver.findContent('.test-um-member', /eve@a\.com/).find('.test-um-member-role').doClick(); | ||
| await driver.findContent('.test-um-role-option', /Editor/).doClick(); | ||
| await driver.findContentWait('.test-um-role-option', /Editor/, 100).doClick(); | ||
| await driver.findContent('.test-um-member', /bob@bob\.tail/).find('.test-um-member-role').doClick(); | ||
| await driver.findContent('.test-um-role-option', /Editor/).doClick(); | ||
| await driver.findContentWait('.test-um-role-option', /Editor/, 100).doClick(); | ||
|
|
||
| assert.deepEqual(await getRenderedMembers(), [ | ||
| ["[email protected]", "Owner"], | ||
|
|
@@ -130,9 +136,9 @@ describe('UserManager', () => { | |
| await driver.find('.test-um-member-new input').sendKeys('[email protected]', Key.ENTER); | ||
| await driver.findContent('.test-um-member', /foo@example\.com/).find('.test-um-member-delete').doClick(); | ||
| await driver.findContent('.test-um-member', /bar@example\.com/).find('.test-um-member-role').doClick(); | ||
| await driver.findContent('.test-um-role-option', /Owner/).doClick(); | ||
| await driver.findContentWait('.test-um-role-option', /Owner/, 100).doClick(); | ||
| await driver.findContent('.test-um-member', /alice@bobtail\.com/).find('.test-um-member-role').doClick(); | ||
| await driver.findContent('.test-um-role-option', /Owner/).doClick(); | ||
| await driver.findContentWait('.test-um-role-option', /Owner/, 100).doClick(); | ||
|
|
||
| assert.deepEqual(await getRenderedMembers(), [ | ||
| ["[email protected]", null], | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? (I always have to adjust when I run such tests locally because bigScreen is bigger than my physical screen)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is. It will fail with the full browser without it. But the size of the window can be adjusted globally (Cyprian already raised that issue before), I will propose a change as a DIFF as more test will be affected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do have
gu.bigScreen('medium'), and to me that would be a more convenient default. Totally fine to leave as is in this PR.