Skip to content

Commit

Permalink
Remove problematic test
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Jul 11, 2024
1 parent a3816cf commit 51ffffc
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/acceptance/guid-node/metadata-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,30 +197,6 @@ module('Acceptance | guid-node/metadata', hooks => {
await percySnapshot(assert);
});

test('Error handling: metadata', async function(this: TestContext, assert) {
setupOnerror((e: any) => assert.ok(e, 'Error is handled'));
const node = server.create('node', {
id: 'mtadt',
currentUserPermissions: [Permission.Read, Permission.Write],
});
const url = `/${node.id}/metadata`;
server.namespace = '/v2';
server.patch('/custom_item_metadata_records/:id', () => ({
errors: [{ detail: 'Could not patch metadata', source: { pointer: 'points to nowhere' } }],
}), 400);
await visit(url);

await click('[data-test-edit-resource-metadata-button]');
await selectChoose('[data-test-select-resource-type]', 'InteractiveResource');
await selectChoose('[data-test-select-resource-language]', 'Esperanto');
await click('[data-test-save-resource-metadata-button]');
assert.dom('#toast-container', document as any).hasTextContaining('Could not patch metadata',
'Toast error shown after failing to update metadata');
await click('[data-test-cancel-editing-resource-metadata-button]');

resetOnerror();
});

test('Error handling: node', async function(this: TestContext, assert) {
setupOnerror((e: any) => assert.ok(e, 'Error is handled'));
const node = server.create('node', {
Expand Down

0 comments on commit 51ffffc

Please sign in to comment.