Skip to content
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions e2e/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {initTestSuiteWithInternetIdentity, initTestSuiteWithPasskey} from './uti
testWithII.describe.configure({mode: 'serial'});

[
{title: 'With II', initExamplePage: initTestSuiteWithInternetIdentity},
{title: 'With Passkey', initExamplePage: initTestSuiteWithPasskey}
{title: 'With Passkey', initExamplePage: initTestSuiteWithPasskey},
{title: 'With II', initExamplePage: initTestSuiteWithInternetIdentity}
].forEach(({title, initExamplePage}) => {
testWithII.describe(title, () => {
const getExamplePage = initExamplePage();
Expand Down Expand Up @@ -45,6 +45,8 @@ testWithII.describe.configure({mode: 'serial'});
const examplePage = getExamplePage();

await examplePage.deleteLastEntry();

await examplePage.assertEntries(2);
});

testWithII('should sign-out', async () => {
Expand Down
7 changes: 6 additions & 1 deletion e2e/page-objects/example.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export abstract class ExamplePage extends AppPage {
await expect(row).toBeVisible();
}

async assertEntries(count: number): Promise<void> {
const rows = this.page.locator('[role="rowgroup"] [role="row"]');
await expect(rows).toHaveCount(count, {timeout: 2000});
}

async addEntryWithFile({text, filePath}: {text: string; filePath: string}): Promise<void> {
const addEntryButton = this.page.locator('button', {hasText: this.callToActions.add_an_entry});
await expect(addEntryButton).toBeVisible();
Expand Down Expand Up @@ -84,7 +89,7 @@ export abstract class ExamplePage extends AppPage {
}): Promise<void> {
await expect(this.page).toHaveScreenshot(`${name}-${mode}-mode.png`, {
fullPage: true,
maxDiffPixelRatio: 0.1
maxDiffPixelRatio: 0.03
});
}

Expand Down