►
From YouTube: FE Pairing - 20220930 - Fixing rspecs and jest specs
Description
In this session, we work on fixing some rspecs and jest specs.
A
Hello,
everybody
and
welcome
to
this
week's
pairing
session
and
I
have
brought
along
a
little
something
that
made
me
pull
a
couple
of
hairs,
but,
let's,
let's
see
see,
what's
actually
yeah
so
I
was
working
on
an
issue
which
is
rather
straightforward.
I
said
it
is
so
what
you
need
to
know
is
I've
been
working
on
the
redesigned
login
page
and
there
is
a
feature
called
the
design
and
text
which
is
basically
just
a
text.
A
You
can
configure
it
in
the
gitlab
admin
panel
and
will
then
show
on
the
yeah
before
you
log
in
basically
on
the
login
page.
So
this
was
working
so
far,
so
good
ish
it
turned
out,
and
there
was
the
issue
that
was
reported.
As
this
thing
is
trying
to
fix.
A
You
can
actually
see
it
here,
pretty
good,
so
we
do
have
a
setting
which
basically
says
log
in
Via
passport
enabled
and
if
this
setting
was
set
to
True,
which
is
the
default
and
everything
was
working
as
expected,
once
this
setting
was
turned
to
false,
the
Simon
text
would
also
be
gone,
which
would
be
a
bug.
So
autism
are
oh
I've,
been
working
on
an
MR
to
fix
that
and
the
fix
is
actually
working
out
kind
of
nicely
problem
with
that
is.
A
This
is
obviously
a
test
Gap,
because
this
went
through
on
the
on
the
first
ride,
without
any
any
no
human
or
machine
noticing.
So,
while
I'm
working
on
this
I'm
actually
introducing
a
text
that
this
thing
still
works
would
be
a
very
nice
thing
so
from
where
I'm
currently
at
I
do
with
my
GDK
running,
and
it's
actually
doing
the
right
thing.
So
I
am
pretty
sure
that
this
works,
and
this
brings
me
to
the
test
I'm
currently
working
on
or
trying
to
set
up.
A
It
is
kind
of
hijacking
and
already
existing
text,
which
is
okay.
This
is
nothing
more
than
a
scribble
at
the
moment,
but
these
led
up
things
should
be
arriving,
probably
can
remove
those
those
as
well.
There
might
be
some
unneeded
cylinder,
but
I.
Don't
think
that
is
the
main
problem
so
in.
In
short,
let
me
get
this
up.
A
This
test
is
currently
failing
because
it
is,
it
is
expecting
to
it
is
setting
design
in
text
and
then
checking
that
the
actual
render
results
does
have
the
same
text
still
while
we
have
been
disabling
the
other
sign-in
methods
which
is
actually
taken
off,
which
is
setting
the
setting
to
folds
and
we're
just
what
I
just
spoke
about.
Okay,
so
that's
that's
kind
of
it
in
a
nutshell,
and
what
I
expected
to
be
is
I
do
have
the
suspicion
that
this
set.
A
This
line
is
not
quite
doing
what
it's
supposed
to
be
for
whatever
reason-
and
this
used
to
be
working
for
me-
I,
don't
know
why
it
kind
of
stops.
But
web
driver
headless
like
that.
That
was
a
thing.
I
was
able
to
run
an
rspec
test
with
this
program
and
it
would
just
open
up
a
browser
for
me.
I
could
actually
see
stuff
so
if
it
renders
or
not,
but
for
some
reason
it
stopped
working
for
me,
and
it
will
now
just
run
it
in
headless
mode.
Basically,.
B
B
C
Know
when
it.
B
Has
failed
you're,
like
yeah,
that's
kind
of
when
you
want
to
pull
your
chair
up
and
read
over
their
shoulder
and
like
really
check
everything
the
test
is
doing,
but
what's
tough
is
like.
Usually
the
test
is
just
doing
its
job.
You
know,
let's
try.
B
Let's
try
this
out,
yeah
I,
don't
know
if
line
53
is
going
to
be
what
we
want.
So
I
feel
like
it's
important
to
note
here
that
we're
in
a
Hammel
spec.
C
B
C
B
A
No,
it's
not
It's
Quickly.
C
B
No
it's.
It
looks
like
we're
running
into
something's,
very
wrong
yeah.
These
things
should
print
out
to
a
picture
like
do
you.
If
you
go
back
you
to
the
yeah,
if
you
scroll
up
oh
like
when
we
sorry
when
it
runs,
you
should
get
an
output
of
the
screenshot
of
the
failure.
B
A
That
make
sense.
Oh
yeah,
it
does
I
just
killed
that
I'm.
Sorry,
that's
what
I
did
as
well
was
to
put
some
just.
A
So
I
just
put
the
text
over
here
as
well,
and
this
will
actually
make
it
run.
So,
let's
let
this
fail
for
a
second
but
I.
Oh
I,.
B
B
So
we
might
need
to
maybe
on
line
21
of
our
Hamill.
We
need
that
drill
down
property
before
referencing
sign
in
text.
B
B
You
have
you're
drilling
down
from
the
top
little
C
current
settings.
Yes,
yes,
yes,
yes,
yes,
yeah!
That
might
be
related
to
it.
B
A
A
A
It's
the
the
actual
variable
value
was
visible,
but
which
was
just
gun,
but
now
we
hard-coded
this
text,
okay,
so
that
is
what
we're
now
seeing.
So
that
is
as
expected,
it.
B
Oh,
you
know
what
it
might
not
be
doing
that
if
these
aren't
like
feature
specs
I
mean
yeah
yeah,
it's
probably
not
going
to
do
screenshots,
because
it's
not
PG
spec.
Sorry
about
that.
Okay,
if
we
go
back
so
it
does
look
like
we
stub
the
feature
flag,
restyle
login
page
to.
C
A
Both
of
them
that's
why
we
are
getting
two
failed
tests,
so
it
would
actually
probably
be
okay
to
get,
might
be
okay
to
get
one
failing
test
at
this
point,
but
both
of
them.
So
we
are
looking
for
those.
A
A
That's
a
good
question
I
think
might
be
on
cine
is
here,
but
this
looks
to
me
that
we
are
having
some
kind
of
ee
only
features
like
third-party
providers
that
we
only
support
in
ee
or
something
yeah
and
those
tests
are
then
living
in
this.
That's
what
I
think
it
is
yep.
C
B
We
usually
don't
like
duplicate
the
base,
Behavior
spec
in
EE.
Will
the
main
intent
here
is
we're
going
to
test
a
CE
thing
under
the
context
of
EE.
So
when
we,
when
we
run
tests
for
ee,
it
runs
both
the
CE
and
ee
spec.
So
the
same,
the
same
thing
may
have
two
tests,
because
we
also
support
just
the
CE
version
of
gitlab,
which
gets
rid
of
everything
EE,
and
so
that
won't
run
any
ee
tests.
B
And
usually
in
haml
you'll
see
it
like
a
render
if
exists,
so
that's
usually
the
condition
that
I
guess
maybe
previously
was
here
before
we
did
a
redesign.
Maybe
it's
in
some
some
shared
thing,
but
you'll
usually
see
like
a
render
if
exists.
C
B
I
think
so
yeah,
and
for
this
one
having
a
little
bit
of
context
into
this
one,
this
one
was
is
in
that
situation,
where
I
think
we
wanted
to
test
at
some
level
of
like
integration
like
rendering
this
root
view
rendered
these
wherever
it
was.
We
wanted
to
confirm
that
at
this
root
feel
we
got
these
placeholders
that
the
JavaScript
was
looking
for,
which
is
an
ee
only
thing.
So,
okay,
yeah
thanks.
B
It's
probably
one
of
these
partials
that
we're
rendering
has
got
to
have
the
condition
in
it,
and
this
is
just
happens
to
be
running
things
in
integration,
I
think
I,
think
that's
good,
or
maybe
it's
even
the
layout.
That's
doing
this,
oh,
and
maybe
that's
where
we're
failing
actually
well.
B
No
before
we
do
that.
Let's
try
this
out
on
line
20
above
line
20..
Can
we
add
a
binding
dot
pry
above
line
20.
B
I
haven't
ever
I,
don't
know
if
I've
ever
tried
this
on
Hamill
and
you'll
need
to
do
a
dash
thing,
because
we're
running
Ruby.
A
B
Go
yeah
look,
look
at
look
at
how
pretty
that
is
so
now,
let's
run
the
future,
enabled
thing
and
see
if
that's
true.
A
B
A
Okay,
I've
got
an
idea
how
we're
going
to
do
this.
A
A
Yeah:
okay,
52
one
more
time.
B
Can
we
go
back
to
yeah,
okay,
all
right.
B
B
You
go
if
you
go
back
to
your
terminal,
you
can
do
next
next.
B
A
B
A
A
B
We
yeah
and
if
this
fails
once.
B
B
B
A
B
You
just
said:
before:
do
the
truth,
you
just
want
it
to
be
true,
like
we
should
just
have
before
day
trip.
It's
not
that
bad
till
there's
a
number
of
ways.
We
like
parameterize,
a
spec
in
our
spec.
B
A
Understood
like
the
reason
why
I'm
reacting
the
way
I'm
reacting
is,
let
me
just
quickly
like
we
have
have
been
doing
this
quite
a
lot,
and
this
is
actually.
This
is
kind
of
the
whole
test
suite
for
the
redesign
login
page,
it's
based
on
and
I.
Don't
think
this
was
testing
what
we
expected
this
week.
A
Mind:
okay,
that's
let's
fix
it
in
here,
so
we
can
pick
it
up.
B
B
Want
to
set
up
the
cool
kid
lunch
table,
they're
gonna,
ask
you!
Oh
yes.
Obviously
that
was
my
experience.
So,
okay,
what
you
do
is
there,
let's
just
look
up
in
Google
real
fast,
because
that'll
that'll
help
and
this
will
be
help
us-
do
the
full
development
life
cycle
of
Googling
things
parameterize,
our
spec.
C
B
Have
with
them
and
whatever
you've
declared
in
the
where
the
with
them
those
will
be
in
scope
in
the
it
context,
things
can
get
really
fancy
here.
Okay,
you
can
also
create
a
table
like
syntax,
like
we
do
in
just
here.
So
if
you
keep
scrolling
down
there's
a
number
of
different
other
syntaxes.
C
B
Like
a
hash
syntax
there,
if
you
keep
going
down,
you
could
do.
B
Gotcha
is
that
do
they
have,
if
you
do
a
search
for
table
on
this
page.
A
B
B
A
Yeah,
that's
right,
but
this
whole
thing
doesn't
show
up
and
once
the
flag
is,
is
false
and
I'd
argue
that
not
that
I
really
know
where
this
would
be
coming
from,
but
I
expect
for
the
flag
off
yeah.
We
are
rendering
rendering
this
somewhere
else.
So
that
should
be
okay.
B
Yeah
so
interesting,
okay,
yes,
let's
go
back
to
our
spec.
If
you
scroll
down,
we
don't
want
to
do
subject
render
because
what's
happening,
there
is
we're
calling
render
at
the
very
top.
If
you
go
to
the
top
what's
happening
there
is
we
call
that
body
the
render
with
the
template
and
the
layout,
but
then
we
overwrite
it
by
calling
render
again
without
the
layout
and
that's
why
it's
failing
with
the
flag
off
where.
B
I,
don't
so
on
line
seven,
you
see
how
we
declare
what
our
test
subject
is
and
there
we
go
okay
and
so
what's
actually
happening.
If
you
scroll
down
with
by
saying
subject
render
you
actually
are
rendering
it
twice,
but
the
second
time
will
overwrite
the
first
one
and
we'll
lose
the
layout,
so
this
should
pass
with
both
on
and
off,
but
we're
still
not
testing
what
we
think
we're
testing.
B
Yeah
yeah
yeah
yeah,
whatever
I,
would
call
it
with
feature
flag,
prams
or
something
I.
Don't
know.
B
Yep
and
so
we
don't
want
the
sub-
oh
wow,
okay,.
B
Let's
move
that
subject
to
the
very
top
on
line
seven,
we
want
to
move
that
outside
of
the
describe
like
that.
Subject
sounds
like
we
want
to
use
that
all
over
the
place
I
mean
we
don't
I'm,
not
when
I,
say
I'm.
Sorry,
when
I
say
very
top,
I
meant.
A
A
A
Yeah
wait
a
second
there
we
go
okay.
Why
is
this
just
completely
threw
me
off
so
okay,
never
mind
everything
in
here.
Basically,.
B
There
we
go
so
we'll
use
where
and
we
can
call
our
parameter
of
that
variable
whatever
we
want
to
call
it.
A
B
B
A
A
How
do
I
put
available
in
there?
Yes,
I'm
gonna,
get
that.
B
B
Oh
cool?
Yes,
yes,
yes,
yes,
we
can
add.
Yes,
yes,
yes,
let's
see
that
we
can
add
a
case
name
to
our
parameterized
spec
thanks.
We
don't
have
to
worry
about
wrapping
in
another.
Describe
so
case.
Names
is
a
special
sorry.
Case
name
is
a
special
parameter.
B
There
we
go
so
we
can,
we
can
add
case
name
to
the
front
of
our
list
of
parameters
in
the
where
so
we'll
do
where
colon
case
name,
comma,
colon,
FF,
state.
C
B
A
Okay,
gotcha
yeah.
A
B
B
C
B
We'll
just
reference
it
like
a
variable
FF,
State
yep,
just
like
you
did
yep,
no,
no,
no,
no,
not
a
symbol,
yeah
yeah
yeah
just
like
that,
and
then
all
the
other
tests
we
want
to
throw
in
there.
So
that's
that's!
Basically
how
you'd
want
to
do
a
loop
through
values
when
you
have
a
before,
like
that,
we
want
to
do
that.
Yeah.
A
B
Okay,
you
could
run
into
the
same
situation
and
just
too
like,
if
you
use
just
an
array
to
do
for
each
and
then
you
created
like
a
before
block
on
each
one
of
them.
That
means
Jess
is
going
to
create
a
before,
for
it's
gonna
create
those
befores
that
will
run
for
all
the
tests.
So
you
really
want
to
make
sure
when
we
create
befores
that
need
to
be
scoped.
We
got
to
lean
into
the
test
framework.
B
Part
of
it
is
because
the
tests
Frameworks
do
two
passes.
They
do
one
pass
to
create
all
the
it
and
before
blocks
and
then
we'll
do
another
pass
to
actually
run
them,
and
so,
when
you
have
a
look
here,
yeah
gotcha.
B
A
Yeah
yeah
and
I
kind
of
expected
it
for
to
basically
Loop.
Where
do
we
have
an
example?
Is
this
yeah
here
here
we
go
to
basically
loot
this
set.
This
run
this
and.
C
B
Can
you
so
we'll
want
to
copy
over
the.
B
We
need
to
do
this
thing
as
doing
on
line
nine.
We
need
to
do
that
for
all
of
them
too.
B
The
stub
device
and
disable
captcha,
not
necessarily
the
marketing
text,
one
but
the
stub
device
and
disable
capture
I
think
we
want
to
do
well
below
our
subject-
let's
just
let's:
let's
put
it
up
there,
so
they're
all
sharing
it,
because
we
need
to
do
it
for
all
of
them.
If
you
scroll
up.
B
B
A
Am
I
yeah
I'm,
pretty
good
I'm,
currently
just
thinking
about
how
to
to
handle
this,
but
I'll
probably
be
fixing
this
file
and
then
just
open
and
issue
for
yeah
Essence.
That
probably
be
the
most
yeah.
A
No,
that
was
too
quick
for
me.
One
more
time
line.
B
A
B
B
If
they're
broken,
like
that's,
actually
a
sign
that
they've
they're
probably
legitimately
broke
like
yeah,
we
should
do
that
to
see
if
there's
some
issues
with
the
flag
being
off
I,
think
that's
the
situation
that
we'd
most
likely
run
into
so
yeah
now
I
think
we
just
want
to
move
in
the
other
describes,
which
should
be
good.
I
am
yeah.
Awesome
I
have
to
run
to
the
restroom
real
fast
I'll,
be
right
back
gotcha.
A
C
C
Like
to
fix
all
of
the
problems,
because
this
is
the
same
problem
in
a
bunch
of
your
Tech
tests,
right
yeah.
A
Exactly
not
what
I
worry
about
is
fixing
what
we
just
spoke
about,
we're
probably
easy,
but
so
this
has
just
uncovered
that
we
in
in
the
initial
test
Suite,
we
are
actually
having
a
lot
of
blind
spots.
C
Is
happening,
it's
actually
a
really
good
opportunity
for
like
Community
contribution
Center,
because
this
recording
shows
how
to
fix
the
problem
yeah.
So
we
could
create
the
issues
and
then
tag
this
recording
and
say
all
of
these
tests
are
broken.
If
you
want
help
in
writing
it,
you
can
look
at
this
video,
absolutely.
A
That's
that's
probably
yeah
yeah.
We
probably
should
do
this
because
it'll
probably
be
the
be
hopefully
Good,
Enough
tutorial
for
any
community
that
you're
really
watching
this
now
to
actually
set
this
up
and
and
see,
see
what's
happening
in
there
and
yeah
good
news
is
this
flag
is
not
still
Pro
for
quite
a
couple
of
months.
I'm
still,
so
that's
a
good
thing.
A
A
C
A
A
Yes,
awesome,
okay,
so
no
no
bad
surprises
in
there
I'm
thinking
about
the
what
I,
what
I
just
said
regarding
the
the
need
for
refactoring
will
probably
be
all
right.
This
still
needs
to
be
done
as
we
just
displayed
it,
but
I'm
just
thinking
about
if
all
of
those,
if
they're
I
don't
expect
any
really
bad
things
to
be
uncovered
here,
because
we
are
already
live
with
this
thing
on
com
and
in
the
release
and
the
feedback
we're
getting
is
not
a
minor.
A
A
A
Yeah,
just
for
for
one
side
of
the
Boolean,
that
is
basically
what
it
is:
yep
speed.
Okay,
that
would
be
it
I
suppose
this
test
is
now
fully
reflected.
A
C
About
10
minutes,
but
I
am
a
bit
stuck
on
something.
Maybe
yes
but
that's
for
testing.
It's
a
salon
theme.
Let's
see
it.
B
C
C
A
C
Hello,
hey
how's,
it
going
yeah.
A
Real
quick
for
you
Paul,
so
you're
not
fully
fully
confused
on
in
our
spec
land
things
that
we
can.
We
can
create,
managed
to
refactorize
it
all
green.
So
thanks
so
much
for
the
help
that
was
nice
and
yeah.
We're
now
on
on
some
other
tests,
James
just
brought
along
nice.
C
Cool,
so
what
I'm
doing
is
so
that
my
test
is
failing
here,
I
just
added
this
to
test
it.
I
don't
need
it,
but
this
this
should
be
so
find
alerts.
Tab
does
wrapper.find,
byroll,
yep
and
I'm.
Getting
an
error
wrapper.find
by
roller
is
not
a
function,
which
is
strange
because
in
this
described
block
it
works
perfectly
fine
here,
where
we're
doing
wrapper.find
by
roll.
A
C
No
I
checked
our
docs
and
it
says
that
it
comes.
B
All
right,
they
were,
like
you
said
too
much
went
to
the
doctor.
C
Yeah
I'd
say
that
cello
amount
should
be
from
view
test.
Utils
I
can
find
me
if
you
wanna,
because
I
I
use
the
same
example
from
the
docks.
B
B
B
C
Hilarious,
oh
also,
it's
working
in
this
description
yeah,
but
it's
not
working
here.
C
C
B
C
B
Information:
okay,
if
you
scroll
down
this,
that's
where
it's
failing,
if
you
keep
going
down,
so
what
is
that
calls?
Your
update
expected?
Oh
expect,
an
assertion
it
didn't
even
get
to
run
for
us
to
search
okay,
let's,
let's
inspect
our
wrapper,
can
we
can
we,
like
console
log,
wrapper
right
before
this
one,
maybe
yep.
B
Okay,
you're
saying
the
other
one
does
work
yeah,
that's
two!
Well,
it
works
here.
All
right.
Can
we
we
gotta,
we
got
I
gotta,
it's
not
that
I.
Don't
trust
you,
but
I.
B
Can
we
yeah,
we
can
go
ahead
and
keep
playing
or
yeah
get
out
of
that
and
can
we
change
the
fit
from
109.
B
C
C
C
B
B
A
B
B
Cool
cool-
well,
that
was,
you,
might
need
to
I
think
what
I'm
also
saying
is,
and
we
might
not
be
able
to
use
shallow
mount
extended
and
you
might
have
to
do
the
full
Mount
extended.
C
Don't
use
find
boat
roll
very
much
and
pathetic
suggested
a
couple
of
times
recently.
C
Sorry
there
you
go
it's
just
trying
to
yeah
this.
Is
it.
B
Interesting
interesting,
interesting,
yeah,
so
I
think
maybe
the
best
got
updated
and
they're
just
they're
just
got
out
of
sync:
oh
but
see
it
says
rapper
already
says
on
line
2016..
So
that
comment
is
just
confusing.
We
just
don't
need
the
comment
on
line
203.
B
Yeah,
okay,
cool
yeah:
if
you
want
to
open
up
a
doc
update
to
just
remove
that
comment,
you
can
ping
me
and
I'll
be
able
to
merge
it
that'd
be
cool
all
right
thanks
thanks
for
bringing
it
up
and
finding
the
discrepancy
in
our
docs.
That's
confusing!
Sorry
about
that.
Of
course,
I'll
catch!
You
all
later
awesome.
C
Yeah
right
on
so
are
the
same
before
Paul
I
think
this
would
be
a
really
good
opportunity
to
make
some
Community
contribution
issues
and
Link
this
video
to
see
how
to
fix
it.
Because
yeah
Nick
said
there
was
a
bunch
of
these
tests
that
are
going
to
be
failing.
B
B
A
Yeah
I'll
try
to
come
up
with
some
issues:
ASAP
and
I'll
ping.
You
on
them
James
yeah,.