Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
e1387ea
Remove left border of the toolbar
Tug Mar 12, 2020
7ac0bb5
Update gutenberg ref
Tug Mar 13, 2020
04e15e3
Merge remote-tracking branch 'origin/develop' into remove/header-tool…
Tug Mar 13, 2020
119aefc
One `addNewBlock` to rule them all
Stojdza Mar 19, 2020
51fd499
remove unused addNew***Block functions
Stojdza Mar 19, 2020
35d0454
Move click on block inside getBlockAtPosition()
Stojdza Mar 19, 2020
34b6ff3
Use getBlockAtPosition() in all tests
Stojdza Mar 23, 2020
713b89c
Merge branch 'develop' into e2e/update/block-at-position
Stojdza Mar 23, 2020
d8185e9
Swap parameters in functions calls
Stojdza Mar 24, 2020
0ca6beb
Fix Correctness
Stojdza Mar 24, 2020
55afb06
Fix Correctness #2
Stojdza Mar 24, 2020
3614b57
Ty with promiseChainRemote instead PromiseChainWebdriver
Stojdza Mar 24, 2020
84f89c9
Merge branch 'develop' into e2e/update/block-at-position
Stojdza Mar 30, 2020
02b1001
Remove `click` from getBlockAtPosition()
Stojdza Mar 30, 2020
862012e
Add image block only once
Stojdza Mar 30, 2020
ee48ced
use removeBlockAtPosition() in all tests
Stojdza Mar 30, 2020
a1bd7e4
Use hasBlockAtPosition() instead of hasParagraphBlockAtPosition()
Stojdza Mar 30, 2020
9139ad3
Use sendTextToParagraphBlock() instead sendTextToParagraphBlockAtPosi…
Stojdza Mar 30, 2020
0a26527
Add script for canary tests
Stojdza Apr 2, 2020
1e73fad
Run canary tests on every PR
Stojdza Apr 2, 2020
60d8aaf
Mark 3 tests as canaries
Stojdza Apr 2, 2020
7c42852
Remove "Canaries" from check names
Stojdza Apr 2, 2020
4ce3f62
Revert "Remove "Canaries" from check names"
Stojdza Apr 3, 2020
83804b9
Merge branch 'try/e2e/subset-of-tests' into try/e2e/scheduled-runs
Stojdza Apr 6, 2020
e36b431
Add scheduled full test suite
Stojdza Apr 6, 2020
2325290
fix indentations
Stojdza Apr 6, 2020
cbe9c84
§Remove changes from Canary branch
Stojdza Apr 6, 2020
8c2295c
Merge branch 'e2e/update/block-at-position' into add/e2e/separator-test
Stojdza Apr 7, 2020
5d31552
Update Latest post block test
Stojdza Apr 7, 2020
3177194
Add Separator block test
Stojdza Apr 7, 2020
021362b
Add test for "More" block
Stojdza Apr 7, 2020
23651a2
Add test for "Spacer" block
Stojdza Apr 7, 2020
5be6207
fix corectness
Stojdza Apr 7, 2020
f298e99
Fix obvious copy/paste mistake
Stojdza Apr 8, 2020
9b90bc1
merge with develop
Stojdza Apr 9, 2020
a8df28f
Merge branch 'develop' into add/e2e/separator-test
Stojdza Apr 12, 2020
8ec01d6
Cover more blocks
Stojdza Apr 12, 2020
16f5912
Revert "Cover more blocks"
Stojdza Apr 12, 2020
62e119f
Merge branch 'develop' into e2e/update/block-at-position
Stojdza Apr 12, 2020
c7580b1
fix correctness
Stojdza Apr 12, 2020
2cff821
fix correctness #2
Stojdza Apr 12, 2020
d2cf8fb
Fix functions names
Stojdza Apr 12, 2020
0da8cd6
Update function calls
Stojdza Apr 12, 2020
c387ae1
Add Slack failure message for scheduled runs
rachelmcr Apr 17, 2020
aa7c1b5
Update gutenberg ref
ceyhun Apr 27, 2020
91ce848
Update release notes
ceyhun Apr 27, 2020
e4fa14f
Add Pullquote block to initial html
ceyhun Apr 27, 2020
95dc42f
Update gutenberg reference
mkevins Apr 28, 2020
15d21eb
Revert release-branch changes
mkevins Apr 28, 2020
225f389
Update gutenberg reference
mkevins Apr 28, 2020
1365a2a
Update gutenberg reference
mkevins Apr 28, 2020
e6388fd
Merge pull request #2190 from wordpress-mobile/fix/unwrapped-button-b…
mkevins Apr 28, 2020
7902d2f
Remove reference to nonexistent mocks
Mar 23, 2020
9c7879d
Remove node-libs-react-native
Apr 28, 2020
e30b653
Global styles provider (#2196)
dratwas Apr 29, 2020
4999d51
Merge remote-tracking branch 'origin/develop' into e2e/update/block-a…
mchowning Apr 29, 2020
e596c69
Delete unused RN CLI file
Apr 29, 2020
ce8b917
Restore deleted wppackages reference
Apr 29, 2020
602ed0b
Merge pull request #2051 from wordpress-mobile/e2e/update/block-at-po…
mchowning Apr 29, 2020
abf757c
Merge remote-tracking branch 'origin/develop' into add/e2e/separator-…
mchowning Apr 29, 2020
e24b22e
Merge pull request #2122 from wordpress-mobile/add/e2e/separator-test
mchowning Apr 29, 2020
38e88c6
Merge branch 'master' into master-1.27.0-to-develop
mkevins Apr 30, 2020
d594336
Update gutenberg reference
mkevins Apr 30, 2020
9cd533c
Remove duplicate release note
mkevins Apr 30, 2020
ede45b3
Update gutenberg reference
mkevins Apr 30, 2020
c9b11f4
Merge pull request #2115 from wordpress-mobile/try/e2e/scheduled-runs
maxme Apr 30, 2020
d1d5583
Merge pull request #2202 from wordpress-mobile/master-1.27.0-to-develop
mkevins Apr 30, 2020
69a2a06
Correct android font weight (#2141)
lukewalczak Apr 30, 2020
7fe1ae4
Merge branch 'develop' into feature/enable-pullquote-block
ceyhun Apr 30, 2020
114d607
Merge pull request #2189 from wordpress-mobile/feature/enable-pullquo…
ceyhun Apr 30, 2020
f4a1a79
Merge pull request #2059 from wordpress-mobile/rnmobile/remove-ref-to…
Apr 30, 2020
21ad00e
Update react-native-video to version 5.0.2
SergioEstevao Apr 30, 2020
7ec9ff6
Add code of conduct file.
SergioEstevao May 4, 2020
f8eaea4
Bump version number in package.json to 1.27.0
mkevins May 4, 2020
08adebf
Update Podfile.lock with 1.27.0 version bump
mkevins May 5, 2020
45c2ffc
Merge pull request #2215 from wordpress-mobile/fix/bump-version-after…
mkevins May 5, 2020
ea66376
Update code of conduct.
SergioEstevao May 5, 2020
e97721f
Merge pull request #2212 from wordpress-mobile/issue/add_code_of_conduct
mchowning May 5, 2020
8f0aa6c
Update RELEASE-NOTES.txt
ceyhun May 5, 2020
4ab7249
Color Settings (#2096)
lukewalczak May 5, 2020
a45d9e6
Merge branch 'develop' into update-release-notes
ceyhun May 5, 2020
7cc1479
Merge pull request #2217 from wordpress-mobile/update-release-notes
ceyhun May 5, 2020
b26d43c
Update podfile.lock file
SergioEstevao May 5, 2020
fa201ac
Update react-native-video reference.
SergioEstevao May 6, 2020
d995a69
Remove subscription button from blog template (#2219)
pinarol May 6, 2020
284739a
Fix: Add RTL support (#2144)
jbinda May 6, 2020
3d78513
Merge pull request #2205 from wordpress-mobile/try/update_react_nativ…
SergioEstevao May 6, 2020
08b0bdc
Update Aztec version to 1.19.0
SergioEstevao May 6, 2020
402a12e
Update initial HTML to have a superscript and subscript example.
SergioEstevao May 6, 2020
5a7b574
Update release notes.
SergioEstevao May 6, 2020
f9e353a
Correct color palette in color settings (#2224)
lukewalczak May 7, 2020
d90e954
Merge branch 'develop' into issue/update_aztec_ios_to_1.19.0
SergioEstevao May 7, 2020
2771be0
Merge pull request #2226 from wordpress-mobile/issue/update_aztec_ios…
SergioEstevao May 7, 2020
9c8721d
Update bundles.
SergioEstevao May 7, 2020
1186db1
Update strings.
SergioEstevao May 7, 2020
a549fa3
Merge pull request #2240 from wordpress-mobile/issue/update_bundles
SergioEstevao May 7, 2020
d2760d7
Update GB reference.
SergioEstevao May 8, 2020
3ecdd78
Update Gutenberg ref
May 8, 2020
db745e8
Merge branch 'develop' into master-1.27.1-to-develop
May 8, 2020
5504632
Update GB reference.
SergioEstevao May 8, 2020
f7351f2
Update GB reference.
SergioEstevao May 8, 2020
b543657
Merge pull request #2245 from wordpress-mobile/issue/fix_breakage
SergioEstevao May 11, 2020
f47bdb9
update ref (#2105)
dratwas May 11, 2020
1582da7
Update Gutenberg ref
May 11, 2020
c92539f
Merge branch 'develop' into remove/header-toolbar-left-border
SergioEstevao May 11, 2020
a012e12
Merge pull request #2004 from wordpress-mobile/remove/header-toolbar-…
SergioEstevao May 11, 2020
a0a9be5
Update Gutenberg ref
May 11, 2020
2030347
Update Gutenberg ref
May 11, 2020
122a10b
Merge pull request #2246 from wordpress-mobile/master-1.27.1-to-develop
May 11, 2020
50dcc5b
Update existing templates to use new blocks (#2179)
mkevins May 11, 2020
fe6f5af
Fix merge mixup in release notes
mchowning May 11, 2020
3bf7044
Add priority indicators for release notes
mchowning May 11, 2020
d6f924a
Merge pull request #2251 from wordpress-mobile/fix_release_notes
mchowning May 11, 2020
4beb166
v1.28.0
mchowning May 11, 2020
cfcdaf1
Update podfile.lock
SergioEstevao May 11, 2020
9b30734
Update bundles
SergioEstevao May 12, 2020
682195c
Make sure video podspec is updated when generating the third-party po…
SergioEstevao May 13, 2020
3f06a24
Update GB reference.
SergioEstevao May 13, 2020
78e71ec
Update GB reference.
SergioEstevao May 13, 2020
7baf99d
Update bundles.
SergioEstevao May 14, 2020
e32ec37
Update GB reference.
SergioEstevao May 14, 2020
49df355
Update bundles.
SergioEstevao May 15, 2020
ce72cd2
Only rebuild JS bundle if inputs or bundle file has changed
mchowning May 14, 2020
ae6feff
Broaden js bundle inputs
mchowning May 15, 2020
ffc520a
Move bundle to build folder and improve incremental builds
mchowning May 15, 2020
7556716
Bump gradle Node plugin version, Node/Npm/Yarn too
hypest May 15, 2020
6281b1d
Merge pull request #2264 from wordpress-mobile/avoid-jitpack-updates
mchowning May 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: 2.1

orbs:
slack: circleci/slack@3.4.2

commands:
yarn-install:
steps:
Expand Down Expand Up @@ -60,6 +63,11 @@ jobs:
- store_test_results:
path: ./reports/test-results
android-device-checks:
parameters:
post-to-slack:
description: Post to Slack when tests fail. SLACK_WEBHOOK ENV variable must be set.
type: boolean
default: false
docker:
- image: circleci/android:api-29-node
steps:
Expand Down Expand Up @@ -89,7 +97,20 @@ jobs:
JEST_JUNIT_OUTPUT: "reports/test-results/android-test-results.xml"
- store_test_results:
path: ./reports/test-results
- when:
condition: << parameters.post-to-slack >>
steps:
- slack/status:
fail_only: true
include_job_number_field: false
include_project_field: false
failure_message: ':red_circle: Scheduled tests failed on Android device!'
ios-device-checks:
parameters:
post-to-slack:
description: Post to Slack when tests fail. SLACK_WEBHOOK ENV variable must be set.
type: boolean
default: false
macos:
xcode: "11.2.1"
steps:
Expand Down Expand Up @@ -156,6 +177,14 @@ jobs:
key: ios-build-cache-{{ checksum "ios-checksums.txt" }}
paths:
- ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app
- when:
condition: << parameters.post-to-slack >>
steps:
- slack/status:
fail_only: true
include_job_number_field: false
include_project_field: false
failure_message: ':red_circle: Scheduled tests failed on iOS device!'

workflows:
gutenberg-mobile:
Expand All @@ -175,3 +204,18 @@ workflows:
name: Test iOS on Device
- android-device-checks:
name: Test Android on Device

ui-tests-full-scheduled:
jobs:
- ios-device-checks:
name: Test iOS on Device - Scheduled
post-to-slack: true
- android-device-checks:
name: Test Android on Device - Scheduled
post-to-slack: true
triggers:
- schedule:
cron: '1 1,13 * * *'
filters:
branches:
only: develop
28 changes: 28 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
* Other unethical or unprofessional conduct

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by emailing a project maintainer via https://make.wordpress.org/community/contact/, with a subject (the field labeled `Your Question`) that includes `Code of Conduct`. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.


This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/3/0/
9 changes: 9 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
1.28.0
------
* [***] New block: Pullquote
* [**] Add support for changing background and text color in Buttons block
* [*] Fix the icons and buttons in Gallery, Paragraph, List and MediaText block on RTL mode
* [**] Remove Subscription Button from the Blog template since it didn't have an initial functionality and it is hard to configure for users.
* [**] [iOS] Add support for the subscript `<sub>` and superscript `<sup>`HTML elements in text blocks
* [**] Update page templates to use recently added blocks

1.27.1
------
* Remove Subscription Button from the Blog template since it didn't have an initial functionality and it is hard to configure for users.
Expand Down
2 changes: 1 addition & 1 deletion RNTAztecView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Pod::Spec.new do |s|
s.xcconfig = {'OTHER_LDFLAGS' => '-lxml2',
'HEADER_SEARCH_PATHS' => '/usr/include/libxml2'}
s.dependency 'React-Core'
s.dependency 'WordPress-Aztec-iOS', '~> 1.18.0'
s.dependency 'WordPress-Aztec-iOS', '~> 1.19.0'

end
47 changes: 28 additions & 19 deletions __device-tests__/gutenberg-editor-block-insertion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ describe( 'Gutenberg Editor tests for Block insertion', () => {
let driver;
let editorPage;
let allPassed = true;
const paragraphBlockName = 'Paragraph';

// Use reporter for setting status for saucelabs Job
if ( ! isLocalEnvironment() ) {
Expand All @@ -45,21 +46,23 @@ describe( 'Gutenberg Editor tests for Block insertion', () => {
} );

it( 'should be able to insert block into post', async () => {
await editorPage.addNewParagraphBlock();
let paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 1 );
await editorPage.addNewBlock( paragraphBlockName );
let paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName );
if ( isAndroid() ) {
await paragraphBlockElement.click();
}
await editorPage.sendTextToParagraphBlockAtPosition( 1, testData.longText );

await editorPage.sendTextToParagraphBlock( 1, testData.longText );
// Should have 3 paragraph blocks at this point

paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 2 );
paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName, 2 );
await paragraphBlockElement.click();

await editorPage.addNewParagraphBlock();
paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 3 );
await editorPage.addNewBlock( paragraphBlockName );

paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName, 3 );
await paragraphBlockElement.click();
await editorPage.sendTextToParagraphBlockAtPosition( 3, testData.mediumText );
await editorPage.sendTextToParagraphBlock( 3, testData.mediumText );

await editorPage.verifyHtmlContent( testData.blockInsertionHtml );

Expand All @@ -68,34 +71,40 @@ describe( 'Gutenberg Editor tests for Block insertion', () => {

// Workaround for now since deleting the first element causes a crash on CI for Android
if ( isAndroid() ) {
paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 3, { autoscroll: true } );
paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName, 3, {
autoscroll: true,
} );

await paragraphBlockElement.click();
await editorPage.removeParagraphBlockAtPosition( 3 );
await editorPage.removeBlockAtPosition( paragraphBlockName, 3 );
for ( let i = 3; i > 0; i-- ) {
// wait for accessibility ids to update
await driver.sleep( 1000 );
paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( i, { autoscroll: true } );
paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName, i, {
autoscroll: true,
} );
await paragraphBlockElement.click();
await editorPage.removeParagraphBlockAtPosition( i );
await editorPage.removeBlockAtPosition( paragraphBlockName, i );
}
} else {
for ( let i = 4; i > 0; i-- ) {
// wait for accessibility ids to update
await driver.sleep( 1000 );
paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 1 );
paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName );
await clickMiddleOfElement( driver, paragraphBlockElement );
await editorPage.removeParagraphBlockAtPosition( 1 );
await editorPage.removeBlockAtPosition( paragraphBlockName );
}
}
} );

it( 'should be able to insert block at the beginning of post from the title', async () => {
await editorPage.addNewParagraphBlock();
let paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 1 );
await editorPage.addNewBlock( paragraphBlockName );
let paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName );
if ( isAndroid() ) {
await paragraphBlockElement.click();
}
await editorPage.sendTextToParagraphBlockAtPosition( 1, testData.longText );

await editorPage.sendTextToParagraphBlock( 1, testData.longText );
// Should have 3 paragraph blocks at this point

if ( isAndroid() ) {
Expand All @@ -107,10 +116,10 @@ describe( 'Gutenberg Editor tests for Block insertion', () => {
await titleElement.click();
await titleElement.click();

await editorPage.addNewParagraphBlock();
paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 1 );
await editorPage.addNewBlock( paragraphBlockName );
paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName );
await clickMiddleOfElement( driver, paragraphBlockElement );
await editorPage.sendTextToParagraphBlockAtPosition( 1, testData.mediumText );
await editorPage.sendTextToParagraphBlock( 1, testData.mediumText );
await paragraphBlockElement.click();
await editorPage.verifyHtmlContent( testData.blockInsertionHtmlFromTitle );
} );
Expand Down
13 changes: 5 additions & 8 deletions __device-tests__/gutenberg-editor-gallery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@
* Internal dependencies
*/
import EditorPage from './pages/editor-page';
import {
setupDriver,
isLocalEnvironment,
stopDriver,
} from './helpers/utils';
import { setupDriver, isLocalEnvironment, stopDriver } from './helpers/utils';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000000;

describe( 'Gutenberg Editor Gallery Block tests', () => {
let driver;
let editorPage;
let allPassed = true;
const galleryBlockName = 'Gallery';

// Use reporter for setting status for saucelabs Job
if ( ! isLocalEnvironment() ) {
Expand All @@ -40,11 +37,11 @@ describe( 'Gutenberg Editor Gallery Block tests', () => {
} );

it( 'should be able to add a gallery block', async () => {
await editorPage.addNewGalleryBlock();
const galleryBlock = await editorPage.getGalleryBlockAtPosition( 1 );
await editorPage.addNewBlock( galleryBlockName );
const galleryBlock = await editorPage.getBlockAtPosition( galleryBlockName );

expect( galleryBlock ).toBeTruthy();
await editorPage.removeGalleryBlockAtPosition( 1 );
await editorPage.removeBlockAtPosition( galleryBlockName );
} );

afterAll( async () => {
Expand Down
38 changes: 17 additions & 21 deletions __device-tests__/gutenberg-editor-heading.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
* Internal dependencies
*/
import EditorPage from './pages/editor-page';
import {
setupDriver,
isLocalEnvironment,
stopDriver,
isAndroid,
} from './helpers/utils';
import { setupDriver, isLocalEnvironment, stopDriver, isAndroid } from './helpers/utils';
import testData from './helpers/test-data';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000000;
Expand All @@ -20,6 +15,8 @@ describe( 'Gutenberg Editor tests', () => {
let driver;
let editorPage;
let allPassed = true;
const paragraphBlockName = 'Paragraph';
const headingBlockName = 'Heading';

// Use reporter for setting status for saucelabs Job
if ( ! isLocalEnvironment() ) {
Expand All @@ -42,29 +39,28 @@ describe( 'Gutenberg Editor tests', () => {
} );

it( 'should be able to create a post with heading and paragraph blocks', async () => {
await editorPage.addNewHeadingBlock();
let headingBlockElement = await editorPage.getHeadingBlockAtPosition( 1 );

await editorPage.addNewBlock( headingBlockName );
let headingBlockElement = await editorPage.getBlockAtPosition( headingBlockName );
if ( isAndroid() ) {
await headingBlockElement.click();
}
await editorPage.sendTextToHeadingBlock( headingBlockElement, testData.heading, false );

await editorPage.addNewParagraphBlock();
let paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 2 );
await editorPage.sendTextToParagraphBlock( paragraphBlockElement, testData.mediumText );
await editorPage.addNewBlock( paragraphBlockName );
let paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName, 2 );
await editorPage.typeTextToParagraphBlock( paragraphBlockElement, testData.mediumText );

await editorPage.addNewParagraphBlock();
paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 3 );
await editorPage.sendTextToParagraphBlock( paragraphBlockElement, testData.mediumText );
await editorPage.addNewBlock( paragraphBlockName );
paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName, 3 );
await editorPage.typeTextToParagraphBlock( paragraphBlockElement, testData.mediumText );

await editorPage.addNewHeadingBlock();
headingBlockElement = await editorPage.getHeadingBlockAtPosition( 4 );
await editorPage.sendTextToHeadingBlock( headingBlockElement, testData.heading, false );
await editorPage.addNewBlock( headingBlockName );
headingBlockElement = await editorPage.getBlockAtPosition( headingBlockName, 4 );
await editorPage.typeTextToParagraphBlock( headingBlockElement, testData.heading );

await editorPage.addNewParagraphBlock();
paragraphBlockElement = await editorPage.getParagraphBlockAtPosition( 5 );
await editorPage.sendTextToParagraphBlock( paragraphBlockElement, testData.mediumText );
await editorPage.addNewBlock( paragraphBlockName );
paragraphBlockElement = await editorPage.getBlockAtPosition( paragraphBlockName, 5 );
await editorPage.typeTextToParagraphBlock( paragraphBlockElement, testData.mediumText );
} );

afterAll( async () => {
Expand Down
Loading