-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f443fa
commit 75bffba
Showing
4 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// This is a basic Flutter widget test. | ||
// | ||
// To perform an interaction with a widget in your test, use the WidgetTester | ||
// utility that Flutter provides. For example, you can send tap and scroll | ||
// gestures. You can also use WidgetTester to find child widgets in the widget | ||
// tree, read text, and verify that the values of widget properties are correct. | ||
|
||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:skynexui_components/components.dart'; | ||
|
||
Widget withProvider(Widget widget) { | ||
return MultiProvider( | ||
providers: [ | ||
ChangeNotifierProvider(create: (_) => SkynexUIProvider()), | ||
], | ||
child: MediaQuery( | ||
data: const MediaQueryData(), | ||
child: MaterialApp(home: widget), | ||
), | ||
); | ||
} | ||
|
||
void main() { | ||
group('Box', () { | ||
testWidgets('renders box component', (WidgetTester tester) async { | ||
Widget boxWidget = withProvider( | ||
const Box(), | ||
); | ||
|
||
await tester.pumpWidget(boxWidget); | ||
|
||
var boxFinder = find.byWidget(boxWidget); | ||
|
||
expect(boxFinder, findsOneWidget); | ||
}); | ||
group('padding', () { | ||
testWidgets('renders with padding', (WidgetTester tester) async { | ||
Widget boxWidget = withProvider( | ||
const Box( | ||
styleSheet: StyleSheet( | ||
paddingBottom: {Breakpoints.xs: '10px'}, | ||
), | ||
), | ||
); | ||
|
||
await tester.pumpWidget(boxWidget); | ||
|
||
var boxFinder = find.byWidget(boxWidget); | ||
|
||
expect(boxFinder, findsOneWidget); | ||
}); | ||
}); | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
75bffba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs-storybook – ./
docs-storybook-skynexui.vercel.app
docs-storybook.vercel.app
docs-storybook-git-main-skynexui.vercel.app
storybook.skynexui.dev
75bffba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./docs
docs-skynexui.vercel.app
docs-coral-nine.vercel.app
docs-git-main-skynexui.vercel.app
skynexui.dev
www.skynexui.dev
75bffba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sknui-demobase-react – ./examples/demo_base
sknui-demobase-react.vercel.app
sknui-demobase-react-skynexui.vercel.app
sknui-demobase-react-git-main-skynexui.vercel.app