Skip to content

Commit

Permalink
use text resource in test waitForTaskToBeVisibleInConfigPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
ErlingHauan committed Feb 12, 2025
1 parent 098ebdf commit 1a8795d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export class ProcessEditorPage extends BasePage {
}

public async waitForTaskToBeVisibleInConfigPanel(task: BpmnTaskType): Promise<void> {
const text = this.page.getByText(`Navn Altinn ${task} task`);
const nameLabel = this.textMock('process_editor.configuration_panel_name_label');
const taskName = `Altinn ${task} task`;
const text = this.page.getByText(nameLabel + taskName);
await expect(text).toBeVisible();
}

Expand Down

0 comments on commit 1a8795d

Please sign in to comment.