Skip to content

Commit

Permalink
improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Aug 1, 2024
1 parent 3c666ae commit 9a8fa14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions e2e/client/playwright/multiedit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {Multiedit} from './page-object-models/multiedit';
import {restoreDatabaseSnapshot, s} from './utils';

test.describe('Multiedit', async () => {
test('editing articles in multiedit', async ({page}) => {
test('editing articles in multi-edit mode', async ({page}) => {
const monitoring = new Monitoring(page);
const multiedit = new Multiedit(page);

await restoreDatabaseSnapshot();
await page.goto('/#/workspace/monitoring');
await monitoring.selectDeskOrWorkspace('Sports');

await monitoring.executeMultiAction('Multi-edit', ['test sports story', 'story 2']);
await monitoring.executeBulkAction('Multi-edit', ['test sports story', 'story 2']);

await page
.locator(s('multiedit-screen', 'multiedit-article=test sports story', 'field--headline'))
Expand Down Expand Up @@ -56,7 +56,7 @@ test.describe('Multiedit', async () => {
).toHaveText('story 2.1');
});

test('removing an article in multiedit', async ({page}) => {
test('removing an article from multi-edit view', async ({page}) => {
const monitoring = new Monitoring(page);
const authoring = new Authoring(page);

Expand Down
2 changes: 1 addition & 1 deletion e2e/client/playwright/page-object-models/monitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Monitoring {
.click();
}

async executeMultiAction(action: string, articleNames: Array<string>): Promise<void> {
async executeBulkAction(action: string, articleNames: Array<string>): Promise<void> {
for (const selectedArticle of articleNames) {
await this.page.locator(s(`article-item=${selectedArticle}`, 'item-type-and-multi-select')).hover();
await this.page.locator(s(`article-item=${selectedArticle}`, 'multi-select-checkbox')).check();
Expand Down

0 comments on commit 9a8fa14

Please sign in to comment.