-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
12 changed files
with
129 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
FROM redis:alpine | ||
RUN echo "appendonly no" >> /etc/redis.conf | ||
RUN echo 'appendonly no' > /etc/redis.conf | ||
RUN echo 'save ""' >> /etc/redis.conf | ||
CMD [ "redis-server", "/etc/redis.conf" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -350,4 +350,36 @@ test.describe('peerbook administration', () => { | |
const twr = await getTWRBuffer(page) | ||
expect(twr).toMatch(/Logged in/) | ||
}) | ||
test('test the support command', async ({request}) => { | ||
await sleep(100) | ||
await page.keyboard.type('support') | ||
await page.keyboard.press('Enter') | ||
await sleep(100) | ||
let twr = await getTWRBuffer(page) | ||
expect(twr).toMatch(/address:$/) | ||
await page.keyboard.type('[email protected]') | ||
await page.keyboard.press('Enter') | ||
await sleep(100) | ||
await page.keyboard.press('ArrowDown') | ||
await page.evaluate(() => { terminal7.log('log line')}) | ||
await page.keyboard.press('Enter') | ||
await sleep(100) | ||
twr = await getTWRBuffer(page) | ||
expect(twr).toMatch(/issue:$/) | ||
await page.keyboard.type('test issue') | ||
await page.keyboard.press('Enter') | ||
|
||
let count = 0 | ||
let msg | ||
while (count < 2) { | ||
await sleep(100) | ||
const res = await request.get('http://smtp:8025/api/v2/messages') | ||
msg = await res.json() | ||
count = msg.count | ||
} | ||
expect(msg.count).toBe(2) | ||
const body = msg.items[0].Content.Body | ||
expect(body).toMatch(/test issue/) | ||
expect(body).toMatch(/log line/) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters