Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zetavg committed Jan 19, 2025
1 parent a1080e8 commit 484345f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/rn-test-container/native-test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,28 @@ describe('Native Test Test', () => {
expect(text).toBe('Hello One!')


// const settingsItem = await driver.$('//*[@text="Settings"]');
// await settingsItem.click();
}, 10 * 60 * 1000)

test('hello world 2', async () => {
const driver = await remote(getWebDriverOpts())
// console.log(JSON.stringify(driver.commandList))
// driver.executeScript('mobile: terminateApp', [{ bundleId: 'host.exp.Exponent' }])
// driver.executeScript('mobile: launchApp', [{ bundleId: 'host.exp.Exponent' }])

// const screenShot = await driver.takeScreenshot()
// console.log('screenShot', screenShot)
await driver.saveScreenshot('./screenshot.png')

// Select with accessibility id
const element = driver.$('~hello-word')

// expect element to contain text "Hello, World!"
const text = await element.getText()
expect(text).toBe('Hello One!')


// const settingsItem = await driver.$('//*[@text="Settings"]');
// await settingsItem.click();
}, 10 * 60 * 1000)
Expand Down

0 comments on commit 484345f

Please sign in to comment.