-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/caret-position-after-inline-paste3
- Loading branch information
Showing
34 changed files
with
4,729 additions
and
5,199 deletions.
There are no files selected for viewing
This file contains 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 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,2 +1,5 @@ | ||
1.6.0 | ||
------ | ||
* Fixed issue with link settings where “Open in New Tab” was always OFF on open. | ||
- A new block is available: video block. | ||
* Added UI to display a warning when a block has invalid content. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
* @format | ||
* */ | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import EditorPage from './pages/editor-page'; | ||
import { | ||
setupDriver, | ||
isLocalEnvironment, | ||
stopDriver, | ||
isAndroid, | ||
} from './helpers/utils'; | ||
import testData from './helpers/test-data'; | ||
|
||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 240000; | ||
|
||
describe( 'Gutenberg Editor tests', () => { | ||
let driver; | ||
let editorPage; | ||
let allPassed = true; | ||
|
||
// Use reporter for setting status for saucelabs Job | ||
if ( ! isLocalEnvironment() ) { | ||
const reporter = { | ||
specDone: async ( result ) => { | ||
allPassed = allPassed && result.status !== 'failed'; | ||
}, | ||
}; | ||
|
||
jasmine.getEnv().addReporter( reporter ); | ||
} | ||
|
||
beforeAll( async () => { | ||
driver = await setupDriver(); | ||
editorPage = new EditorPage( driver ); | ||
} ); | ||
|
||
it( 'should be able to see visual editor', async () => { | ||
await expect( editorPage.getBlockList() ).resolves.toBe( true ); | ||
} ); | ||
|
||
it( 'should be able to end a List block', async () => { | ||
await editorPage.addNewListBlock(); | ||
const listBlockElement = await editorPage.getListBlockAtPosition( 1 ); | ||
|
||
// Click List block on Android to force EditText focus | ||
if ( isAndroid() ) { | ||
await listBlockElement.click(); | ||
} | ||
|
||
// Send the first list item text | ||
await editorPage.sendTextToListBlock( listBlockElement, testData.listItem1 ); | ||
|
||
// send an Enter | ||
await editorPage.sendTextToListBlock( listBlockElement, '\n' ); | ||
|
||
// send an Enter | ||
await editorPage.sendTextToListBlock( listBlockElement, '\n' ); | ||
|
||
await editorPage.verifyHtmlContent( testData.listEndedHtml ); | ||
} ); | ||
|
||
afterAll( async () => { | ||
if ( ! isLocalEnvironment() ) { | ||
driver.sauceJobStatus( allPassed ); | ||
} | ||
await stopDriver( driver ); | ||
} ); | ||
} ); |
This file contains 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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** | ||
* @format | ||
* */ | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import EditorPage from './pages/editor-page'; | ||
import { | ||
setupDriver, | ||
isLocalEnvironment, | ||
stopDriver, | ||
isAndroid, | ||
} from './helpers/utils'; | ||
import testData from './helpers/test-data'; | ||
|
||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 240000; | ||
|
||
describe( 'Gutenberg Editor tests', () => { | ||
let driver; | ||
let editorPage; | ||
let allPassed = true; | ||
|
||
// Use reporter for setting status for saucelabs Job | ||
if ( ! isLocalEnvironment() ) { | ||
const reporter = { | ||
specDone: async ( result ) => { | ||
allPassed = allPassed && result.status !== 'failed'; | ||
}, | ||
}; | ||
|
||
jasmine.getEnv().addReporter( reporter ); | ||
} | ||
|
||
beforeAll( async () => { | ||
driver = await setupDriver(); | ||
editorPage = new EditorPage( driver ); | ||
} ); | ||
|
||
it( 'should be able to see visual editor', async () => { | ||
await expect( editorPage.getBlockList() ).resolves.toBe( true ); | ||
} ); | ||
|
||
it( 'should be able to add a new List block', async () => { | ||
await editorPage.addNewListBlock(); | ||
const listBlockElement = await editorPage.getListBlockAtPosition( 1 ); | ||
|
||
// Click List block on Android to force EditText focus | ||
if ( isAndroid() ) { | ||
await listBlockElement.click(); | ||
} | ||
|
||
// Send the first list item text | ||
await editorPage.sendTextToListBlock( listBlockElement, testData.listItem1 ); | ||
|
||
// send an Enter | ||
await editorPage.sendTextToListBlock( listBlockElement, '\n' ); | ||
|
||
// Send the second list item text | ||
await editorPage.sendTextToListBlock( listBlockElement, testData.listItem2 ); | ||
|
||
// switch to html and verify html | ||
await editorPage.verifyHtmlContent( testData.listHtml ); | ||
} ); | ||
|
||
afterAll( async () => { | ||
if ( ! isLocalEnvironment() ) { | ||
driver.sauceJobStatus( allPassed ); | ||
} | ||
await stopDriver( driver ); | ||
} ); | ||
} ); |
This file contains 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.