Skip to content

Commit e67fb2d

Browse files
committed
update readme, global settings test
1 parent 8140949 commit e67fb2d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

e2e/readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,17 @@ WP_BASE_URL=http://local.local/
3232
WP_AUTH_STORAGE=wp-auth.json
3333
WP_USERNAME=admin
3434
WP_PASSWORD=password
35+
STACKABLE_SLUG={ STACKABLE SLUG }
36+
WP_TEST_POSTID={ POST_ID }
37+
WP_STK_LICENSE={ STACKABLE LICENSE }
3538
```
3639

40+
In Freemius, make sure the license key is:
41+
- new
42+
- lifetime unlimited quota
43+
- has an owner
44+
- non-blocking and white-labeled
45+
3746
Run this command to run e2e:
3847

3948
```bash

e2e/tests/global-settings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ test.describe( 'Global Settings', () => {
116116

117117
// Set a color for the default Text Block
118118
await defaultBlockPage.locator( '.stk-color-palette-control .stk-control-content > .components-dropdown > .components-button' ).first().click()
119-
await defaultBlockPage.getByLabel( 'Hex color' ).fill( color )
119+
await defaultBlockPage.getByLabel( 'Hex color' ).fill( color.slice( 1 ) )
120120
await defaultBlockPage.locator( '.stk-color-palette-control .stk-control-content > .components-dropdown > .components-button' ).first().click()
121121

122122
// In older WP versions, the button text is 'Update' instead of 'Save'

0 commit comments

Comments
 (0)