Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSoC][Feature Request #1346 ]: Enabling Plugins , Donation as a Plugin, Refractor for TalawaPluginProvider Widget #1355

Merged
merged 62 commits into from
Oct 18, 2022
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
1bd44f3
Create .gitpod.yml
SiddheshKukade Jun 4, 2022
662933a
Create .gitpod.Dockerfile
SiddheshKukade Jun 4, 2022
d7b6e49
Add/temp-file
SiddheshKukade Jul 21, 2022
9bc9d7b
Merge branch 'PalisadoesFoundation:develop' into develop
SiddheshKukade Jul 21, 2022
e8c6365
Add/temp-plugin
SiddheshKukade Jul 21, 2022
15f0085
remove/unecessary-files#1
SiddheshKukade Jul 21, 2022
fff1076
remove/unecessary-files#2
SiddheshKukade Jul 21, 2022
f7b646f
Merge branch 'develop' of https://github.com/SiddheshKukade/talawa in…
SiddheshKukade Jul 21, 2022
2731f40
Add/TalwaPluginProvider
SiddheshKukade Jul 23, 2022
e39acb8
Add/queries `getPluginsList`
SiddheshKukade Jul 23, 2022
d2e6ed7
Docs for 'TalawaPluginProvider'
SiddheshKukade Jul 23, 2022
2eede31
`Add/fetch_plugin_list`
SiddheshKukade Jul 23, 2022
2686a29
Refractoring & adding `fetchPlugins` in main
SiddheshKukade Jul 23, 2022
eb4d5eb
Delete sa.dart
SiddheshKukade Jul 23, 2022
457eaa5
Delete tempPlugin.dart
SiddheshKukade Jul 23, 2022
40c5810
Test/ `Tawla Plugin Provider`
SiddheshKukade Jul 27, 2022
c42eff5
Merge branch 'develop' of https://github.com/SiddheshKukade/talawa in…
SiddheshKukade Jul 27, 2022
dcdc06b
Refractor : Added `Braintree` config in AndroidManifest.xml
SiddheshKukade Sep 2, 2022
4dbe824
Refractor : Added `Talawa_plugin_provider_nav` to control plugins vis…
SiddheshKukade Sep 2, 2022
3f24eec
Update : Main file setState fix
SiddheshKukade Sep 2, 2022
178e67a
Merge branch 'develop' into develop
SiddheshKukade Sep 2, 2022
8478c1f
Changed ios version from `10.0` to `12.0`
SiddheshKukade Sep 3, 2022
c75a482
Add : `Donation` feature as Plugin with braintree API
SiddheshKukade Sep 3, 2022
9280fdb
Add : `createDonation` Mutation
SiddheshKukade Sep 3, 2022
20fc546
Fix : `Plugin` render bug
SiddheshKukade Sep 3, 2022
ac17cd4
Chores : Formatted files
SiddheshKukade Sep 3, 2022
7709191
Add : `navBarItems` (features) as plugins
SiddheshKukade Sep 3, 2022
cc822ae
Chores : Formatting
SiddheshKukade Sep 3, 2022
3e3c23d
Update : Profile removed key
SiddheshKukade Sep 3, 2022
40ffe80
Chores : Add `Flutter_Braintree`
SiddheshKukade Sep 10, 2022
b85c338
Chores : Fix `Lint errors`
SiddheshKukade Sep 10, 2022
257c19e
Merge branch 'develop' into develop
SiddheshKukade Sep 15, 2022
381b64d
Fix : Formatting Errors
SiddheshKukade Sep 15, 2022
966ccd3
Merge branch 'PalisadoesFoundation:develop' into develop
SiddheshKukade Sep 22, 2022
bb2bc0b
Delete talawa_plugin_provider_nav.dart
SiddheshKukade Sep 22, 2022
f0b88d0
Update pull-request.yml
SiddheshKukade Sep 22, 2022
dad65fe
Added a empty line in main
SiddheshKukade Sep 24, 2022
ffcbde5
Update pull-request.yml
SiddheshKukade Sep 24, 2022
f0e3e2e
Fix : Faling tests
SiddheshKukade Sep 24, 2022
74f8966
Merge branch 'develop' of https://github.com/SiddheshKukade/talawa in…
SiddheshKukade Sep 24, 2022
b879389
Fix : Failing test #2 commented out `teste.pumpAndSetttle`
SiddheshKukade Sep 24, 2022
6b1e69e
Remove : all the changes done in the `custom_drawer_test.dart`
SiddheshKukade Sep 24, 2022
400ab8f
PR Fail Fix Attempt #1 : Added `fetchPluginLIst` in `main.dart`
SiddheshKukade Sep 28, 2022
bdd88d2
PR Fail Fix Attempt #2 : Commenting test cases to check furthur pro…
SiddheshKukade Sep 28, 2022
354acb5
Chores : Commented Imports
SiddheshKukade Sep 29, 2022
fab3630
Deleted : Test file
SiddheshKukade Sep 29, 2022
8319178
Fix: Trigger workflow
SiddheshKukade Sep 29, 2022
ce69bf6
Add : Faling test back `custom_drawer_test.dart`
SiddheshKukade Sep 29, 2022
6e16aeb
Add Test for `utils/query.dart`
SiddheshKukade Sep 29, 2022
718e147
Add : Tests `queries_test.dart`
SiddheshKukade Sep 29, 2022
f254935
Add : Tests `chat_queries_test.dart`
SiddheshKukade Sep 29, 2022
0b9eb52
Add : Test for `comment_queries_test.dart`
SiddheshKukade Sep 29, 2022
64cc8a3
Add : test for `event_queries_test`
SiddheshKukade Sep 29, 2022
4b44029
Add : test for `post_qurie..dart`
SiddheshKukade Sep 29, 2022
0dc3f8e
Add : test for `post_query.dart`
SiddheshKukade Sep 29, 2022
a3c18f9
Add : test for `task_queries.dart`
SiddheshKukade Sep 29, 2022
41291b0
Add : test for `utils/validator.dart`
SiddheshKukade Sep 29, 2022
52bd448
Fix : failing tests
SiddheshKukade Sep 29, 2022
28e5451
Test : Failing test uncommented `custom_drawer_test.dart`
SiddheshKukade Sep 30, 2022
86e3512
Fix : Commented `custom_drawer_test.dart`
SiddheshKukade Sep 30, 2022
db02120
removed utils tests
SiddheshKukade Oct 15, 2022
2a14faa
Removed Commented Code
SiddheshKukade Oct 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add : test for post_query.dart
SiddheshKukade committed Sep 29, 2022
commit 0dc3f8eec98e3214af2a6e3a25cdddf5e64f0b2f
65 changes: 65 additions & 0 deletions test/util_tests/post_queries_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:talawa/utils/comment_queries.dart';
import 'package:talawa/utils/post_queries.dart';

void main() {
group("Testing Post Queries ", () {
final postQueries = PostQueries();
test("getPostsById should return proper query", () {
expect(postQueries.getPostsById("orgId"), """
query {
postsByOrganization(id: "orgId",orderBy: createdAt_DESC )
{
_id
text
createdAt
imageUrl
videoUrl
title
commentCount
likeCount
creator{
_id
firstName
lastName
image
}
organization{
_id
}
likedBy{
_id
}
comments{
_id
}
}
}
""");
});

test("addLike should return proper muration", () {
expect(postQueries.addLike(), """
mutation likePost(\$postID: ID!) {
likePost( id: \$postID,)
{
_id
}
}
""");
});
test("removeLike should return proper mutation", () {
expect(postQueries.removeLike(), """
mutation unlikePost(\$postID: ID!) {
unlikePost( id: \$postID,)
{
_id
likedBy{
_id
}
}
}
""");
});
});
}