Skip to content
Snippets Groups Projects
Unverified Commit c910bb95 authored by apple502j's avatar apple502j Committed by GitHub
Browse files

Change test (tryit)

parent 20f5cfb6
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ describe('Working with sprites', () => { ...@@ -28,7 +28,7 @@ describe('Working with sprites', () => {
test('Adding a sprite through the library', async () => { test('Adding a sprite through the library', async () => {
await loadUri(uri); await loadUri(uri);
await clickXpath('//button[@title="tryit"]'); await clickXpath('//button[@title="Try It"]');
await clickText('Costumes'); await clickText('Costumes');
await clickXpath('//button[@aria-label="Choose a Sprite"]'); await clickXpath('//button[@aria-label="Choose a Sprite"]');
await clickText('Apple', scope.modal); // Closes modal await clickText('Apple', scope.modal); // Closes modal
...@@ -39,7 +39,7 @@ describe('Working with sprites', () => { ...@@ -39,7 +39,7 @@ describe('Working with sprites', () => {
test('Adding a sprite by surprise button', async () => { test('Adding a sprite by surprise button', async () => {
await loadUri(uri); await loadUri(uri);
await clickXpath('//button[@title="tryit"]'); await clickXpath('//button[@title="Try It"]');
const el = await findByXpath('//button[@aria-label="Choose a Sprite"]'); const el = await findByXpath('//button[@aria-label="Choose a Sprite"]');
await driver.actions().mouseMove(el) await driver.actions().mouseMove(el)
.perform(); .perform();
...@@ -51,7 +51,7 @@ describe('Working with sprites', () => { ...@@ -51,7 +51,7 @@ describe('Working with sprites', () => {
test('Deleting only sprite does not crash', async () => { test('Deleting only sprite does not crash', async () => {
await loadUri(uri); await loadUri(uri);
await clickXpath('//button[@title="tryit"]'); await clickXpath('//button[@title="Try It"]');
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for scroll animation
await rightClickText('Sprite1', scope.spriteTile); await rightClickText('Sprite1', scope.spriteTile);
await clickText('delete', scope.spriteTile); await clickText('delete', scope.spriteTile);
......
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