Skip to content

Commit

Permalink
LPD-39283 Migrates ConfigureTimeWithoutAutosaveUnderInstanceSettings …
Browse files Browse the repository at this point in the history
…test to playwright
  • Loading branch information
ealonso authored and brianchandotcom committed Oct 15, 2024
1 parent 8f7b1c3 commit 160bfa2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {expect, mergeTests} from '@playwright/test';

import {apiHelpersTest} from '../../fixtures/apiHelpersTest';
import {featureFlagsTest} from '../../fixtures/featureFlagsTest';
import {instanceSettingsPagesTest} from '../../fixtures/instanceSettingsPagesTest';
import {isolatedSiteTest} from '../../fixtures/isolatedSiteTest';
import {loginTest} from '../../fixtures/loginTest';
import {pageEditorPagesTest} from '../../fixtures/pageEditorPagesTest';
Expand All @@ -16,15 +17,42 @@ import {PORTLET_URLS} from '../../utils/portletUrls';

export const test = mergeTests(
apiHelpersTest,
isolatedSiteTest,
instanceSettingsPagesTest,
featureFlagsTest({
'LPS-178052': true,
}),
pageEditorPagesTest,
loginTest()
);

const testWithIsolatedSite = mergeTests(test, isolatedSiteTest);

test(
'Time without autosave is a number between 1 and 99999',
{
tag: ['@LPS-182060'],
},
async ({instanceSettingsPage, page}) => {

// Go to locked pages in instance settings

await instanceSettingsPage.goToInstanceSetting('Pages', 'Locked Pages');

// Assert time without autosave is a number between 1 and 999999

await fillAndClickOutside(
page,
page.getByLabel('Time Without Autosave'),
'200000'
);

await expect(
page.getByText('Please enter a value less than or equal to 99999.')
).toBeVisible();
}
);

testWithIsolatedSite(
'User can search locked pages',
{
tag: ['@LPS-182024', '@LPS-194499'],
Expand Down

This file was deleted.

0 comments on commit 160bfa2

Please sign in to comment.