From 1e92e5c8e557d539753b7713f4995d943a388dd6 Mon Sep 17 00:00:00 2001
From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Date: Fri, 12 Jul 2024 10:48:40 -0400
Subject: [PATCH 1/2] Add more gts tests
---
.../app/components/in-app/basic.css | 7 ++++++
.../app/components/in-app/basic.gts | 3 +++
.../shared-scenarios/in-app/basic-test.gts | 23 +++++++++++++++++++
3 files changed, 33 insertions(+)
create mode 100644 test-apps/classic-app/app/components/in-app/basic.css
create mode 100644 test-apps/classic-app/app/components/in-app/basic.gts
create mode 100644 test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts
diff --git a/test-apps/classic-app/app/components/in-app/basic.css b/test-apps/classic-app/app/components/in-app/basic.css
new file mode 100644
index 00000000..16f232f9
--- /dev/null
+++ b/test-apps/classic-app/app/components/in-app/basic.css
@@ -0,0 +1,7 @@
+.has-a-style {
+ color: rgb(0,100,50);
+}
+
+div {
+ font-weight: bold;
+}
diff --git a/test-apps/classic-app/app/components/in-app/basic.gts b/test-apps/classic-app/app/components/in-app/basic.gts
new file mode 100644
index 00000000..3143e9cd
--- /dev/null
+++ b/test-apps/classic-app/app/components/in-app/basic.gts
@@ -0,0 +1,3 @@
+
+ text here
+
diff --git a/test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts b/test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts
new file mode 100644
index 00000000..a7f1b411
--- /dev/null
+++ b/test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts
@@ -0,0 +1,23 @@
+import { render } from '@ember/test-helpers';
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+
+import Basic from 'classic-app/components/in-app/basic';
+
+import { scopedClass } from 'ember-scoped-css/test-support';
+
+module('[In App] basic', function(hooks) {
+ setupRenderingTest(hooks);
+
+ test('has a style on an element', async function(assert) {
+ await render(
+
+
+
+ );
+
+ assert.dom('div').hasClass('has-a-style_e8d85123f');
+ assert.dom('div').hasClass(scopedClass('has-a-style', 'classic-app/components/in-app/basic'));
+ assert.dom('div').hasStyle({ color: 'rgb(0, 100, 50)', fontWeight: 'bold' });
+ });
+});
From dd0935c058d16c90451ee88288d940d799529f04 Mon Sep 17 00:00:00 2001
From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Date: Fri, 12 Jul 2024 10:52:15 -0400
Subject: [PATCH 2/2] lint:fix
---
test-apps/classic-app/app/components/in-app/basic.css | 2 +-
.../classic-app/tests/shared-scenarios/in-app/basic-test.gts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test-apps/classic-app/app/components/in-app/basic.css b/test-apps/classic-app/app/components/in-app/basic.css
index 16f232f9..ce34095f 100644
--- a/test-apps/classic-app/app/components/in-app/basic.css
+++ b/test-apps/classic-app/app/components/in-app/basic.css
@@ -1,5 +1,5 @@
.has-a-style {
- color: rgb(0,100,50);
+ color: rgb(0, 100, 50);
}
div {
diff --git a/test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts b/test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts
index a7f1b411..4ab08268 100644
--- a/test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts
+++ b/test-apps/classic-app/tests/shared-scenarios/in-app/basic-test.gts
@@ -18,6 +18,6 @@ module('[In App] basic', function(hooks) {
assert.dom('div').hasClass('has-a-style_e8d85123f');
assert.dom('div').hasClass(scopedClass('has-a-style', 'classic-app/components/in-app/basic'));
- assert.dom('div').hasStyle({ color: 'rgb(0, 100, 50)', fontWeight: 'bold' });
+ assert.dom('div').hasStyle({ color: 'rgb(0, 100, 50)', fontWeight: '700' });
});
});