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
Branches
Tags
No related merge requests found
......@@ -28,7 +28,7 @@ describe('Working with sprites', () => {
test('Adding a sprite through the library', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickXpath('//button[@title="Try It"]');
await clickText('Costumes');
await clickXpath('//button[@aria-label="Choose a Sprite"]');
await clickText('Apple', scope.modal); // Closes modal
......@@ -39,7 +39,7 @@ describe('Working with sprites', () => {
test('Adding a sprite by surprise button', async () => {
await loadUri(uri);
await clickXpath('//button[@title="tryit"]');
await clickXpath('//button[@title="Try It"]');
const el = await findByXpath('//button[@aria-label="Choose a Sprite"]');
await driver.actions().mouseMove(el)
.perform();
......@@ -51,7 +51,7 @@ describe('Working with sprites', () => {
test('Deleting only sprite does not crash', async () => {
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 rightClickText('Sprite1', scope.spriteTile);
await clickText('delete', scope.spriteTile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment