Skip to content

Commit de7f217

Browse files
committed
support/crate-report-form: Remove unused styles
1 parent d3d11e4 commit de7f217

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

app/components/support/crate-report-form.module.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,3 @@
7474
font-weight: 500;
7575
}
7676
}
77-
78-
.cancel-button {
79-
composes: button;
80-
composes: tan-button small from '../../styles/shared/buttons.module.css';
81-
border-radius: var(--space-3xs);
82-
}

app/templates/support.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
data-test-id="link-email-support"
3030
local-class="link"
3131
>
32-
For all other cases:
33-
<strong>[email protected]</strong>
32+
For all other cases: <strong>[email protected]</strong>
3433
</a>
3534
</li>
3635
</ul>

e2e/acceptance/support.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test.describe('Acceptance | support page', { tag: '@acceptance' }, () => {
1010
const inquireList = page.getByTestId('inquire-list');
1111
await expect(inquireList).toBeVisible();
1212
await expect(inquireList.locator(page.getByRole('listitem'))).toHaveText(
13-
['Report a crate that violates policies'].concat(['For all other cases']),
13+
['Report a crate that violates policies'].concat(['For all other cases: [email protected]']),
1414
);
1515

1616
await percy.snapshot();
@@ -26,7 +26,7 @@ test.describe('Acceptance | support page', { tag: '@acceptance' }, () => {
2626
const inquireList = page.getByTestId('inquire-list');
2727
await expect(inquireList).toBeVisible();
2828
await expect(inquireList.locator(page.getByRole('listitem'))).toHaveText(
29-
['Report a crate that violates policies'].concat(['For all other cases']),
29+
['Report a crate that violates policies'].concat(['For all other cases: [email protected]']),
3030
);
3131
});
3232

@@ -57,7 +57,7 @@ test.describe('Acceptance | support page', { tag: '@acceptance' }, () => {
5757
await expect(page.getByTestId('fieldset-crate')).toBeVisible();
5858
await expect(page.getByTestId('fieldset-reasons')).toBeVisible();
5959
await expect(page.getByTestId('fieldset-detail')).toBeVisible();
60-
await expect(page.getByTestId('report-button')).toHaveText('Report');
60+
await expect(page.getByTestId('report-button')).toHaveText('Report to [email protected]');
6161

6262
await percy.snapshot();
6363
await a11y.audit();

tests/acceptance/support-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module('Acceptance | support', function (hooks) {
2424
const listitem = findAll('[data-test-id="inquire-list"] li');
2525
assert.deepEqual(
2626
listitem.map(item => item.textContent.trim()),
27-
['Report a crate that violates policies'].concat(['For all other cases']),
27+
['Report a crate that violates policies'].concat(['For all other cases: [email protected]']),
2828
);
2929

3030
await percySnapshot(assert);
@@ -41,7 +41,7 @@ module('Acceptance | support', function (hooks) {
4141
const listitem = findAll('[data-test-id="inquire-list"] li');
4242
assert.deepEqual(
4343
listitem.map(item => item.textContent.trim()),
44-
['Report a crate that violates policies'].concat(['For all other cases']),
44+
['Report a crate that violates policies'].concat(['For all other cases: [email protected]']),
4545
);
4646
});
4747

@@ -71,7 +71,7 @@ module('Acceptance | support', function (hooks) {
7171
assert.dom('[data-test-id="fieldset-crate"]').exists();
7272
assert.dom('[data-test-id="fieldset-reasons"]').exists();
7373
assert.dom('[data-test-id="fieldset-detail"]').exists();
74-
assert.dom('[data-test-id="report-button"]').hasText('Report');
74+
assert.dom('[data-test-id="report-button"]').hasText('Report to [email protected]');
7575

7676
await percySnapshot(assert);
7777
await a11yAudit(axeConfig);

0 commit comments

Comments
 (0)