Skip to content

Commit a05d382

Browse files
committed
change the fuction name
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
1 parent 4714932 commit a05d382

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/e2e-playwright/specs/search/searchProjectSpace.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ test.describe('Search in the project space', () => {
7979
test('Search in the project spaces', async () => {
8080
// search for project space objects
8181

82-
await ui.searchesUsingGlobalSearchAndFilter({
82+
await ui.searchGloballyWithFilter({
8383
actorsEnvironment,
8484
stepUser: 'Alice',
8585
keyword: "-'s",
8686
filter: 'all files'
8787
})
8888

8989
expect(
90-
await ui.isResourceDisplayedInList({
90+
await ui.resourceExists({
9191
actorsEnvironment,
9292
listType: 'search list',
9393
stepUser: 'Alice',
@@ -96,23 +96,23 @@ test.describe('Search in the project space', () => {
9696
).toBeTruthy()
9797

9898
expect(
99-
await ui.isResourceDisplayedInList({
99+
await ui.resourceExists({
100100
actorsEnvironment,
101101
listType: 'search list',
102102
stepUser: 'Alice',
103103
resource: 'folder(WithSymbols:!;_+-&)'
104104
})
105105
).toBeFalsy()
106106

107-
await ui.searchesUsingGlobalSearchAndFilter({
107+
await ui.searchGloballyWithFilter({
108108
actorsEnvironment,
109109
stepUser: 'Alice',
110110
keyword: '!;_+-&)',
111111
filter: 'all files'
112112
})
113113

114114
expect(
115-
await ui.isResourceDisplayedInList({
115+
await ui.resourceExists({
116116
actorsEnvironment,
117117
listType: 'search list',
118118
stepUser: 'Alice',
@@ -121,7 +121,7 @@ test.describe('Search in the project space', () => {
121121
).toBeTruthy()
122122

123123
expect(
124-
await ui.isResourceDisplayedInList({
124+
await ui.resourceExists({
125125
actorsEnvironment,
126126
listType: 'search list',
127127
stepUser: 'Alice',

tests/e2e-playwright/steps/ui/resources.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function createResource({
7373
})
7474
}
7575

76-
export async function searchesUsingGlobalSearchAndFilter({
76+
export async function searchGloballyWithFilter({
7777
actorsEnvironment,
7878
stepUser,
7979
keyword,
@@ -99,7 +99,7 @@ export async function searchesUsingGlobalSearchAndFilter({
9999
})
100100
}
101101

102-
export async function isResourceDisplayedInList({
102+
export async function resourceExists({
103103
actorsEnvironment,
104104
listType,
105105
stepUser,

0 commit comments

Comments
 (0)