Skip to content

Commit

Permalink
implemented new tests on list permissions FAT-16533 FAT-16534
Browse files Browse the repository at this point in the history
  • Loading branch information
ostapwd committed Sep 30, 2024
1 parent f9a32f2 commit 2e42c95
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Users from '../../../support/fragments/users/users';
import { getTestEntityValue } from '../../../support/utils/stringTools';

describe('lists', () => {
describe('Add new list', () => {
describe('permissions', () => {
const userData = {};
const listData = {
name: `C411693-${getTestEntityValue('test_list')}`,
Expand Down Expand Up @@ -56,9 +56,10 @@ describe('lists', () => {
'C411694 C411693 Lists (Admin): All permissions (corsair)',
{ tags: ['smoke', 'corsair'] },
() => {
cy.login(userData.username, userData.password);
cy.visit(TopMenu.listsPath);
Lists.waitLoading();
cy.login(userData.username, userData.password, {
path: TopMenu.listsPath,
waiter: Lists.waitLoading,
});
Lists.verifyNewButtonIsEnabled();
Lists.verifyListIsPresent(listData.name);
Lists.selectActiveLists();
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import Users from '../../../support/fragments/users/users';
import { getTestEntityValue } from '../../../support/utils/stringTools';

describe('lists', () => {
describe('Add new list', () => {
describe('permissions', () => {
const userData = {};
const listData = {
name: `C411693-${getTestEntityValue('test_list')}`,
description: `C411693-${getTestEntityValue('test_list_description')}`,
name: `C418651-${getTestEntityValue('test_list')}`,
description: `C418651-${getTestEntityValue('test_list_description')}`,
recordType: 'Users',
fqlQuery: '',
isActive: true,
Expand Down Expand Up @@ -53,9 +53,10 @@ describe('lists', () => {
});

it('C418651 Lists (Enable): Can view lists (corsair)', { tags: ['smoke', 'corsair'] }, () => {
cy.login(userData.username, userData.password);
cy.visit(TopMenu.listsPath);
Lists.waitLoading();
cy.login(userData.username, userData.password, {
path: TopMenu.listsPath,
waiter: Lists.waitLoading,
});
Lists.verifyNewButtonDoesNotExist();
Lists.verifyListIsPresent(listData.name);
Lists.selectActiveLists();
Expand All @@ -72,11 +73,6 @@ describe('lists', () => {
Lists.verifyDuplicateListButtonDoesNotExist();
Lists.verifyDeleteListButtonDoesNotExist();
Lists.verifyExportListButtonDoesNotExist();

// Lists.editList();
// Lists.openActions();
// Lists.verifyDeleteListButtonIsActive();
// Lists.verifyExportListButtonIsActive();
});
});
});

0 comments on commit 2e42c95

Please sign in to comment.