Skip to content

Commit

Permalink
test: add desc to drip-list tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evvvritt committed Aug 30, 2023
1 parent 0f76f62 commit 6dad7c0
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/e2e-tests/top-up-create-stream.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ describe('app', async () => {
await titleField.fill('This is a Test Drip List');
});

it('gives a description', async () => {
await page.locator('label:has-text("Description")').fill('This is my list description.');
});

it('advances the flow', async () => {
await page.locator('button', { hasText: 'Continue' }).click();
});
Expand Down Expand Up @@ -493,6 +497,7 @@ describe('app', async () => {
it('navigates to the Drip List screen', async () => {
await page.locator('button', { hasText: 'View your Drip List' }).click();
await expect(page.locator('text=This is a Test Drip List')).toHaveCount(1);
await expect(page.locator('text=This is my list description.')).toHaveCount(1);
});

it('opens the drip list editor', async () => {
Expand All @@ -518,6 +523,18 @@ describe('app', async () => {
await page.locator('button', { hasText: 'Split evenly' }).click();
});

it('edits the title', async () => {
const titleField = page.locator('label:has-text("Title*")');
await titleField.clear();
await titleField.fill('This is an EDITED title');
});

it('edits the description', async () => {
const titleField = page.locator('label:has-text("Description")');
await titleField.clear();
await titleField.fill('This is an EDITED description.');
});

it('advances the flow', async () => {
await page.locator('button', { hasText: 'Confirm changes in wallet' }).click();
await page.locator('button', { hasText: 'Got it' }).click();
Expand All @@ -528,7 +545,8 @@ describe('app', async () => {

await page.reload();

await expect(page.locator('text=This is a Test Drip List')).toHaveCount(1);
await expect(page.locator('text=This is an EDITED title')).toHaveCount(1);
await expect(page.locator('text=This is an EDITED description.')).toHaveCount(1);
await expect(page.locator('text=0x43')).toHaveCount(0);
});

Expand Down

0 comments on commit 6dad7c0

Please sign in to comment.