Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
device.setLocation();
device.setLocation(32.04, 34.78);
device.setURLBlacklist(["https://flow.org", "https://flow.org"]);
device.enableSynchronization();
device.disableSynchronization();
device.resetContentAndSettings();
device.getPlatform();
// Matchers
// --------
by.id("flowType");
by.text("flowType is great!");
by.label("welcome");
// $ExpectError
by.label(123);
by.type("RCTImageView");
by.traits(["button"]);
// $ExpectError
by.traits("button");
// Actions on element
// ------------------
element(by.id("testElement")).tap();
element(by.id("testElement")).longPress();
// $ExpectError
element(by.id("testElement")).multiTap(true);
element(by.id("testElement")).multiTap(3);
// $ExpectError
element(by.id("testElement")).tapAtPoint();
// $ExpectError
device.setLocation();
device.setLocation(32.04, 34.78);
device.setURLBlacklist(["https://flow.org", "https://flow.org"]);
device.enableSynchronization();
device.disableSynchronization();
device.resetContentAndSettings();
device.getPlatform();
// Matchers
// --------
by.id("flowType");
by.text("flowType is great!");
by.label("welcome");
// $ExpectError
by.label(123);
by.type("RCTImageView");
by.traits(["button"]);
// $ExpectError
by.traits("button");
// Actions on element
// ------------------
element(by.id("testElement")).tap();
element(by.id("testElement")).longPress();
// $ExpectError
element(by.id("testElement")).multiTap(true);
element(by.id("testElement")).multiTap(3);
it("予定タイトルの更新", async () => {
await expect(element(by.label("葛西臨海公園"))).toBeVisible();
await element(by.id("ScheduleID_1")).tap();
await element(by.id("ScheduleTitleUpdate")).tap();
await addSchedule("上野公園");
});