diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-05-13 08:43:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 08:43:13 -0700 |
commit | d49b93dc7e77962c143e4798344c8e35ab8a637e (patch) | |
tree | b893fa4388413cbd1cf139c4cd848c91d1cc13b0 /__e2e__/tests/self-labeling.test.ts | |
parent | 5cd4ac3a34f629945ccb86e451fbf20dd06e6863 (diff) | |
download | voidsky-d49b93dc7e77962c143e4798344c8e35ab8a637e.tar.zst |
Replace e2e tests with Maestro (#3983)
* Setup maestro tests and convert some initial tests * Remove detox * Replace all tests with maestro
Diffstat (limited to '__e2e__/tests/self-labeling.test.ts')
-rw-r--r-- | __e2e__/tests/self-labeling.test.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/__e2e__/tests/self-labeling.test.ts b/__e2e__/tests/self-labeling.test.ts deleted file mode 100644 index bba8ed484..000000000 --- a/__e2e__/tests/self-labeling.test.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* eslint-env detox/detox */ - -import {describe, beforeAll, it} from '@jest/globals' -import {expect} from 'detox' -import {openApp, loginAsAlice, createServer, sleep} from '../util' - -describe('Self-labeling', () => { - beforeAll(async () => { - await createServer('?users') - await openApp({ - permissions: {notifications: 'YES', medialibrary: 'YES', photos: 'YES'}, - }) - }) - - it('Login', async () => { - await loginAsAlice() - await element(by.id('homeScreenFeedTabs-Following')).tap() - }) - - it('Post an image with the porn label', async () => { - await element(by.id('composeFAB')).tap() - await element(by.id('composerTextInput')).typeText('Post with an image') - await element(by.id('openGalleryBtn')).tap() - await sleep(3e3) - await element(by.id('labelsBtn')).tap() - await element(by.id('pornLabelBtn')).tap() - await element(by.id('confirmBtn')).tap() - await element(by.id('composerPublishBtn')).tap() - await expect(element(by.id('composeFAB'))).toBeVisible() - const posts = by.id('feedItem-by-alice.test') - await element(by.id('e2eRefreshHome')).tap() - await expect( - element(by.id('contentHider-embed').withAncestor(posts)).atIndex(0), - ).toExist() - }) -}) |