Skip to content

Commit 8140949

Browse files
committed
check if settings are open in editor, correct typo
1 parent 072eb8b commit 8140949

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

e2e/tests/block-editor.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ test.describe( 'Block Editor', () => {
3939
} )
4040

4141
await editor.selectBlocks( editor.canvas.getByLabel( 'Block: Text' ) )
42+
43+
const settings = page.getByLabel( 'Settings', { exact: true } )
44+
45+
if ( ! await settings.getAttribute( 'aria-pressed' ) ) {
46+
await settings.click()
47+
}
48+
4249
await expect( page.getByLabel( 'Layout Tab' ) ).toBeVisible()
4350
await expect( page.getByLabel( 'Style Tab' ) ).toBeVisible()
4451
await expect( page.getByLabel( 'Advanced Tab' ) ).toBeVisible()
@@ -52,6 +59,12 @@ test.describe( 'Block Editor', () => {
5259
name: 'stackable/text',
5360
} )
5461

62+
const settings = page.getByLabel( 'Settings', { exact: true } )
63+
64+
if ( ! await settings.getAttribute( 'aria-pressed' ) ) {
65+
await settings.click()
66+
}
67+
5568
// Add content and color to Stackable Text Block
5669
await editor.canvas.locator( '[data-type="stackable/text"] > .stk-block-text > p[role="textbox"]' ).fill( 'test' )
5770
await page.locator( '.stk-color-palette-control .stk-control-content > .components-dropdown > .components-button' ).first().click()

e2e/tests/global-settings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { test, expect } from 'e2e/test-utils'
22
import { createColor, getRgb } from '~stackable/plugins/global-settings/colors/util'
33

4-
test.describe( 'Global Settigs', () => {
4+
test.describe( 'Global Settings', () => {
55
let pid = null
66

77
// Create Posts for testing

0 commit comments

Comments
 (0)