Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Jan 25, 2024
1 parent 139512c commit 5bc082d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions desktop/test/e2e/docedit/docedit-relations.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export class DoceditRelationsPage {

// get text

public static async getRelationButtonText(relationName, pickerIndex = 0) {
public static async getRelationButtonIdentifier(relationName, pickerIndex = 0) {

await DoceditPage.clickGotoTimeTab();
const element = await this.getRelationElementByName(relationName, pickerIndex);
return (await element.locator('.badge')).textContent();
return (await element.locator('.title')).textContent();
};


Expand Down
4 changes: 2 additions & 2 deletions desktop/test/e2e/resources/resources.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ test.describe('resources --', () => {

// docedit
await ResourcesPage.openEditByDoubleClickResource('1');
expect(await DoceditRelationsPage.getRelationButtonText('isAfter')).toEqual('2');
expect(await DoceditRelationsPage.getRelationButtonIdentifier('isAfter')).toEqual('2');
await DoceditPage.clickCloseEdit();
await ResourcesPage.openEditByDoubleClickResource('2');
expect(await DoceditRelationsPage.getRelationButtonText('isBefore')).toEqual('1');
expect(await DoceditRelationsPage.getRelationButtonIdentifier('isBefore')).toEqual('1');

// deletion
await DoceditRelationsPage.clickRelationDeleteButtonByIndices('isBefore');
Expand Down

0 comments on commit 5bc082d

Please sign in to comment.