1
00:00:00,150 --> 00:00:06,600
All right, so now we need to actually see how we can consume this particular fixture that we have created

2
00:00:06,600 --> 00:00:11,030
in our earlier video so far doing that, I'm going to create one more file.

3
00:00:11,310 --> 00:00:18,870
And this is basically my test file, which we are going to be executing and we'll see how it actually

4
00:00:18,870 --> 00:00:19,180
works.

5
00:00:19,440 --> 00:00:23,900
So for doing that, I'm just going to say consumed spec spectate.

6
00:00:23,910 --> 00:00:24,290
Yes.

7
00:00:24,320 --> 00:00:33,900
So I'm just going to do an import of, uh, from from the bluecoats.

8
00:00:34,230 --> 00:00:42,960
So this time we should not import from the at Playwrite Tester because we have our own customized fixture

9
00:00:43,710 --> 00:00:49,650
or the tester honor that we are basically going to be using to run the test.

10
00:00:49,680 --> 00:00:52,620
So this is the power of the folio itself.

11
00:00:52,620 --> 00:00:58,900
So Folio helps us create or write our own customized extender tester.

12
00:00:59,430 --> 00:01:03,000
I mean, we can extend this like anywhere, any time.

13
00:01:03,150 --> 00:01:06,580
And however, we need to modify and then we can use it.

14
00:01:06,600 --> 00:01:11,130
I mean, you will understand even more better while we discuss about it in our next video, while we

15
00:01:11,130 --> 00:01:17,970
use the browser context extension and the context options, extensions and stuff.

16
00:01:18,660 --> 00:01:23,180
But yes, this is super, super easy for a super, super useful as well.

17
00:01:23,430 --> 00:01:29,700
I'm never going to use this fixture, which we have created and now I'm just going to call the ID.

18
00:01:29,850 --> 00:01:34,920
And if we just do a controlled space, we can see the different variables comes in, which is being

19
00:01:34,920 --> 00:01:38,070
exported, which is the describe and we expect.

20
00:01:38,340 --> 00:01:43,190
So you can do everything pretty much like how well you did in our edit videos.

21
00:01:43,590 --> 00:01:49,710
So now I'm gonna create an ID blog and then I'm going to say are getting the browser part.

22
00:01:50,380 --> 00:01:58,710
So I'm just going to get the browser part where I'm actually going to specify Chrome and this where

23
00:01:58,830 --> 00:02:02,820
I can actually get the chrome all part as well.

24
00:02:02,890 --> 00:02:06,620
So don't believe me, I can just do this console that log off.

25
00:02:06,840 --> 00:02:16,210
I can do a single tick of dollar of chrome and we'll see how this particular chrome returns me, this

26
00:02:16,210 --> 00:02:17,280
particular part or not.

27
00:02:17,640 --> 00:02:24,960
So far doing that, I'm just going to go over here and I need to go to this bigger part of the folio

28
00:02:24,960 --> 00:02:30,300
example and next folio if I hit the enter.

29
00:02:31,390 --> 00:02:35,740
Oops, sorry about it, because I need to be using this particular

30
00:02:38,440 --> 00:02:43,470
was there if not, this is not going to identify this particular chrome as expected.

31
00:02:43,660 --> 00:02:46,610
And you can see that now it actually works without any problem.

32
00:02:46,900 --> 00:02:51,710
So this is the part that it returns once I call the chrome.

33
00:02:51,730 --> 00:02:56,380
So basically, this part is now coming from this particular type chrome.

34
00:02:56,620 --> 00:03:03,910
And because we have already initialized the value of the chrome as this and this record is being executed

35
00:03:04,030 --> 00:03:06,670
and stuns me, the particular part without any problem.

36
00:03:06,830 --> 00:03:13,360
And now you can also specify Firefox if you want to, and then you can also print that particular value

37
00:03:13,360 --> 00:03:21,730
and you can see how the particular value is also being printed, something like a dollar of Firefox,

38
00:03:21,740 --> 00:03:22,710
something like that.

39
00:03:23,170 --> 00:03:29,650
And if I try to run this, you can see that it brings me back to one for the chrome.

40
00:03:29,870 --> 00:03:31,350
Another one is for the Firefox.

41
00:03:31,750 --> 00:03:33,010
So this is pretty cool.

42
00:03:33,280 --> 00:03:39,340
And now you can also do and expect to see if the part is actually matching because we also have the

43
00:03:39,910 --> 00:03:44,200
expected been returned from the fixture.

44
00:03:44,410 --> 00:03:48,850
We can also set that particular part and we can see if the particular value is matching or not.

45
00:03:48,880 --> 00:03:51,160
So once they got that, you can see that the test is parsing.

46
00:03:51,460 --> 00:03:56,980
So let's say if I just change it, Google or something like that, and if I tried to execute this test,

47
00:03:57,370 --> 00:04:01,480
you should see that the test is actually failing.

48
00:04:01,990 --> 00:04:09,460
And it tells you that the TV is failing because this particular part is not matching.

49
00:04:09,880 --> 00:04:11,560
So this is pretty cool.

50
00:04:11,560 --> 00:04:17,240
I mean, this is something that is very, very interesting and very helpful for you to understand about

51
00:04:17,260 --> 00:04:25,240
upcoming videos of this course, because this is how we can actually extend our FOLIA in a much greater

52
00:04:25,240 --> 00:04:27,880
and higher levels to our next video.
