Skip to content

Commit 0eab137

Browse files
harryterkelsenmdebbargemini-code-assist[bot]
authored
Skip flaky test on Firefox (#180941)
Skips flaky test on Firefox until flutter/flutter#180940 is fixed. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md --------- Co-authored-by: Mouad Debbar <mouad.debbar@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent bd16c23 commit 0eab137

1 file changed

Lines changed: 21 additions & 15 deletions

File tree

engine/src/flutter/lib/web_ui/test/engine/view_embedder/style_manager_test.dart

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,29 @@ void main() {
1515

1616
void doTests() {
1717
group('StyleManager', () {
18-
test('attachGlobalStyles hides the outline when focused', () {
19-
final DomElement flutterViewElement = createDomElement(DomManager.flutterViewTagName);
18+
test(
19+
'attachGlobalStyles hides the outline when focused',
20+
() {
21+
final DomElement flutterViewElement = createDomElement(DomManager.flutterViewTagName);
2022

21-
domDocument.body!.append(flutterViewElement);
22-
StyleManager.attachGlobalStyles(
23-
node: flutterViewElement,
24-
styleId: 'testing',
25-
styleNonce: 'testing',
26-
cssSelectorPrefix: DomManager.flutterViewTagName,
27-
);
28-
final expected = ui_web.browser.browserEngine == ui_web.BrowserEngine.firefox
29-
? 'rgb(0, 0, 0) 0px'
30-
: 'rgb(0, 0, 0) none 0px';
31-
final String got = domWindow.getComputedStyle(flutterViewElement, 'focus').outline;
23+
domDocument.body!.append(flutterViewElement);
24+
StyleManager.attachGlobalStyles(
25+
node: flutterViewElement,
26+
styleId: 'testing',
27+
styleNonce: 'testing',
28+
cssSelectorPrefix: DomManager.flutterViewTagName,
29+
);
30+
final expected = ui_web.browser.browserEngine == ui_web.BrowserEngine.firefox
31+
? 'rgb(0, 0, 0) 0px'
32+
: 'rgb(0, 0, 0) none 0px';
33+
final String got = domWindow.getComputedStyle(flutterViewElement, 'focus').outline;
3234

33-
expect(got, expected);
34-
});
35+
expect(got, expected);
36+
},
37+
skip: isFirefox
38+
? 'Skip until we fix the flake on Firefox. See: https://github.com/flutter/flutter/issues/180940'
39+
: null,
40+
);
3541

3642
test('styleSceneHost', () {
3743
expect(() => StyleManager.styleSceneHost(createDomHTMLDivElement()), throwsAssertionError);

0 commit comments

Comments
 (0)