Skip to content

Commit

Permalink
TINY-7873: Disable sticky toolbar fullscreen test on Firefox 91 tempo…
Browse files Browse the repository at this point in the history
…rarily
  • Loading branch information
lnewson committed Aug 24, 2021
1 parent c5330fa commit d6f067a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { UiFinder, Waiter } from '@ephox/agar';
import { after, before, context, it } from '@ephox/bedrock-client';
import { PlatformDetection } from '@ephox/sand';
import { SugarBody } from '@ephox/sugar';
import { TinyHooks } from '@ephox/wrap-mcagar';
import { assert } from 'chai';
Expand All @@ -17,6 +18,7 @@ const testStickyHeader = (toolbarMode: ToolbarMode, toolbarLocation: ToolbarLoca
const isToolbarTop = toolbarLocation === ToolbarLocation.top;

context('Test editor with toolbar_mode: ' + toolbarMode, () => {
const browser = PlatformDetection.detect().browser;
const hook = TinyHooks.bddSetup<Editor>({
plugins: 'fullscreen',
base_url: '/project/tinymce/js/tinymce',
Expand Down Expand Up @@ -138,7 +140,11 @@ const testStickyHeader = (toolbarMode: ToolbarMode, toolbarLocation: ToolbarLoca
});
});

it('Toggle fullscreen mode and ensure header moves from docked -> undocked -> docked', async () => {
it('Toggle fullscreen mode and ensure header moves from docked -> undocked -> docked', async function () {
// TINY-7873: On Firefox 91 the header/toolbar isn't showing when toggling fullscreen mode, so we need to investigate
if (browser.isFirefox() && browser.version.major >= 91) {
this.skip();
}
const editor = hook.editor();
await StickyUtils.pScrollAndAssertStructure(isToolbarTop, 200, StickyUtils.expectedHalfView);
editor.execCommand('mceFullscreen');
Expand Down

0 comments on commit d6f067a

Please sign in to comment.