Skip to content

Commit b8c3e97

Browse files
authored
host: Fix duplicate Percy snapshot names (#1204)
1 parent 4e10691 commit b8c3e97

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

packages/host/tests/integration/components/operator-mode-test.gts

+13-5
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ module('Integration | operator-mode', function (hooks) {
910910
.exists();
911911
});
912912

913-
test('it allows only applies changes from the chat if the stack contains a card with that ID', async function (assert) {
913+
test('it only applies changes from the chat if the stack contains a card with that ID', async function (assert) {
914914
await setCardInOperatorModeState(`${testRealmURL}Person/fadhlan`);
915915
await renderComponent(
916916
class TestDriver extends GlimmerComponent {
@@ -965,7 +965,9 @@ module('Integration | operator-mode', function (hooks) {
965965
assert.dom('[data-test-ai-bot-retry-button]').exists();
966966
assert.dom('[data-test-command-apply]').doesNotExist();
967967
assert.dom('[data-test-person]').hasText('Fadhlan');
968-
await percySnapshot(assert);
968+
await percySnapshot(
969+
'Integration | operator-mode > matrix | it only applies changes from the chat if the stack contains a card with that ID | error',
970+
);
969971

970972
await setCardInOperatorModeState(otherCardID);
971973
await waitFor('[data-test-person="Burcu"]');
@@ -977,7 +979,9 @@ module('Integration | operator-mode', function (hooks) {
977979
assert.dom('[data-test-person]').hasText('Dave');
978980
assert.dom('[data-test-command-apply]').doesNotExist();
979981
assert.dom('[data-test-ai-bot-retry-button]').doesNotExist();
980-
await percySnapshot(assert);
982+
await percySnapshot(
983+
'Integration | operator-mode > matrix | it only applies changes from the chat if the stack contains a card with that ID | error fixed',
984+
);
981985
});
982986

983987
test('it can apply change to nested contains field', async function (assert) {
@@ -1358,14 +1362,18 @@ module('Integration | operator-mode', function (hooks) {
13581362
assert.dom('[data-test-room-error]').exists();
13591363
assert.dom('[data-test-room]').doesNotExist();
13601364
assert.dom('[data-test-past-sessions-button]').isDisabled();
1361-
await percySnapshot(assert); // error state
1365+
await percySnapshot(
1366+
'Integration | operator-mode > matrix | it can handle an error during room creation | error state',
1367+
);
13621368

13631369
document.querySelector('[data-test-throw-room-error]')?.remove();
13641370
await click('[data-test-room-error] > button');
13651371
await waitFor('[data-test-room]');
13661372
assert.dom('[data-test-room-error]').doesNotExist();
13671373
assert.dom('[data-test-past-sessions-button]').isEnabled();
1368-
await percySnapshot(assert); // new room state
1374+
await percySnapshot(
1375+
'Integration | operator-mode > matrix | it can handle an error during room creation | new room state',
1376+
);
13691377
});
13701378

13711379
test('when opening ai panel it opens the most recent room', async function (assert) {

0 commit comments

Comments
 (0)