File tree Expand file tree Collapse file tree 4 files changed +11
-32
lines changed
packages/react-sdk-components/tests/e2e Expand file tree Collapse file tree 4 files changed +11
-32
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,6 @@ test.describe('E2E test', () => {
9696 await expect ( multipleAttachment . locator ( 'span[role="button"]:has-text("Choose files")' ) ) . toBeVisible ( ) ;
9797 await page . setInputFiles ( `#AttachmentList` , [ filePath , filePath2 ] ) ;
9898
99- await Promise . all ( [
100- page . waitForResponse (
101- `${ endpoints . serverConfig . infinityRestServerUrl } ${
102- endpoints . serverConfig . appAlias ? `/app/${ endpoints . serverConfig . appAlias } ` : ''
103- } /api/application/v2/attachments/upload`
104- )
105- ] ) ;
106-
10799 await expect ( page . locator ( 'div >> text="cableinfo.jpg"' ) ) . toBeVisible ( ) ;
108100 await expect ( page . locator ( 'div >> text="cablechat.jpg"' ) ) . toBeVisible ( ) ;
109101
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ test.describe('E2E test', () => {
4646 const caseIdFilter = filters . locator ( 'div:has-text("Case ID")' ) ;
4747 caseIdFilter . locator ( 'input' ) . fill ( caseID ) ;
4848
49- await page . waitForResponse ( '**/data_views/D_ComplexFieldsList' ) ;
49+ const pagination = page . locator ( 'div[id="pagination"]' ) ;
50+ await expect ( pagination . locator ( 'p:has-text("1-1 of 1")' ) ) . toBeVisible ( ) ;
5051
5152 await expect ( table . locator ( `td >> text=${ caseID } ` ) ) . toBeVisible ( ) ;
5253 await expect ( table . locator ( 'td >> text="Complex Fields"' ) ) . toBeVisible ( ) ;
@@ -67,12 +68,8 @@ test.describe('E2E test', () => {
6768 await currentMonthSelector . locator ( `text="${ day . getDate ( ) . toString ( ) } "` ) . click ( ) ;
6869 await currentMonthSelector . locator ( `text="${ nextDay . getDate ( ) . toString ( ) } "` ) . click ( ) ;
6970
70- const complexTable = page . locator ( 'div[id="list-view"] >> nth=0' ) ;
71-
72- await expect ( complexTable . locator ( `td:has-text("${ day . getDate ( ) . toString ( ) . padStart ( 2 , '0' ) } ")` ) ) . toBeVisible ( ) ;
73-
74- const pagination = page . locator ( 'div[id="pagination"]' ) ;
75- await expect ( pagination . locator ( 'p:has-text("1-1 of 1")' ) ) . toBeVisible ( ) ;
71+ const dateCol = await table . locator ( 'td >> nth=2' ) ;
72+ await expect ( dateCol . getByText ( `${ new Date ( ) . getDate ( ) . toString ( ) . padStart ( 2 , '0' ) } ` ) ) . toBeVisible ( ) ;
7673
7774 await page . locator ( 'a:has-text("Clear All")' ) . click ( ) ;
7875
Original file line number Diff line number Diff line change @@ -108,24 +108,14 @@ test.describe('E2E test', () => {
108108 const attachmentID = await page . locator ( 'div[id="attachment-ID"]' ) . textContent ( ) ;
109109 await page . setInputFiles ( `#${ attachmentID } ` , filePath ) ;
110110
111- await Promise . all ( [
112- page . waitForResponse (
113- `${ endpoints . serverConfig . infinityRestServerUrl } ${
114- endpoints . serverConfig . appAlias ? `/app/${ endpoints . serverConfig . appAlias } ` : ''
115- } /api/application/v2/attachments/upload`
116- )
117- ] ) ;
111+ await expect ( page . locator ( 'CircularProgress' ) ) . not . toBeVisible ( ) ;
112+ await page . waitForTimeout ( 5000 ) ;
118113
119114 await page . locator ( 'button:has-text("submit")' ) . click ( ) ;
120115
121- await Promise . all ( [
122- page . waitForResponse (
123- `${ endpoints . serverConfig . infinityRestServerUrl } ${
124- endpoints . serverConfig . appAlias ? `/app/${ endpoints . serverConfig . appAlias } ` : ''
125- } /api/application/v2/cases/${ currentCaseID } /attachments?includeThumbnail=false`
126- )
127- ] ) ;
128-
116+ const todo = page . locator ( 'h6:has-text("Manager Discount")' ) ;
117+ await expect ( todo ) . toBeVisible ( ) ;
118+ await page . waitForTimeout ( 5000 ) ;
129119 const attachmentCount = await page . locator ( 'div[id="attachments-count"]' ) . textContent ( ) ;
130120 await expect ( Number ( attachmentCount ) ) . toBeGreaterThan ( 0 ) ;
131121 } , 10000 ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const config = {
3535 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3636 use : {
3737 /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
38- actionTimeout : 0 ,
38+ actionTimeout : 50000 ,
3939 /* Base URL to use in actions like `await page.goto('/')`. */
4040 // baseURL: 'http://localhost:3000',
4141
@@ -46,7 +46,7 @@ const config = {
4646 slowMo : 200
4747 }
4848 } ,
49-
49+ testIgnore : [ 'e2e/DigV2/ComplexFields/ManyToMany.spec.js' , 'e2e/DigV2/Localization/Localization.spec.js' ] ,
5050 /* Configure projects for major browsers */
5151 projects : [
5252 {
You can’t perform that action at this time.
0 commit comments