Skip to content
Snippets Groups Projects
Commit 8485a47f authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add an integration test for using the X button to delete a sprite

parent dfc13e2e
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,17 @@ describe('Working with sprites', () => { ...@@ -76,6 +76,17 @@ describe('Working with sprites', () => {
await expect(logs).toEqual([]); await expect(logs).toEqual([]);
}); });
test('Deleting by x button on sprite tile', async () => {
await loadUri(uri);
await clickXpath('//button[@title="Try It"]');
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
await clickXpath('//*[@aria-label="Close"]'); // Only visible close button is on the sprite
// Confirm that the stage has been switched to
await findByText('Stage selected: no motion blocks');
const logs = await getLogs();
await expect(logs).toEqual([]);
});
test('Adding a sprite by uploading a png', async () => { test('Adding a sprite by uploading a png', async () => {
await loadUri(uri); await loadUri(uri);
await clickXpath('//button[@title="Try It"]'); await clickXpath('//button[@title="Try It"]');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment