File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/document-[document]/settings Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export async function enterCreditCard(page: Page) {
14
14
state : 'visible'
15
15
} ) ;
16
16
await page . getByPlaceholder ( 'cardholder' ) . fill ( 'Test User' ) ;
17
- const stripe = page . frameLocator ( '[title="Secure payment input frame"]' ) ;
17
+ const stripe = page . locator ( '[title="Secure payment input frame"]' ) . nth ( 0 ) . contentFrame ( ) ;
18
18
await stripe . locator ( 'id=Field-numberInput' ) . fill ( '4242424242424242' ) ;
19
19
await stripe . locator ( 'id=Field-expiryInput' ) . fill ( '1250' ) ;
20
20
await stripe . locator ( 'id=Field-cvcInput' ) . fill ( '123' ) ;
Original file line number Diff line number Diff line change 13
13
import { Dependencies } from ' $lib/constants' ;
14
14
import { Submit , trackEvent , trackError } from ' $lib/actions/analytics' ;
15
15
import { collection } from ' ../../store' ;
16
- import { page } from ' $app/stores ' ;
16
+ import { page } from ' $app/state ' ;
17
17
import { Alert } from ' @appwrite.io/pink-svelte' ;
18
18
19
19
let showDelete = false ;
23
23
24
24
async function updatePermissions() {
25
25
try {
26
+ const { $databaseId, $collectionId, $id : documentId } = $doc ;
27
+
26
28
await sdk
27
- .forProject ($ page .params .region , $ page .params .project )
29
+ .forProject (page .params .region , page .params .project )
28
30
.databases .updateDocument (
29
- $doc . $ databaseId ,
30
- $doc . $ collectionId ,
31
- $doc . $id ,
32
- $doc ,
31
+ $databaseId ,
32
+ $collectionId ,
33
+ documentId ,
34
+ undefined ,
33
35
permissions
34
36
);
35
37
await invalidate (Dependencies .DOCUMENT );
You can’t perform that action at this time.
0 commit comments