DEV: Add colors/styling to Ember CLI and qunit tests (#12617)

This commit is contained in:
Penar Musaraj 2021-04-06 11:48:44 -04:00 committed by GitHub
parent e8a9917db1
commit 769b3ba8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ document.write(
'<div id="ember-testing-container"><div id="ember-testing"></div></div>'
);
document.write(
"<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style>"
"<style>#ember-testing-container { position: fixed; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; transform: translateZ(0)} #ember-testing { zoom: 50%; }</style>"
);
let setupTestsLegacy = require("discourse/tests/setup-tests").setupTestsLegacy;

View File

@ -18,3 +18,4 @@ $love: #fa6c8d !default;
@import "common/foundation/variables";
@import "common/foundation/mixins";
@import "desktop";
@import "color_definitions";

View File

@ -2,6 +2,7 @@
<html>
<head>
<title>QUnit Test Runner</title>
<%= discourse_color_scheme_stylesheets %>
<%= stylesheet_link_tag "test_helper" %>
<%= javascript_include_tag "test_helper" %>
<%= csrf_meta_tags %>