Skip to content

Commit

Permalink
Update UI test with extra clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 28, 2024
1 parent 2c56647 commit 965a6de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/ui.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,16 @@ t.test('Test cavil ui', skip, async t => {
t.equal(await page.innerText('title'), 'List open reviews');
await page.click('text=Login');
t.equal(await page.innerText('title'), 'List open reviews');
await page.click('text=Log out tester');
await page.click('text="Logged in as tester"');
await page.click('text=Logout');
t.equal(await page.innerText('title'), 'List open reviews');
await page.click('text=Login');
t.equal(await page.innerText('title'), 'List open reviews');
});

await t.test('Minion dashboard', async t => {
await page.goto(url);
await page.click('text="Logged in as tester"');
await page.click('text=Minion');
t.match(await page.innerText('title'), /Minion/);
await page.click('text=Back to Site');
Expand Down

0 comments on commit 965a6de

Please sign in to comment.